Features
- Component or full URLChoose how much is escaped.
- InstantResults update as you type.
- Runs on your deviceYour data is processed in the browser and is never uploaded.
How to use the URL encoder
- Choose Encode or Decode.
- Paste a value or URL.
- Tick Keep URL structure only when encoding a whole URL.
Component or whole URL
Encoding a parameter value must escape characters such as &, = and ?. Encoding a whole URL must keep them. These correspond to encodeURIComponent and encodeURI in JavaScript.
URL encoding in JavaScript
encodeURIComponent('a b&c'); // 'a%20b%26c'
encodeURI('https://x.test/a b?q=1'); // keeps : / ? =
Frequently asked questions
Why is a space sometimes a plus sign?
HTML form encoding uses + for spaces. This tool uses %20 and does not treat + as a space when decoding.
Is URL encoding encryption?
No.
What encoding is used for non-English characters?
UTF-8 bytes, each percent-encoded.