Online URL Encoder and Decoder
Percent-encode or decode text—handy for query values and general escaping
Encode and decode URLs with percent encoding based on encodeURIComponent. Safely handle spaces, symbols, Unicode text, query parameters and international links.
How to use
When to use
Debug query strings, encode parameter values, or escape text that contains spaces and Unicode for URL components.
Encode
- Click Encode to run encodeURIComponent on the entire input.
- This matches the common pattern for a single query parameter value.
Decode
- Click Decode to run decodeURIComponent first.
- If that throws, the tool tries decodeURI which is looser for some characters.
Notes
- Full URLs mix path, query, and fragment rules; this tool targets general text, not a full URL parser.
- Do not paste secrets into untrusted environments; processing stays in your browser.