Free URL Encoder / Decoder
Encode or decode URLs and query parameters instantly, directly in your browser.
Input
Output
How to encode or decode a URL
- Choose Encode or Decode.
- Paste your text or URL.
- Copy the result.
encodeURI vs encodeURIComponent
Component encoding (encodeURIComponent) escapes every reserved character, making it correct for encoding a single query parameter value. Full-URL encoding (encodeURI) leaves URL-structural characters like / and : untouched, making it correct for encoding a complete URL.
Common use cases
- Encode a query parameter before adding it to a URL
- Decode a percent-encoded URL to read it clearly
- Debug a broken link with unexpected encoded characters
Frequently asked questions
Is this tool free?
Yes. It is completely free, with no signup and no limits.
Is my text uploaded anywhere?
No. Encoding and decoding happen entirely in your browser using standard JavaScript functions.
Which option should I use for a query parameter?
Use component encoding (the default), which safely escapes every reserved character.
Why does decoding sometimes show an error?
This happens when the input contains an invalid or incomplete percent-encoded sequence, such as a stray % not followed by two hex digits.
Does this handle Unicode characters?
Yes. Non-ASCII characters are encoded and decoded correctly using UTF-8.