URL Encoder / Decoder
Safely encode or decode URL query parameters with full support for non-ASCII characters and special symbols.
What is URL encoding?
URL (percent) encoding replaces unsafe characters in a URL with %XX sequences. It is required for non-ASCII characters, spaces or delimiters like "?" and "&". "Component mode" encodes a single query value rather than a whole URL.
Answers, quickly
What is the difference between encodeURI and encodeURIComponent?
`encodeURI` is for whole URLs and preserves ":", "/", "?", "#". `encodeURIComponent` encodes a single value and also escapes those separators.
Why do non-ASCII characters look broken in URLs?
URLs only allow ASCII. Encoding turns "İzmir" into "%C4%B0zmir" so servers can safely handle it.
When should I enable "Component mode"?
Turn it on when encoding a single query value (after `?q=`). Leave it off for a full URL.
Related tools
All tools →