URL Encoder / Decoder
Encode text for safe use in URLs, or decode URLs back to text.
About URL Encoding
URL encoding, also known as "percent-encoding," is the process of converting characters into a format that can be safely transmitted over the Internet. URLs can only be sent using the ASCII character set.
Since URLs often contain characters outside this set (like spaces, `@`, `+`, `/`), they must be "escaped" or encoded. This process replaces unsafe characters with a `%` followed by two hexadecimal digits. For example, a space is encoded as %20, and an exclamation mark is %21.
What is encodeURIComponent?
This tool uses the modern JavaScript encodeURIComponent() function. This is the correct method for encoding a *part* of a URL, like a search query or a parameter. It escapes all characters that have special meaning in URLs, ensuring your data is transmitted correctly. The reverse function, decodeURIComponent(), is used to decode the text back to a human-readable format.