Worked example
You want a search link for Café & Bar / 50% off?. As a query value it becomes Caf%C3%A9%20%26%20Bar%20%2F%2050%25%20off%3F, so the link is https://example.com/search?q=Caf%C3%A9%20%26%20Bar%20%2F%2050%25%20off%3F. Sent from an HTML form it would be Caf%C3%A9+%26+Bar+%2F+50%25+off%3F instead, with + for each space. Decoding either one gives the original text back.
Common characters and their codes
| Character | Name | Encoded |
|---|---|---|
␠ | space | %20 |
& | ampersand | %26 |
= | equals | %3D |
? | question mark | %3F |
/ | slash | %2F |
# | hash | %23 |
+ | plus | %2B |
% | percent | %25 |
é | e acute | %C3%A9 |
€ | euro sign | %E2%82%AC |
Letters, digits and - _ . ~ never need encoding. Non-English letters are first turned into their UTF-8 bytes, which is why one character can become several %XX codes.
Mistakes that break links
- Encoding a whole URL with the component mode, which turns https:// into https%3A%2F%2F. Use “Whole address” for full links.
- Putting an unencoded & inside a value, which splits it into a second parameter.
- Encoding twice when a library already encodes for you, producing %2520.
- Leaving # in a value: everything after it becomes the fragment and never reaches the server.
Reading tracking links
Marketing and email links often wrap the real address inside another, encoded once or twice, for example ?url=https%3A%2F%2Fshop.example.com%2Fsale. Paste the whole link into the decoder to read where it really goes before clicking, and look at the parts table for utm_source, utm_campaign and similar tags that say which campaign sent you. Removing those tags before sharing a link keeps it shorter and doesn’t pass your visit data on to the next reader.
Related tools
- Colour converter
- XML formatter and validator
- SQL formatter
- CSS gradient generator
- Box shadow generator
- HTML and CSS minifier
- Meta tag analyzer
- Colour palette generator
- Contrast checker
- JSON to CSV
Sources
Checked on November 26, 2026:
- RFC 3986: Uniform Resource Identifier, generic syntax (section 2, percent-encoding)
- WHATWG URL Standard: application/x-www-form-urlencoded
- MDN: encodeURIComponent()
Frequently asked questions
What is URL encoding?
Which option should I choose?
Why is a space sometimes + and sometimes %20?
What does “double encoded” mean?
Why do I get an error when decoding?
Is my text sent anywhere?
Last updated: 2026-11-26