URL Decoder
The URL Decoder turns percent-encoded URLs back into readable text, so you can inspect query parameters, redirect chains, and tracking links. It never fetches or visits the link you paste.
How to Use
- 1
Paste the encoded URL — a mile-long tracking link, a redirect chain, an SSO callback.
- 2
Click Decode URL — the decoded, human-readable version appears in the output box. (Query parameters are not split into a list; the decoded URL is shown as plain text.)
- 3
Double- or triple-encoded URLs are unwrapped one layer per click — decode the output again to peel off the next layer.
- 4
Copy the clean URL with the copy button, or download it as a .txt file.
Frequently Asked Questions
Does + become a space?
What about double-encoded URLs?
Does it decode UTF-8 sequences?
Is it safe to paste a suspicious link here?
Why do some characters stay encoded after decoding?
What is the difference between the two modes?
Why does decoding fail with URI malformed?
Does decoding happen live as I type?
Can it expand a shortened URL?
Can I decode a list of URLs at once?
Generative Answer & AI Documentation
What is the URL Decoder?
Percent-encoding hides a URL's meaning behind %HH sequences: %20 is a space, %2F is a slash, %3F is a question mark. This tool reverses that, turning an encoded URL back into the readable text it came from. It offers two modes from a dropdown. The default mode, Decode All Special Characters, runs decodeURIComponent, which decodes every %HH sequence it can, including the structural ones. The second mode, Keep Host intact, runs decodeURI, which leaves sequences for reserved characters — %2F, %3F, %23, %26 — still encoded, so a URL's structure survives the decode. Decoding runs when you click Decode URL; it does not update live as you type. The page starts with a sample already loaded: https%3A%2F%2Fexample.com%2Fsearch%3Fquery%3Dhello%2520world%26category%3Dbooks%2520%2526%2520items, which is double-encoded in places, so one click peels off exactly one layer. Decoding is pure text processing in your browser — the tool makes no network request, fetches nothing, and fires no trackers, which is what makes it safe for inspecting links you do not trust.
Why use URL Decoder offline?
Encoded URLs are unreadable by design, and the unreadable ones are usually the ones that matter: a redirect chain that bounces through three domains before landing somewhere, a tracking link stuffed with parameters, an SSO callback carrying a code, a shortened link hiding its destination. Reading them means decoding them, and the safe way to do that is without visiting them — clicking a suspicious link to see where it goes is exactly how trackers fire and phishing pages load. A local decoder gives you the destination as text, with zero requests made, so nothing is fetched, no cookies are sent, and no redirect executes. It also settles the question every developer asks when a URL looks wrong: was this encoded once, twice, or three times? One click peels off exactly one layer, so counting your clicks tells you how many times the URL was encoded.
When should you use this tool?
Use it when a link arrives encoded and you need to read it before trusting it: a tracking link in an email, a redirect URL in a log file, an SSO or OAuth callback, a shortened URL you want to expand mentally before opening, or a query string whose parameters are hidden behind % sequences. Use it when debugging an API that returns encoded URLs, when a double-encoded value is breaking a redirect, or when you are checking your own encoder's output and want to confirm the round trip. If the decoded result still contains % sequences, decode it again — each click removes one layer, and the sample on this page is deliberately double-encoded so you can practise.
Key Benefits
- Safe inspection: decoding is pure text processing — the link is never fetched, visited, or executed.
- Two modes: decodeURIComponent unwraps everything, decodeURI keeps reserved characters encoded so the URL stays structured.
- One layer per click: double- and triple-encoded URLs are peeled off layer by layer, so you can count the encodings.
- UTF-8 sequences reassembled: multi-byte sequences such as %E2%82%AC become their proper characters.
- 100% private: everything runs in your browser — tracking links and private callbacks never leave the machine.
- Copy or download: one click copies the decoded URL, another saves it as url_decoded.txt.
Common Use Cases
- Inspecting a suspicious link: decode a tracking or redirect URL to read its real destination before deciding whether to open it.
- Debugging a redirect chain: decode each hop of an SSO or OAuth callback to see where the parameters change.
- Fixing double-encoding: decode a URL once to turn %2520 back into %20, then again to get the space.
- Reading encoded query parameters: turn a mile-long encoded query string into readable key=value pairs.
- Verifying your own encoder: decode the output of the URL Encoder to confirm the round trip returns the original.
Developer Notes & Best Practices
The two modes map directly onto two JavaScript built-ins. decodeURIComponent decodes every %HH sequence, including %2F, %3F, %23, and %26 — the sequences for characters that structure a URL. decodeURI is deliberately more conservative: it refuses to decode escape sequences for reserved characters, because decoding them could change the URL's meaning, so %3A, %2F, %3F, %23, %26, and %40 stay encoded in that mode. Both functions throw a URIError, shown on the page as Malformed percent-encoding found, when the input contains a % that is not followed by two hex digits, or a UTF-8 sequence whose bytes do not form a valid character — a lone %2, a %ZZ, or a truncated multi-byte sequence such as %E2%82 all fail the same way, with no indication of where the bad sequence sits. One behaviour catches people out: decodeURIComponent does not turn + into a space. The plus-means-space rule belongs to HTML form encoding (application/x-www-form-urlencoded), not to percent-decoding, so a + stays a + and only %20 becomes a space; a literal plus in the original arrives as %2B and decodes back to +. Decoding is not idempotent in the useful sense: each click removes exactly one layer, so a value encoded twice needs two clicks, and there is no counter telling you how many layers remain — you keep decoding until the output stops changing.
What one decode does to common sequences
| Sequence in | Decoded output | Note |
|---|---|---|
| %20 | space | The standard space encoding |
| %2520 | %20 | Double-encoded: one layer removed, decode again for the space |
| + | + | Plus is NOT a space here — only %20 becomes a space |
| %2B | + | A literal plus arrives encoded and decodes back to + |
| %F0%9F%98%80 | 😀 | A four-byte UTF-8 sequence reassembles into one emoji |
| %2 | Error: URI malformed | A % needs two hex digits after it |
| %E2%82 | Error: URI malformed | A truncated multi-byte UTF-8 sequence fails the decode |
- Decode before you click: read a suspicious link as text here instead of opening it to see where it goes.
- Count the layers: if the output still contains % sequences, decode it again — each click removes exactly one layer.
- Use the default mode for full unwrapping and Keep Host intact when you want the URL's structure preserved.
- Remember that + stays +: only %20 becomes a space, so a plus in the output is a real plus, not a hidden space.
- Treat the decoded URL as untrusted text: decoding reveals the destination, it does not make the destination safe.
Common Mistakes
- Expecting + to become a space: decodeURIComponent leaves + as + — only %20 becomes a space, and a literal plus arrives as %2B.
- Decoding once and stopping on a double-encoded URL: %2520 becomes %20 on the first pass, and only a second decode turns it into a space.
- Assuming a failed decode means the whole URL is garbage: a single bad % sequence fails everything, so check the input for a truncated sequence at the end.
- Using Keep Host intact mode and thinking the decode failed: reserved sequences such as %2F and %23 are left encoded in that mode on purpose — switch to the default mode to unwrap them.
- Treating a decoded URL as safe: decoding only reveals the destination; a readable phishing link is still a phishing link.
Limitations
The tool decodes text you paste; it has no file upload and no batch mode, so decoding a list of links means one paste per link. It decodes one layer per click and gives no indication of how many layers remain — you have to notice the % sequences yourself and click again. A malformed sequence anywhere in the input fails the whole decode with a generic URI malformed error; the tool does not decode the valid parts and flag the bad one, and it does not say where the bad sequence is. In Keep Host intact (decodeURI) mode, sequences for reserved characters stay encoded by design, which can look like the decode did not finish. The tool does not split the decoded URL into parameters, highlight the destination domain, or warn you if the destination looks like a phishing site — reading the decoded text is up to you. It also never shortens, expands, or follows a link: a shortened URL stays shortened, because decoding and resolving are different jobs.
Structured Input/Output Example
https%3A%2F%2Fexample.com%2Fsearch%3Fquery%3Dhello%2520world%26category%3Dbooks%2520%2526%2520items
https://example.com/search?query=hello%20world&category=books%20%26%20items
Related Tools
URL Encoder
URL encoder: percent-encode URLs and query parameters so spaces, symbols, and non-Latin text survive transport intact. Free, offline, browser-based.
Base64 Decoder
Base64 decoder: decode Base64 strings back into readable text instantly. Inspect data URIs, auth headers, and encoded payloads — free, offline, private.
JWT Decoder Offline
JWT decoder offline: inspect a token’s header, payload claims, and expiry as readable JSON. 100% client-side — production tokens never leave your browser.