URL Encode/Decode
Percent-encode text for URLs, or decode encoded URLs back to text.
How to use URL Encode/Decode
- 1Paste the text or URL you want to convert.
- 2Choose Encode or Decode.
- 3Copy the result for use in a query string or link.
Why use this tool
- Uses the same encoding as encodeURIComponent, matching real browser/JS behavior.
- Handles special characters, spaces and unicode correctly.
- Two-way: encode plain text or decode an already-encoded URL.
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?
encodeURI leaves characters like / and : untouched since they're valid in a full URL. This tool uses encodeURIComponent behavior, ideal for encoding individual query parameter values.
Why do spaces become %20 or +?
%20 is the standard percent-encoding for a space. The + form is specific to application/x-www-form-urlencoded query strings.