🔗 URL Encoder & Decoder
Converts text into percent-encoded form for use in web addresses (for example, a space becomes %20), and decodes percent-encoded URLs back to readable text. Web developers use it when building links and API requests — a URL can only contain certain characters safely, so everything else must be encoded first.
How to use it
- Pick the direction: text to encoded URL, or encoded URL back to text.
- Paste or type the text (or the encoded URL).
- The result appears instantly — copy it, or download it as a .txt file.
Example
Limitations
Encoding uses the standard encodeURIComponent rules: letters, digits and - _ . ! ~ * ' ( ) are left as they are, and everything else (including spaces, ?, & and =) is percent-encoded. Decoding a malformed sequence such as a lone “%” or “%ZZ” is rejected with an explanation instead of guessing. Very long URLs (over about 2000 characters) may not work in some browsers or servers — that is a limit of the web address itself, not this tool.
Frequently asked questions
What is percent-encoding?
It is how unsafe characters are written in a web address: each byte is written as % followed by two hexadecimal digits. A space is %20, a question mark is %3F, and so on.
Why do I need to encode a URL?
Characters like spaces, &, ? and = have special meanings in a web address. Encoding them stops the browser or server from misreading them — for example, a & in a search term would otherwise be treated as the start of a new parameter.
What is the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes more characters (including /, ?, & and =), which is what you want for a single value inside a URL, such as a search term. This tool uses encodeURIComponent, the safe choice for values.