Percent-encode special characters so text can be safely placed in a URL, or decode an encoded URL back into readable text. Also parses query parameters into a table.
How to use the URL Encoder / Decoder
- Paste your text or URL.
- Click Encode or Decode.
- Copy the result.
Component vs full URL encoding
Component encoding (encodeURIComponent) escapes every reserved character including / ? & = and is used for individual query values. Full URL encoding (encodeURI) keeps the URL structure intact and only escapes invalid characters.
Frequently asked questions
Why is a space encoded as %20?
Spaces are not allowed in URLs; %20 is the hexadecimal byte value for a space. In form data it may appear as +.