URL Encoder & Decoder
Percent-encode and decode URL components safely.
Encode any string for safe use in a URL, or decode percent-encoded URLs back to readable text. Choose between full-string encoding and component encoding (the difference between encodeURI and encodeURIComponent).
Common use cases
- Build query string parameters that contain spaces, &, ? or # characters
- Decode opaque URLs from analytics, redirects and tracking links
- Escape file paths and resource names for HTTP requests
- Encode user input before constructing URLs to prevent XSS and routing bugs
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?▾
encodeURI preserves URL structure characters (: / ? & =), while encodeURIComponent escapes them — use the latter for query parameter values.
Can it handle non-ASCII characters?▾
Yes — all encoding is UTF-8 based, matching the WHATWG URL standard used by modern browsers.
Is the + sign a space?▾
In application/x-www-form-urlencoded (the form-POST format) yes, + means space. In standard URL percent-encoding, + means literal plus and space is %20. The tool handles both.
Related tools
{}
JSON Formatter & Validator
Beautify, validate and minify JSON instantly in your browser.
↔
JSON ↔ CSV Converter
Convert JSON arrays to CSV and CSV back to JSON.
B64
Base64 Encoder & Decoder
Encode and decode Base64 strings, including UTF-8 and binary.
&;
HTML Entity Encoder & Decoder
Escape and unescape HTML entities like &, <, >.