- All dev tools
- URL encode and decode
URL encode and decode
Percent-encode text so it is safe in a URL or query string, or decode %-escaped text back to normal. Paste a full URL to see its query parameters.
How to use the uRL encode and decode
- Choose Encode or Decode.
- For encoding, pick "a value" for query parameters, or "a whole URL" to keep / ? & = as they are.
- Copy the result.
Questions
Which mode should I use?
"A value" (encodeURIComponent) escapes everything except letters, digits and - _ . ! ~ * ' ( ), which is right for one query parameter. "A whole URL" (encodeURI) leaves : / ? # & = alone so the URL still works.
Why does + become a space when decoding?
In form submissions and many query strings, + means a space. Untick "Treat + as a space" if your + signs are real plus signs.
Is my data sent anywhere?
No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.
Related tools
- Base64 encode and decodeText and files to and from Base64.
- JSON formatterFormat, validate and minify JSON.
- Regex testerTest regular expressions live.
More developer tools
- JSON to CSVTurn JSON arrays into a spreadsheet.
- CSV to JSONTurn a spreadsheet into JSON.
- JWT decoderRead a JWT and check its signature.
- Hash generatorMD5, SHA-1, SHA-256, SHA-512.
- Diff checkerCompare two texts line by line.
- Case convertercamelCase, snake_case, Title Case…
- Lorem ipsum generatorPlaceholder text on demand.
- Cron expression explainerCron schedules in plain English.
- Unix timestamp converterEpoch time to dates and back.
- UUID generatorRandom v4 and time-ordered v7 UUIDs.