Advertisement
🔗 URL Encode & Decode
Percent-encode special characters in URLs, or decode %XX sequences back to readable text. Runs entirely in your browser.
Input
Mode:
Output
Result will appear here.
Advertisement
encodeURIComponent vs encodeURI
encodeURIComponent encodes all characters except: A–Z a–z 0–9 - _ . ! ~ * ' ( ). Use this for encoding query parameter values.
encodeURI is designed to encode a full URL. It won't encode: : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Use this when you want to encode an entire URL while preserving its structure.