01What is SAML Response Decoder?
When single sign-on fails, the answer is usually inside the SAML message, but it arrives as a long base64 string. This decoder turns a SAMLRequest or SAMLResponse back into readable XML and pulls out the fields you check first when a login breaks. SAML 2.0 sends messages through bindings. With the HTTP-POST binding, the browser posts a form field holding the XML encoded as base64. With the HTTP-Redirect binding, the message travels in the URL, so it is compressed with raw DEFLATE, then base64 encoded, then URL encoded. The tool works out which one you pasted. If the base64 decodes straight to XML, it is treated as POST. If not, it inflates the bytes with the browser's DecompressionStream in deflate-raw mode. You can paste the bare value, a full redirect URL, a form body or XML you already decoded. When a URL carries RelayState, that value is shown too. The summary lists the message type, ID, IssueInstant, Destination or AssertionConsumerServiceURL, InResponseTo, Issuer and the status code, including a nested second-level code. For responses with a plain assertion, it adds the NameID and its Format, each Audience, the NotBefore and NotOnOrAfter times from Conditions, the Recipient and NotOnOrAfter from SubjectConfirmationData, AuthnInstant, SessionIndex and every Attribute with its values. The Conditions window is compared with your device clock, so you can see at once whether an assertion has expired or is not yet valid. That often points to clock skew between servers. For example, paste the built-in redirect URL. The tool reports raw DEFLATE plus base64, shows an AuthnRequest with ID _req1, the Issuer https://sp.example.com/metadata, the ACS URL https://sp.example.com/acs and RelayState abc/1. A failed login reads just as plainly: the status line shows Responder / InvalidNameIDPolicy, which tells you the IdP could not produce the NameID format the SP asked for. There are clear limits. The tool does not validate XML signatures; it only tells you whether a Signature element is present. It cannot decrypt an EncryptedAssertion, because that needs the service provider's private key, so it only flags that one exists. The XML parser is a small built-in one that handles normal SAML messages but does not process DTDs. Everything runs in your browser, so responses with personal attributes are not sent anywhere.
Developers and IT admins setting up or debugging SAML single sign-on between an identity provider and an application. The tool runs entirely in your browser, so your data never leaves your device.
02How to use SAML Response Decoder
- Copy the SAMLResponse form value, the SAMLRequest query value, or the whole redirect URL from your browser's network tab
- Paste it into the input box
- Read the summary to see the issuer, audience, validity window, NameID and attributes
- Scroll to the pretty-printed XML to inspect any element the summary does not show
- Copy the formatted XML if you need to share it in a ticket
03Worked examples
- Input:
https://idp.example.com/sso?SAMLRequest=fZBbS8NAEIX%2FyjLvzQ0i...&RelayState=abc%2F1 (trimmed) - Result:
Message: AuthnRequest Decoded from: raw DEFLATE + base64 (HTTP-Redirect) ID: _req1 IssueInstant: 2026-11-25T09:59:58Z Destination / ACS: https://sp.example.com/acs Issuer: https://sp.example.com/metadata NameID Format: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress RelayState: abc/1 Signature element: none found - The redirect example. The Format comes from the NameIDPolicy element of the request.
- Input:
PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6... (base64 Response, trimmed) - Result:
Message: Response Decoded from: base64 (HTTP-POST) Issuer: https://idp.example.com Status: urn:oasis:names:tc:SAML:2.0:status:Success NameID: [email protected] Audience: https://sp.example.com/metadata NotBefore: 2026-11-25T09:59:30Z NotOnOrAfter: 2026-11-25T10:05:00Z Recipient: https://sp.example.com/acs SessionIndex: _s1 Attributes: groups: admins, dev & ops Signature element: none found - Summary trimmed. Checked at 10:02 UTC the window reads inside the window; at 10:06 UTC it reads expired.
- Input:
Base64 of a Response whose StatusCode is Responder with a nested InvalidNameIDPolicy code - Result:
Message: Response Decoded from: base64 (HTTP-POST) InResponseTo: _req2 Issuer: https://idp.example.com Status: urn:oasis:names:tc:SAML:2.0:status:Responder / urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy - There is no assertion, so no NameID, Audience or time window is shown.
- Input:
Plain XML Response with ds:Signature and saml:EncryptedAssertion - Result:
Message: Response Decoded from: plain XML Status: urn:oasis:names:tc:SAML:2.0:status:Success Signature element: present (not verified) EncryptedAssertion: present; contents cannot be shown without the SP private key - Summary trimmed. Attributes and NameID stay hidden inside the encrypted part.
- Input:
aGVsbG8= (base64 of the text hello) - Result:
Error: Decoded bytes are neither XML nor raw DEFLATE data. Check that the whole value was copied. - Valid base64, but not a SAML message.
04Common use cases
- Finding why a service provider rejects a login by reading the Audience, Destination and Recipient values
- Checking whether an assertion failed because of clock skew between the IdP and SP
- Confirming which attributes and NameID format an identity provider actually sends
- Reading an AuthnRequest captured from a redirect URL to check the SP entity ID and ACS URL
- Comparing InResponseTo in a response with the ID of the request that started the login
- Reading a non-success status code, such as Responder with InvalidNameIDPolicy, when the IdP refuses a login
- Checking whether an IdP signs the response and encrypts the assertion before you change SP settings
05Tips
- In the network tab, the POST to your ACS URL carries SAMLResponse in its form data
- A Redirect value that will not decode was often cut short when copied; copy the whole query parameter
- If NotBefore is in the future, check the clocks on both servers before changing any config
- The time check uses your device clock, so compare times against the error your SP logged, not just the label
- Remove personal attribute values before pasting the XML into a public issue
06Related concepts
SAML 2.0, HTTP-Redirect binding, AudienceRestriction, NameID, AuthnRequest, single sign-on.
Frequently Asked Questions
What is SAML Response Decoder?
SAML Response Decoder is a free, browser-based developer tool on AIDToolStack. Decode SAML 2.0 SAMLRequest and SAMLResponse values from POST or Redirect bindings. See issuer, audience, validity times, NameID and attributes. It requires no installation or sign-up and works entirely in your browser.
Is SAML Response Decoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does SAML Response Decoder store my data?
No. It runs in your browser; nothing is uploaded.