EncodingBuilt with Hercules
URL Encoder & Decoder
About URL Encoder & Decoder
URL encoding (also called percent encoding) replaces unsafe characters with a % followed by their hex byte. Browsers do this automatically when you submit a form, but you'll often need to encode by hand when building URLs from code.
Frequently asked questions
- What's the difference between encodeURI and encodeURIComponent?
- encodeURI leaves URL-structural characters alone (: / ? &). encodeURIComponent encodes them — use it for query parameter values.