About the URL Encoder / Decoder
URL encoding (also called percent-encoding) replaces characters that aren't allowed in a URL — like spaces, ampersands, and non-ASCII characters — with a percent sign followed by their hexadecimal code. This ensures URLs and query-string parameters are transmitted correctly across the web.
This tool encodes and decodes URLs and URL components in your browser, with a toggle between encodeURIComponent (for individual query values) and encodeURI (for full URLs).
Features
- Encode and decode URLs and query-string components
- Toggle between component and full-URL encoding
- Handles spaces, special characters, and Unicode
- Client-side only — safe and instant
How to use
- Choose Encode or Decode.
- Toggle 'Component' on for a single query value, off for a whole URL.
- Paste your text and copy the result.
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?
encodeURI keeps URL structure characters (like / ? & =) intact, so it's for encoding a complete URL. encodeURIComponent encodes those too, so it's for encoding a single parameter value.