# Decode and verify a SAML response online

> Free SAML decoder in your browser. Decode a SAMLRequest or SAMLResponse, verify the XML signature and decrypt an EncryptedAssertion. Nothing is uploaded.

- URL: https://iamops.dev/tools/saml/
- Markdown: https://iamops.dev/tools/saml.md
- Language: en
- Runs in your browser, nothing is uploaded.

Paste a SAMLRequest, a SAMLResponse or a redirect URL to decode it, check the signature and decrypt the assertion. I wrote this to debug logins without handing assertions to a stranger.

## What can I paste here

The SAMLResponse or SAMLRequest value from a form POST, the raw XML, or the whole redirect URL. To decrypt an assertion, also paste a test private key, never a production one.

## What it does

- Paste raw XML, a base64 value or a whole redirect URL. Deflate is handled for you.
- You see issuer, NameID, audience, conditions and attributes, and every XML signature is verified against the certificate you pin.
- Paste the service provider private key and an EncryptedAssertion is decrypted in the page. Keys stay on your device.

## Example use

Copy the SAMLResponse field from your browser Network tab after a login, paste it here, and read the issuer, audience, attributes and whether the signature verifies.

## How to read the result

- Pin the IdP certificate in the second box. A valid signature from the embedded key only proves the message was not changed since someone with that key signed it. It does not prove who that was.
- The best result is a valid signature on the assertion with a pinned certificate. A signed response with an unsigned assertion is weaker, and the findings say so.
- Time checks use your clock. NotBefore and NotOnOrAfter are compared with a small allowance for skew.
- For redirect-binding requests, paste the full URL. The detached signature covers the query string as sent, so a changed RelayState fails.

## What it does not do

- It does not validate the audience or destination against your service provider. It shows them, you compare.
- It does not follow XML signature references to other documents or expand DTDs. A DOCTYPE is reported and never loaded.
- Encrypted keys, 3DES and AES key wrap are not supported. RSA-OAEP and RSA 1.5 key transport with AES-CBC or AES-GCM are.

## Questions people ask

### What can I paste here

The SAMLResponse or SAMLRequest value from a form POST, the raw XML, or the whole redirect URL. To decrypt an assertion, also paste a test private key, never a production one.

### How do I decode a SAML response?

Paste the base64 value from the SAMLResponse form field, the raw XML or the whole redirect URL. Deflate is handled for you, and the page shows the issuer, conditions, attributes and signature status.

### Can it decrypt an encrypted assertion?

Yes. Paste the service provider private key and it decrypts the EncryptedAssertion in your browser. Use a test key, never a production one.

## Related

- [Certificate decoder](https://iamops.dev/tools/certificate-decoder.md): Decode an X.509 certificate, chain or CSR and read SANs, expiry, key size, fingerprints and chain order. Paste PEM, base64 DER or hex. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/certificate-decoder/)
- [JWT decoder and verifier](https://iamops.dev/tools/jwt.md): Decode a JSON Web Token, show claims and expiry as dates, and verify the signature. Paste a compact JWT, then an HMAC secret, PEM key, JWK or JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/jwt/)
- [ID-JAG inspector](https://iamops.dev/tools/id-jag.md): Inspect an Identity Assertion JWT Authorization Grant against the IETF draft and get the curl requests. Paste a compact ID-JAG token. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/id-jag/)
- [DPoP proof builder and checker](https://iamops.dev/tools/dpop.md): Build a DPoP proof with a fresh ES256 key, or check typ, htm, htu, iat, ath, nonce and the cnf.jkt thumbprint. Paste a DPoP JWT and the method and URL. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/dpop/)
- [PKCE generator](https://iamops.dev/tools/pkce.md): Generate a PKCE code verifier and S256 challenge, or check that a pair matches, with authorize and token snippets. Paste a verifier and optional challenge, or generate them here. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/pkce/)
- [OIDC discovery and JWKS viewer](https://iamops.dev/tools/oidc-discovery.md): Read an OpenID Provider discovery document and JWKS, and flag missing PKCE, weak keys or risky grants. Type the issuer, or paste the JSON if CORS blocks the fetch. Runs in your browser. Nothing is uploaded to this site; the fetch goes from your browser to the issuer. (https://iamops.dev/tools/oidc-discovery/)
- [Encoder and decoder](https://iamops.dev/tools/encoder-decoder.md): Encode or decode Base64, URL, hex, HTML entities, Unicode, gzip, deflate and the SAML redirect chain, with auto-detect. Paste the text. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/encoder-decoder/)
- [HAR inspector](https://iamops.dev/tools/har-inspector.md): Inspect a HAR file: filter requests, follow the OAuth or SAML flow, decode JWTs, and copy as curl with secrets redacted. Drop a HAR export from DevTools. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/har-inspector/)
- [HTTP client](https://iamops.dev/tools/http-client.md): Call an API from your browser with Basic, Bearer, an API key, or OAuth 2.0 (client credentials, authorization code with PKCE, device code, refresh, token exchange) and optional DPoP. Enter the URL and auth details, or paste a curl command, HAR or OpenAPI definition. The request goes from your browser, not through this site. If CORS blocks the call, the page offers curl instead. (https://iamops.dev/tools/http-client/)
- [SD-JWT and VC decoder](https://iamops.dev/tools/sd-jwt.md): Decode an SD-JWT or SD-JWT VC: split disclosures, recompute digests against _sd, and check the Key Binding JWT. Paste the compact string with ~ separators, and optionally the issuer JWK. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/sd-jwt/)
- [Passkey and WebAuthn decoder](https://iamops.dev/tools/webauthn.md): Decode a WebAuthn or passkey response: attestationObject, clientDataJSON and authenticator data, including flags, AAGUID, sign count and the COSE public key. Paste the credential JSON or the individual fields. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/webauthn/)
- [MCP auth discovery checker](https://iamops.dev/tools/mcp-auth.md): Check MCP authorization discovery: Protected Resource Metadata (RFC 9728) and the authorization server metadata, and flag missing PKCE S256, CIMD/DCR or resource indicators. Enter the server URL, or paste the JSON if CORS blocks the fetch. Requests go from your browser, nothing is uploaded to this site. (https://iamops.dev/tools/mcp-auth/)
- [Shared Signals SET decoder](https://iamops.dev/tools/shared-signals.md): Decode a Shared Signals Security Event Token (CAEP or RISC), explain the event type and the sub_id formats, and optionally verify the signature. Paste the SET JWT and optionally the transmitter JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/shared-signals/)
