URL Encode / Decode
Encode & decode URLs
π 100% client-side β your data never leaves this pageInput
Output
Output will appear here
About this tool
Encode special characters in URLs to make them safe for web addresses, or decode encoded URLs back to readable text. Supports full percent-encoding as defined in RFC 3986.
Frequently Asked Questions
What is URL encoding?
URL encoding (percent encoding) replaces special characters with a % followed by their hex code. For example, a space becomes %20. This ensures URLs only contain valid ASCII characters.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and leaves characters like / and ? intact. encodeURIComponent encodes a URL component and also encodes those characters. Use encodeURIComponent for query string values.