Split a link into protocol, host, port, path, query and fragment, as the browser does.
URL Encoder / Decoder
Use URL Encoder / Decoder
What it does
Decode percent-encoded text, such as a redirect target hidden in a phishing link, or encode text for use in a URL with encodeURIComponent or encodeURI.
It runs entirely in your browser: nothing you enter is uploaded.
How to use URL Encoder / Decoder
- Paste the text. Paste the encoded string, for example the value of a url= or redirect= parameter, or the plain text you want to encode.
- Choose the action. Press decode to turn %XX sequences back into characters, encodeURIComponent to encode a single value, or encodeURI to encode a whole address.
- Read the output. The result appears in the box below the buttons. Error means the input is not valid for that action.
- Decode again if needed. Each press of decode removes one layer. If you still see %25, %3A or %2F, paste the output back into the box and decode again.
- Copy or pass it on. Copy takes the result. Send to… passes it to Link Unwrapper, Multi-Layer Decoder, URL Defanger or Homoglyph Checker.
Example
Encoded redirect target
https%3A%2F%2Flogin.example.com%2Fverify%3Fuser%3Dalice%40example.com%26step%3D2https://login.example.com/verify?user=alice@example.com&step=2Decode gives https://login.example.com/verify?user=alice@example.com&step=2. Phishing links often carry the recipient's email address like this so the fake login page can fill it in.
What it checks
| Signal | What it means |
|---|---|
| Decoded result | Every %XX sequence becomes the character it stands for, read as UTF-8. Look for a second full address, an email address or a script inside it. |
| %25 left in the output | %25 is an encoded percent sign. If the output still contains %3A, %2F or %25, the original was probably encoded twice, a common way to hide a destination from a quick look. |
| Error | Decoding fails on a lone %, a % followed by non-hex characters or an incomplete UTF-8 sequence. Encoding fails only on a broken surrogate pair, which is rare in pasted text. |
| Plus signs | decode leaves + as it is. In form-style query strings + means a space, so read it that way yourself. |
| encodeURIComponent output | Encodes everything except letters, digits and a few marks such as hyphen, underscore, dot and tilde, so : / ? & = # and @ are all encoded. Use it for one parameter value, such as an email address. |
| encodeURI output | Keeps the characters that give a URL its structure, such as : / ? & = # @, and encodes spaces and non-ASCII letters. |
| Non-ASCII letters | Encoding writes each non-ASCII letter as two to four %XX bytes. A Cyrillic or accented letter hidden this way only shows up after decoding. |
More examples
Double-encoded redirect target
https%253A%252F%252Fexample.net%252Flogindecode gives https%3A%2F%2Fexample.net%2Flogin. Decoding that output again gives https://example.net/login.
Email address as one parameter value
alice@example.com&next=/accountencodeURIComponent gives alice%40example.com%26next%3D%2Faccount, so the & and / can no longer split the query.
Whole address with a space and an accent
https://example.org/search?q=café & teaencodeURI gives https://example.org/search?q=caf%C3%A9%20&%20tea. The & stays, so tea would start a new parameter; use encodeURIComponent for the value instead.
FAQ
What is the difference between the three buttons?
encodeURIComponent escapes everything except letters, digits and a few marks such as - _ . ~, so it suits a single parameter value. encodeURI keeps URL structure such as : / ? & = # intact, and decode reverses %XX sequences.
Why does decoding show Error or leave %2F behind?
A malformed sequence such as a lone % or a cut-off %E0%A4 makes decoding fail, and the tool shows Error. It removes one layer per run, so double-encoded text (%252F) needs a second pass or Multi-Layer Decoder, and + is not turned into a space.
Is the text sent anywhere?
No. Encoding and decoding use the browser's built-in functions on this page; nothing is uploaded and no link is opened.
Why would a phishing link be encoded at all?
Encoding hides a readable address inside a parameter, so a preview, a filter or a quick glance sees only the first host. Redirect services and mail scanners also encode the destination when they wrap a link.
Does decoding change anything else in the text?
No. Only %XX sequences change. Letters and + signs stay as they are, and HTML entities are not converted.
How do I decode a whole wrapped link, such as a Safe Links address?
Use Link Unwrapper. It finds the parameter that holds the destination and decodes it layer by layer. This tool decodes the whole string at once, so parts that belong to the wrapper are decoded too.
Why do accented or Cyrillic letters become several %XX groups?
Characters outside ASCII are first written as UTF-8 bytes, and each byte is encoded on its own. é becomes %C3%A9, and Cyrillic а becomes %D0%B0.