The two encode modes use the browser's own encodeURIComponent and encodeURI, so the output is exactly what JavaScript would produce. Decoding checks every percent-escape first and points at the offending one when it's malformed, rather than returning the bare “URI malformed” the browser gives you. When the input is a complete URL with a scheme and host, the breakdown card splits it into protocol, host, port, path and fragment, and lists each query parameter with its decoded value.
Everything runs in your browser — nothing you paste is sent to a server, so it's safe to use on links that contain tokens or session IDs.
Which characters get encoded, and why
A percent-encoded character is a % followed by two hexadecimal digits that give one byte. Characters outside ASCII are first converted to UTF-8 bytes, with one escape per byte. There are three groups:
- Unreserved: never need encoding. Letters
A-Zanda-z, digits0-9, and the four characters- _ . ~. Both encoders here leave them alone. - Reserved: encode them when they are data rather than structure.
: / ? # [ ] @ ! $ & ' ( ) * + , ; =. Several do a job inside a URL:?starts the query string,&separates parameters,=splits a name from its value,#starts the fragment and/separates path segments. When one of them appears inside a value it must be encoded, or the URL means something other than what you intended. - Everything else: always encode. Spaces, quotes, angle brackets, curly braces, pipes, carets, backticks, the
%sign itself and every non-ASCII character.
Encode component vs Encode URL, character by character
The two modes are JavaScript's encodeURIComponent and encodeURI, so this table is exactly what they return for the same character:
| Character | Encode component | Encode URL |
|---|---|---|
| space | %20 | %20 |
& | %26 | unchanged |
= | %3D | unchanged |
? | %3F | unchanged |
# | %23 | unchanged |
/ | %2F | unchanged |
: | %3A | unchanged |
+ | %2B | unchanged |
% | %25 | %25 |
< | %3C | %3C |
' | unchanged | unchanged |
é | %C3%A9 | %C3%A9 |
Two details catch people out. Encode URL leaves every reserved character alone, so it is only safe on a whole URL whose structure is already right, and it will leave a stray & or = sitting inside a value. And neither mode encodes ! ' ( ) *, although the standard lists them as reserved. They rarely matter in a URL, but an apostrophe inside a single-quoted HTML attribute or shell command will. The same input through both modes:
Input
https://example.com/a path?q=a b&x=1#top
Encode component
https%3A%2F%2Fexample.com%2Fa%20path%3Fq%3Da%20b%26x%3D1%23top
Encode URL
https://example.com/a%20path?q=a%20b&x=1#topThe first result is no longer a working link, which is the point of the second mode: Encode component is for one value at a time, and Encode URL is for a finished address that only needs its spaces fixed.
Space: %20 or +
In a path, a space is always %20 and a + is a literal plus sign. In a query string, + means a space only when the data came from an HTML form (application/x-www-form-urlencoded), and %20 works there too. JavaScript shows the split: URLSearchParams writes q=red+shoes+%26+boots¬e=50%25+off&x=a%2Bb, while encodeURIComponent writes every space as %20. CheckSEO's UTM Builder builds links with URLSearchParams, so its output reads utm_campaign=spring+sale+%26+clearance; both spellings are valid. The danger is decoding with the wrong rule. The decoder's "Treat + as space" switch is on by default, so a+b%20c decodes to a b c; with it off you get a+b c. Turn it off for paths and for any value where the plus is real.
Multi-byte UTF-8 characters
One character outside ASCII becomes two to four escapes, one per byte, so the encoded form is much longer than the text it stands for: é is one character and %C3%A9 is six.
| Character | Code point | UTF-8 bytes (hex) | Percent-encoded |
|---|---|---|---|
| é | U+00E9 | C3 A9 | %C3%A9 |
| € | U+20AC | E2 82 AC | %E2%82%AC |
| 😀 | U+1F600 | F0 9F 98 80 | %F0%9F%98%80 |
Browsers often show the decoded text in the address bar but send the encoded form, so use the encoded form in code, tags and sitemaps. A byte such as %E9 on its own is how Latin-1 writes é; it is not valid UTF-8, which is why the decoder reports it.
Double encoding: how to spot it
Double encoding means encoding text that is already encoded, so every % becomes %25. The giveaway is %25 followed by two hex digits, as in %2520 (a space) or %25C3 (the start of é).
Text café & crème
Encoded once caf%C3%A9%20%26%20cr%C3%A8me
Encoded twice caf%25C3%25A9%2520%2526%2520cr%25C3%25A8meTo confirm, paste the string into Decode mode. One pass should give readable text; if you still see %C3%A9 or %20, decode again, and the number of passes is the number of times it was encoded. Common causes are running Encode URL on an address that is already encoded (it turns https://example.com/caf%C3%A9?q=a%20b into https://example.com/caf%25C3%25A9?q=a%2520b), a framework and hand-written code both encoding the same value, and a redirect rule that re-encodes its destination. The server then looks for a path that literally contains the characters %C3%A9, which often means a 404 or a copy of the real page.
Where this matters in SEO work
| Where | What to do | What goes wrong otherwise |
|---|---|---|
| Query parameter values, such as search terms and filters | Encode each value with Encode component, then join the name=value pairs with & yourself. | A raw & or # inside a value ends it early, and the rest becomes a different parameter or a fragment. |
| UTM values (see what UTM parameters are) | Encode the value: spring%20sale%20%26%20clearance. | Written raw as spring sale & clearance, it is read as the campaign spring sale plus a stray parameter named clearance, so the campaign name is cut off at the ampersand. |
Redirect destinations passed as a value, such as ?next= | Encode the destination once with Encode component. | Encoded twice, one decode returns https%3A%2F%2F… text instead of an address, and the redirect usually fails. Test the result with the Redirect Chain Checker. |
XML sitemap <loc> values | Percent-encode first, then escape for XML, so & is written &: ?q=caf%C3%A9&sort=price. | A raw ampersand makes the file invalid XML. Run the finished file through the Sitemap Validator. |
| Canonical tags, hreflang and internal links | Use the percent-encoded UTF-8 form with uppercase hex digits, the same way everywhere. | One page shows up under two spellings, café versus caf%C3%A9 or %c3%a9 versus %C3%A9, and tools that compare URLs as plain text count them as different URLs. |