Loading tool…
About the URL Encoder / Decoder
URL encoding replaces unsafe or reserved characters (spaces, &, =, ?, non-ASCII text) with %-escaped byte sequences so they can travel safely inside a URL. This tool encodes and decodes both directions locally.
How to use the URL Encoder / Decoder
- Choose Encode or Decode.
- Paste text, a query string, or a full URL.
- The result updates as you type.
- Copy the output with one click.
Step-by-step walkthrough with examples and the errors people hit: URL Encoding Explained: Encode and Decode.
Example
Encode
hello world & more→
hello%20world%20%26%20more
Decode
a%3Db%26c%3Dd→
a=b&c=d
Common errors and how to fix them
Space became + instead of %20
Form submissions (application/x-www-form-urlencoded) use + for spaces; everywhere else in a URL, %20 is correct. Most servers accept both in query strings.
My URL was double-encoded
Encoding an already encoded value turns % into %25. Encode each component exactly once, at the point where you build the URL.
More problems and fixes in the tutorial
FAQ
What’s the difference between encoding a component vs. a whole URL?
This tool encodes a single component (like encodeURIComponent) — it escapes &, =, and / too, which is what you want for a query parameter value, but not for a full URL where those characters are structural.
Does it support non-ASCII characters?
Yes, multi-byte UTF-8 text (emoji, accented letters, non-Latin scripts) is percent-encoded correctly.