Free SAML Decoder
SAML single sign-on messages look like a wall of random characters — because they are encoded before they travel between your app and the identity provider. Paste a SAMLRequest or SAMLResponse here and this free decoder turns it back into readable, formatted XML in seconds. Nothing is uploaded: the decoding runs entirely in your browser, which matters because SAML messages often contain real names and email addresses.
Everything runs in your browser — nothing is uploaded or stored. SAML values often contain sensitive data (names, email addresses); decoding locally keeps them private.
What IsSAML?
SAML (Security Assertion Markup Language) is an open standard for single sign-on. When you click “Log in with your company account”, your application (the service provider) sends a SAML request to an identity provider such as Okta, Azure AD, or Google Workspace. The identity provider checks who you are and sends back a SAML response containing an assertion — a signed XML statement about your identity, including attributes like your name, email, and groups.
All of this travels as XML. The problem for developers is that the XML is encoded before it is sent, so when something goes wrong — a login loop, a missing attribute, a rejected signature — the raw value in the browser address bar or in your logs is unreadable. A SAML decoder reverses the encoding so you can see exactly what was sent.
How toUse
- Copy the encoded value — from the SAMLRequest or SAMLResponse parameter in a browser URL, from your application logs, or from your identity provider’s debugging tools.
- Paste it into the box above.
- Press Decode. The tool detects the encoding automatically and shows the formatted XML below, with the detected encoding method noted.
- Use Copy decoded XML to paste the result into a text editor or a support ticket.
- Try Load sample SAMLRequest if you want to see a decoded request without pasting anything.
How SAML Encoding Works
SAML messages are encoded in up to three steps, and this decoder reverses all of them:
| Step | What happens | Why |
|---|---|---|
| 1. DEFLATE compression | The XML is compressed with raw DEFLATE (no zlib header) | Keeps the URL short — required by the HTTP Redirect binding, where the message travels in the query string |
| 2. Base64 encoding | The compressed bytes are encoded as base64 text | Binary data cannot travel safely in a URL or form field |
| 3. URL encoding | Special characters (+, /, =) are percent-encoded | Required so the value survives as a query-string parameter |
The HTTP POST binding skips the compression step: the XML is only base64-encoded and sent as a form field. This decoder handles both cases — plain base64 XML and base64 + raw DEFLATE — plus URL-encoded input, and it detects which one you pasted automatically. A small number of tools use zlib-wrapped DEFLATE instead of raw DEFLATE; that variant is handled too.
Decoding other formats? Try our binary decoder.
Looking for more free tools? Browse our Text Tools collection.
Frequently Asked Questions
Still have questions?
Can’t find the answer you’re looking for?Please chat to our friendly team!
A SAML decoder reverses the encoding applied to SAML messages — usually raw DEFLATE compression plus base64, sometimes with URL encoding on top — and shows the original XML in a readable, formatted form.
Yes. Requests and responses use the same encoding, so the same decoder handles both. Paste either value and the tool detects the format automatically.
With the HTTP Redirect binding, the SAML message is DEFLATE-compressed, base64-encoded, URL-encoded, and sent as a query parameter. With the HTTP POST binding, the message is only base64-encoded and sent as a hidden form field. This decoder handles both.
The most common cause is a truncated value — make sure you copied the entire SAMLRequest or SAMLResponse parameter, with nothing cut off. Also check that no characters were changed by a chat app or email client (some tools turn + into a space). If the value decodes but is not XML, it may be encrypted rather than encoded; encrypted assertions cannot be decoded without the private key.
The decoding runs entirely in your browser — nothing is uploaded to a server or stored. That said, SAML responses can contain sensitive personal data, so as a general rule, avoid pasting production values into any online tool you do not trust, and prefer a local decoder for live user data.
No. This tool only decodes and formats the XML so you can read it. Signature verification requires the identity provider's certificate and a dedicated validation step.
Still have questions?
Can’t find the answer you’re looking for? Please chat to our friendly team!