URL Encoder / Decoder
Encode or decode URL components, paths, and query strings using percent encoding. Handles special characters, spaces, and Unicode safely.
How to use the URL Encoder / Decoder
Enter any URL component, path segment, or query string into the input field. Click Encode to URL to percent-encode special characters so they are safe for use in URLs, or click Decode to Text to reverse the process. Output appears instantly in the result field.
Special characters like spaces (%20), slashes (%2F), plus signs (%2B), or Unicode characters such as emojis and non-Latin scripts are handled correctly by using the browser's built-in encodeURIComponent and decodeURIComponent functions. No backend or external services are required.
FAQ
encodeURIComponent() and decodeURIComponent() functions, which properly convert Unicode strings (including emoji, CJK characters, Arabic, Cyrillic, and accented letters) into their percent-encoded UTF-8 representations. A space or Chinese character is encoded as %20 and %E4%BD%A0%E5%A5%BD respectively, and decodes back perfectly.
q=hello world&lang=en and clicking Encode to URL produces q%3Dhello%20world%26lang%3Den. Conversely, decoding that encoded output restores the original query string. You can also focus the decode button first, paste the encoded string, then get back the decoded result.
Related Tools
For converting text to its binary representation, check out the Text to Binary Translator. To format and pretty-print JSON objects, use the JSON Formatter. Need to compare text side by side? Try the Text & Code Diff Checker.