%url-decoder.net

How to Decode a Link: Redirect, Tracking and Wrapped URLs

Updated November 18, 2026 · 5 min read

Short answer

To decode a link, find the parameter that holds the real destination, usually named url, u, q, target or redirect, and percent-decode its value. Links wrapped twice need decoding twice. If the link only holds a short random token, there is nothing to decode: the destination is stored on the server.

Links in emails, ads and chat apps rarely point straight at their destination. They pass through a redirect, a tracker or a security scanner first, and the real address is tucked inside the link, percent-encoded so it does not break the outer URL. Once you know where to look, you can read the destination without opening the link.

Where the real address hides

The destination is usually the value of one query parameter. Common names are:

  • url, u, q, target, dest, redirect, redirect_uri, next, continue or return_to.
  • A value that starts with https%3A%2F%2F or http%3A%2F%2F. That prefix is https://, encoded.

For example, in this redirect link the destination is the url parameter:

https://example.com/out?url=https%3A%2F%2Fshop.example.org%2Fitem%3Fid%3D7%26ref%3Dmail

Decoding its value gives https://shop.example.org/item?id=7&ref=mail. Open this example in the decoder, then use the Query parameters tab to see the destination on its own row.

Links wrapped more than once

When a redirect link passes through a second service, the whole link is encoded again inside the new one. Each layer is one more round of percent-encoding:

https://links.example-gateway.com/?url=https%3A%2F%2Fexample.com%2Fout%3Furl%3Dhttps%253A%252F%252Fshop.example.org%252Fitem%253Fid%253D7%2526ref%253Dmail&data=05%7C02%7Cabc
  1. Decode the outer url parameter: https://example.com/out?url=https%3A%2F%2Fshop.example.org%2Fitem%3Fid%3D7%26ref%3Dmail
  2. That is another redirect. Decode its url parameter: https://shop.example.org/item?id=7&ref=mail

The URL Parser flags any parameter whose value is itself a URL, and the decoder's Decode all layers option peels repeated encoding in one step.

Security-scanner links

Email security products rewrite links so they can be checked when clicked. In commonly published examples of Microsoft Defender's Safe Links, the original address appears percent-encoded in the url= parameter of a safelinks.protection.outlook.com link, followed by other parameters such as data=. That makes it readable with the steps above. Other vendors use their own formats, which may not be plain percent-encoding; use the vendor's own tool for those.

Links you cannot decode

Short links and many tracking links contain only a random token, such as example.com/r/Zk3pQ9x. The token is a key into the service's database; the destination is not in the link at all. The only way to see it is to follow the redirect. A link expander does that for you and shows the final address without loading the page in your browser.

Check before you click

  • Read the decoded domain from right to left: in login.example.com.evil.test, the site is evil.test.
  • Watch for look-alike characters in international domain names; the URL Parser shows them in their punycode form.
  • Decoding reveals an address; it does not make it safe.

Questions

How do I see where a link really goes?

Look for a parameter such as url= or redirect= whose value starts with https%3A%2F%2F, and decode it. If the link holds only a random token, the destination is on the server; a link expander that follows redirects will show it without opening the page in your browser.

What is a Safe Links URL?

Microsoft Defender for Office 365 rewrites links in email so they are checked when clicked. In commonly seen examples the original address is carried, percent-encoded, in the url= parameter of a safelinks.protection.outlook.com link.

Is it safe to open a decoded link?

Decoding only reveals the address; it does not make it safe. Check the domain carefully before opening it, especially if the link came from an unexpected email.

See also

Try everything in this guide hands-on, free and entirely in your browser.

Split a link in the URL Parser

Keep reading