Safely encode special characters to percent-encoded hex values or decode encoded URLs back to normal strings.
| Key | Value |
|---|---|
| query | hello world |
| category | web tools |
Paste your URL or text into the input field and the tool instantly converts spaces and special characters into percent-encoded format (for example, a space becomes %20).
Switch to decode mode and paste your encoded URL — the tool converts it back to its original, readable text instantly.
encodeURIComponent encodes all special characters including those used in query strings (like & and =), while encodeURI leaves URL structure characters intact — this tool supports both modes.
URLs can only contain a limited set of characters safely. Encoding converts spaces, symbols, and non-ASCII characters into a format that can be safely transmitted in a URL or query string.
Yes, completely free with no registration and no limits on how many times you can use it.
No, all encoding and decoding happens locally in your browser using native JavaScript functions — nothing is transmitted anywhere.