About URL encoding
URL encoding (also called percent-encoding) replaces unsafe characters in a URL with a % followed by two hex digits. Use the encodeURIComponent mode for query parameters and the unchecked mode (encodeURI) for full URLs.
Common questions
What does %20 mean in a URL?
It is the percent-encoded form of a space character. Modern browsers may display it as + in form data or %20 in path segments.
Should I use encodeURI or encodeURIComponent?
Use encodeURIComponent for individual query string values. Use encodeURI when encoding a complete URL because it preserves :/?#&=.
Frequently asked questions
When should I use encodeURIComponent?
Use encodeURIComponent for individual values inside a query string. Use encodeURI when encoding a complete URL because it preserves :/?#&= characters.
Does the tool handle international characters?
Yes. Non-ASCII characters are converted to their proper percent-encoded UTF-8 byte sequences.