SAML Response and Metadata Decoder
Paste a SAMLResponse, a redirect URL or IdP metadata, see who, what and when at a glance, and get checks for audience, recipient, validity windows, SHA-1 and expired certs.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste the message
Paste a SAMLResponse, SAMLRequest, redirect URL, XML or metadata.
- 2Enter expectations
Fill in your SP entity ID, ACS URL, IdP entity ID and clock skew.
- 3Read the summary
Check issuer, status, subject, audience and validity times.
- 4Fix the findings
Work through errors first, then warnings about algorithms and certificates.
- 5Inspect the XML
Search the pretty-printed XML and export attributes as CSV.
- 6Encode test messages
Use the encode tab to build POST or redirect values from XML.
About this tool
Single sign-on with SAML 2.0 fails in unhelpful ways: the user is bounced back to a login page or sees a generic error, and the only evidence is an opaque Base64 blob captured from the browser. Reading it means decoding the Base64, inflating it if it came through a redirect, pretty-printing several hundred characters of namespaced XML and then knowing where to look. This decoder does all of that in one paste. It accepts a raw SAMLResponse or SAMLRequest value, a full redirect URL or form body, plain XML, or an identity provider's metadata. It shows the issuer, status, subject, audience, recipient, validity window, authentication details and every attribute, describes the signature algorithms and the certificates with their expiry dates, and compares the message with the entity ID and ACS URL your service provider expects.
Decoding steps
If the input contains a SAMLRequest or SAMLResponse parameter, that value is taken, together with RelayState and SigAlg when present. Percent-encoding is undone, the Base64 is decoded, and if the result is not XML it is inflated as raw DEFLATE, which is what the HTTP-Redirect binding uses. The steps taken are listed above the summary, so you can tell which binding was used.
Responses
The summary shows the response ID, IssueInstant, Destination, InResponseTo (none means IdP-initiated), issuer and status with any sub-status. For each assertion it shows the NameID and format, the subject confirmation recipient and expiry, the NotBefore and NotOnOrAfter window, the audience list, the authentication instant, session index and context class, and all attributes with their friendly names and values, exportable as CSV.
Checks
The status must be Success. Destination and Recipient are compared with your ACS URL, the audience with your SP entity ID and the issuer with the IdP entity ID. Validity windows are checked against now, or a time you choose, allowing your clock skew. An assertion that is not signed while the response is not signed either is an error. SHA-1 signature or digest algorithms are warned about. A signature Reference URI that does not match the signed element's ID, and assertions nested in unexpected places, are flagged as patterns of signature wrapping attacks. Multiple assertions, encrypted assertions and missing conditions are noted.
Metadata
For EntityDescriptor and EntitiesDescriptor documents it lists entity IDs, roles, SSO, SLO and ACS endpoints with bindings, NameID formats and signing flags. Every certificate in a KeyDescriptor is decoded with its subject, issuer, key type, serial and validity, with errors for expired certificates and warnings within 60 days of expiry. Plain-HTTP endpoints and expired validUntil dates are errors.
Encode tab
Paste XML to get the HTTP-POST value (Base64) and an HTTP-Redirect query string (raw DEFLATE, Base64 and URL encoding) with an optional RelayState, handy for building test requests.
Limits
The decoder does not verify XML signatures cryptographically, because that needs exact XML canonicalisation; a message that passes these checks must still pass your SAML library. Encrypted assertions cannot be read without the SP private key. For safety the parser refuses documents with a DOCTYPE and does not expand entities. SAML responses contain personal data and are valid for a few minutes; handle captured ones with care.
Worked example
A user at an SP whose entity ID is https://sp.example.com cannot log in. The captured SAMLResponse decodes in two steps (Base64, then XML), showing status Success, NameID [email protected] in emailAddress format, an audience of https://sp.example.com and a five-minute validity window that is still open. The checks raise one warning: the assertion is signed with rsa-sha1 and a sha1 digest. The IdP's metadata, pasted next, lists a certificate valid for one more year and an HTTP-POST SingleSignOnService at http://idp.example.org, flagged as plain HTTP. The team asks the IdP to switch to RSA-SHA256 and HTTPS endpoints.
Quick facts
- Category: Security & Privacy
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OASIS Security Assertion Markup Language (SAML) 2.0 Core, Bindings and Metadata
Frequently asked questions
Where do I get the SAMLResponse?
In browser developer tools, open the Network panel, log in, and find the POST to your ACS URL; the SAMLResponse form field holds the value. Browser SAML tracer extensions also show it.
Does the tool verify the signature?
No. It shows the algorithms, references and certificates and checks for wrapping patterns, but cryptographic XML signature verification belongs in your SAML library.
Why is SHA-1 flagged?
SHA-1 is broken for collision resistance and deprecated for signatures. Most identity providers can sign with RSA-SHA256.
What does InResponseTo none mean?
The login started at the identity provider rather than your service, called IdP-initiated SSO. Some SPs reject it on purpose.
Can it read encrypted assertions?
No. It reports that an EncryptedAssertion is present; decryption needs the SP private key.
Is the data uploaded?
No. Decoding and checks run in your browser. Clear the input afterwards, because SAML messages contain personal data.
