URL Encode / Decode
Percent-encode URLs & params
URL breakdown
About the URL Encode / Decode
URLs can only contain certain characters, so spaces and symbols must be percent-encoded (a space becomes %20). Encode text for use in links and query strings, decode messy URLs back into readable text, and inspect each part of a URL including its query parameters.
- Paste a URL or some text.
- Press Encode or Decode.
- Use the URL breakdown to see the host, path and each query parameter.
Frequently asked
What is URL encoding?
Also called percent-encoding, it replaces unsafe characters with % followed by two hex digits. For example, a space is %20 and & is %26.
What is the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ), so it is right for single parameter values. encodeURI keeps characters like / ? & that structure a full URL.
Why do I see + instead of spaces?
HTML forms encode spaces as +. Tick “Treat + as space” when decoding form data.
Is what I type sent to a server?
No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.
More from the Developer drawer
Other tools kept in this drawer, plus a few favourites from the bench.