Safelink Decoder
Decode Microsoft SafeLinks, Google AMP cache URLs, and other URL wrappers to reveal the original destination.
Safelink Decoder tool
Example
Input: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexample.com%2Fpricing%3Fplan%3Dpro&data=05%7C01&reserved=0
Result: Decoded URL: https://example.com/pricing?plan=pro, Detected Type: Microsoft SafeLinks, Wrapper Layers Decoded: 1
The original address is read from the url parameter and percent-decoded. Nested wrappers, such as a Google redirect around a SafeLink, are unwrapped layer by layer.
Link Wrappers This Tool Decodes
| Wrapper | How to spot it | Where the real URL is |
|---|---|---|
| Microsoft SafeLinks | ...safelinks.protection.outlook.com | url parameter |
| Google AMP Cache | ...cdn.ampproject.org/c/s/... | Path after /c/ or /c/s/ |
| Google AMP Viewer | google.com/amp/s/... | Path after /amp/ or /amp/s/ |
| Google redirect | google.com/url | q or url parameter |
| Facebook link shim | l.facebook.com/l.php | u parameter |
| Proofpoint URL Defense v2 | urldefense.proofpoint.com/v2/ | u parameter, with -XX codes and _ for / |
| Proofpoint URL Defense v3 | urldefense.com/v3/__...__ | Text between the __ markers |
| Generic redirect | Any site | url, redirect, target, goto, dest and similar parameters |
Nested wrappers are unwrapped layer by layer, up to 10 layers.
- Paste the wrapped link (such as a Microsoft SafeLink or Google AMP address) into the input field.
- The tool detects the wrapper type and pulls out the original address.
- Read the decoded URL to check the real destination before you visit it.
- Click the copy button next to the decoded URL to copy the clean link.
- For links wrapped several times, the tool unwraps up to 10 layers and shows how many it removed.
Unwrapping SafeLinks and Other Redirect URLs
This decoder shows where a wrapped link really goes. Paste a Microsoft SafeLink, a Proofpoint URL Defense link, a Google redirect or AMP address, or a Facebook link shim. It pulls out the original web address without visiting it.
Many email and security systems rewrite links so they can scan them when you click. Microsoft 365 turns https://example.com into a long address on safelinks.protection.outlook.com, with the real URL tucked inside and percent-encoded. That means characters like : and / are written as codes such as %3A and %2F. It is good for security but bad for reading. You cannot tell where a link leads, and the long form breaks when you paste it into a ticket or document.
Decoding happens in your browser using the text of the link alone, so no request goes to the wrapper or the final site. The tool unwraps up to 10 nested layers, such as a Google redirect around a SafeLink. It tells you which wrapper types it found and how many layers it removed. If it finds no wrapper, it says so and shows the link unchanged. Short links such as bit.ly work differently. The destination is stored on the short-link service, not in the link, so it cannot be shown without visiting it. Decoding a link does not make it safe, either. Check the domain carefully before you open it, especially in an unexpected email. To break the final address into its parts, use the URL Parser. To decode other percent-encoded text, try URL Encode and Decode.
Frequently Asked Questions
Related Tools
URL Encode and Decode
Encode special characters for URLs or decode percent-encoded strings back to readable text.
Developer ToolsURL Parser
Break down URLs into protocol, host, port, path, query parameters, and hash components.
Developer ToolsBase64 Encode and Decode
Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.
Developer Tools