url encoder

URL encode and decode.

Convert text to and from percent-encoded form. See the difference between encodeURI and encodeURIComponent at a glance.

encodeURIComponent
for query values, path segments, and form data
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Den
encodeURI
for full URLs (preserves : / ? # & = +)
https://example.com/search?q=hello%20world&lang=en
These differ because your input contains URL structural characters. Use encodeURIComponent on individual parts (like a search query), and encodeURI on a complete URL.
AIExplain URL encoding
Is this tool free?
Yes. The URL encoder and decoder is completely free with no limits on input length.
Do I need to sign up?
No. Paste text and see the encoded output instantly. No account required.
Is my data private?
All encoding and decoding uses your browser built-in encodeURIComponent and encodeURI functions. No data is sent to any server.
What is the difference between the two encoding modes?
encodeURIComponent encodes nearly all special characters and is the right choice for query string values and form data. encodeURI leaves characters like : / ? # intact and is meant for encoding a full URL. The tool shows both side by side so you can compare.