URL Encoder/Decoder
Encode or decode URLs and query string parameters.
Encode or decode URLs and query string parameters.
This tool lets you encode or decode URLs and query string parameters in seconds. Paste your text into the input field, click Encode to convert special characters into percent-encoded format, or click Decode to convert percent-encoded strings back to readable text. The result appears instantly in the output area where you can copy it with one click.
URL encoding, also known as percent-encoding, replaces unsafe characters in a URL with a percent sign followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26. This ensures that URLs are transmitted correctly across the internet without ambiguity, since certain characters have special meaning in URL syntax.
This tool uses encodeURIComponent, which encodes all special characters including those with meaning in URLs such as /, ?, and &. This is the correct choice for encoding individual parameter values. If you need to encode a full URL while preserving its structure, encodeURI would be appropriate but is rarely needed for parameter encoding.
You can paste any text including full URLs. However, note that this tool encodes everything, including slashes and colons. It is designed primarily for encoding parameter values rather than complete URLs.
All encoding and decoding happens entirely in your browser using JavaScript. No data is sent to any server. Your input is never stored or logged.