SAML Response Decoder Online

Decode SAMLResponse / SAMLRequest (POST or Redirect) and IdP metadata to JSON, verify XML signatures, flag audience, expiry and signature wrapping issues.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Paste a saml value — the base64 SAMLResponse / SAMLRequest of the POST binding, the base64 + DEFLATE value of the Redirect binding, or raw XML — or a full Redirect url with its query string. Responses come back as JSON: status, issuer, destination, InResponseTo, the assertion with NameID and format, SubjectConfirmationData (recipient, NotOnOrAfter), Conditions (NotBefore, NotOnOrAfter, audiences), AuthnStatement (session index, AuthnContextClassRef) and attributes as name -> [values]. AuthnRequest, LogoutRequest / LogoutResponse and metadata (EntityDescriptor / EntitiesDescriptor: SSO, SLO and ACS endpoints, NameID formats, signing / encryption certificates with fingerprints and expiry) are read too.

Every XML signature is verified: references by ID with the enveloped-signature transform, exclusive C14N (with InclusiveNamespaces) and inclusive C14N 1.0, SHA-1/256/384/512 digests, RSA and ECDSA signatures with WebCrypto. Give the IdP certificate as cert (PEM) or its fingerprint (SHA-256 / SHA-1) — a signature that only matches its own embedded certificate is reported as not trusted. Redirect-binding query signatures (SigAlg, Signature) are verified against cert as well.

Configuration checks become errors and warnings: unsigned messages, signatures over another element than the one that is read, nested or duplicated assertions and duplicate IDs (signature wrapping), comments inside NameID, SHA-1, expired or not-yet-valid conditions (clock_skew_s, default 180 s; now to test old samples), missing audience restriction and mismatches with expected_audience, expected_recipient (ACS URL), expected_issuer and expected_request_id. XML with a DOCTYPE is refused (XXE). op=sp-metadata generates SP metadata from entity_id, acs_url, slo_url and cert. Encrypted assertions are not decrypted; nothing is stored.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/saml-tools" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"saml":"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wi…","cert":"-----BEGIN CERTIFICATE-----\nMIIDP…\n-----END CERTIFICATE-----","expected_audience":"https://sp.example.vn/metadata","expected_recipient":"https://sp.example.vn/acs","expected_request_id":"_req42"}'

API documentation → Get a free API key

FAQ

Is it safe to paste a production SAML response?

It is processed in memory and never stored or logged, but it contains personal data and is valid for minutes: prefer expired or test responses.

Why is my valid signature "not trusted"?

Without "cert" or "fingerprint" the only key is the certificate embedded in the message, which an attacker could replace. Pass the certificate from your IdP metadata.

Can it decrypt EncryptedAssertion?

No: that needs your SP private key, which should never leave your server. The outer response is still checked.