URL Encoder / Decoder
Encode text for safe use in URLs, or decode percent-encoded strings back to readable text. Choose component mode for query values and path segments, or full-URL mode to keep a URL's structure intact.
Component (encodeURIComponent) escapes everything except
A–Z a–z 0–9 - _ . ! ~ * ' ( ), including / ? & = #. Use it for a single query value or path segment.Encoded
How to URL-encode text
- Choose Encode or Decode.
- Pick Component (for a value) or Full URL (for a whole address).
- Paste your text; the result updates instantly.
- Copy the output. Decoded URLs also show their query parameters.
Frequently asked questions
What's the difference between component and full URL encoding?
Component encoding (encodeURIComponent) escapes everything except letters, digits and - _ . ! ~ * ' ( ), including / ? & = and #. Use it for a single query value. Full URL encoding (encodeURI) leaves those structural characters alone so the URL still works, and only escapes spaces, non-ASCII and other unsafe characters.
Should spaces be %20 or +?
%20 is correct everywhere. + means a space only in application/x-www-form-urlencoded data, such as HTML form submissions. Turn on the + option if you need that format.
Related tools
- Base64 Encoder / DecoderEncode and decode Base64 with full UTF-8 support.
- HTML Entities Encoder / DecoderEscape and unescape HTML special characters.
- JWT DecoderInspect a JSON Web Token's header, payload and expiry.
More in Encoding & Security.