URL Encode / Decode
Encode or decode URLs, paths and query parameters to inspect escaped characters and troubleshoot links.
FreeBrowserAbout URL Encode / Decode
Convert a text value into percent-encoded URL component content or decode an encoded value. Prepare a query parameter or inspect encoded text copied from an address.
When to use this tool
- Encode a query parameter containing spaces.
- Read a percent-encoded value from a request URL.
Limits to know before using it
This uses encodeURIComponent and decodeURIComponent, not whole-URI encoding. Decoding leaves a plus sign unchanged; form-encoded query strings can require different handling.
Data handling and cost
The main operation runs in your browser; tool input is not uploaded for processing. The site can still use session cookies and collect operational or usage data as described in the privacy policy.
Free to use in your browser, with no sign-in needed.
Frequently Asked Questions
encodeURI encodes a full URL, leaving characters like /, ?, #, and & intact. encodeURIComponent encodes a single component (like a query parameter value), encoding those characters too. Use encodeURIComponent for individual values.
No. Encoding and decoding run entirely in your browser using JavaScript's built-in functions. Your data is never sent to any server.
This tool uses component encoding, where a space becomes %20. Decoding uses decodeURIComponent and does not turn + into a space. HTML form query strings can use different rules, so handle them with the appropriate form parser.