URL Encoder / Decoder
Encode special characters in URLs or decode percent-encoded strings. Choose between standard URL encoding and full component encoding.
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) replaces unsafe ASCII characters with a % followed by two hex digits. For example, a space becomes %20 and & becomes %26.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but leaves characters like /, ?, & unencoded since they are valid URL structure. encodeURIComponent encodes a single component (like a query value), so it also encodes /, ?, and &.
Why does a URL need encoding?
URLs can only contain a limited set of ASCII characters. Special characters like spaces, non-ASCII letters, and symbols must be percent-encoded so they are transmitted correctly.