URL Encoder / Decoder
Encode, decode, parse, and build URLs. Supports encodeURIComponent, encodeURI, and Base64 URL encoding. Free, instant, private.
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hex digits. For example, a space becomes %20. This ensures special characters like &, =, ?, and # are transmitted correctly in URLs without being misinterpreted as delimiters.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves characters that have special meaning in URLs (: / ? # @ & = +). encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it safe for encoding individual query parameter values. Use encodeURIComponent for values, encodeURI for full URLs.
Is my data sent to a server?
No. Everything runs 100% in your browser using built-in JavaScript functions. Your URLs and data never leave your device. No server, no logging, no tracking.
Why do special characters need to be encoded in URLs?
URLs use certain characters as delimiters: ? separates the path from query, & separates parameters, = separates keys from values, # marks the fragment. If your data contains these characters, they must be encoded so browsers and servers interpret them as data rather than structure.
What is Base64 URL encoding?
Base64 URL encoding is a variant of Base64 that replaces + with -, / with _, and removes padding =. This makes it safe to use in URLs and filenames. It is commonly used in JWTs, OAuth tokens, and data URIs.
More Free Tools
ToolVS is reader-supported. When you buy through links on our site, we may earn a commission.