URL encoder / decoder
Encode or decode URL parameter values using encodeURIComponent / decodeURIComponent. Supports Unicode such as café and niño; spaces become %20.
Local processing · Inputs are not uploadedUp to 1 MiB. For individual URL parameter values, not application/x-www-form-urlencoded forms.
Enter content, then choose an action.
How to use
- Paste a parameter value or its percent-encoded form, choose encode or decode, then copy the result.
- For a parameter, encode the value before adding it to a URL. Entering a whole URL also encodes : / ? & =, so choose the input for your intended use.
- Spaces map to %20; decoding does not turn + into a space. Incomplete percent escapes or invalid UTF-8 produce an error.
Example
café niño → caf%C3%A9%20ni%C3%B1o
Use https://example.com/?q=caf%C3%A9%20ni%C3%B1o. Decoding a+b leaves a+b; decoding a%20b gives a b.
Frequently asked questions
Can I encode a whole URL?
This tool encodes parameter values, including colons, slashes and question marks. Check that encoding a whole URL suits your use case.
Does a plus sign become a space?
No. With encodeURIComponent / decodeURIComponent, %20 is a space and + stays a plus sign.
What if decoding fails?
Check for incomplete percent escapes, invalid UTF-8 bytes or unencoded percent signs.
Related tools
JSON formatter
Validate, format or minify JSON; copy or download the result.
Static QR code
Generate a static QR code from a URL or text, preview it and download PNG or SVG.
SQL formatter
Format SQL in your browser with dialect, indentation and keyword case options.