SAML Response Decoder
Decode base64 or deflated SAMLResponse values into readable XML with issuer, NameID, attributes, conditions and signature presence.
SAMLResponse / XML
Decoded assertion
Nothing to decode
Paste a SAMLResponse value or an XML assertion first.
Your input is kept. Fix it and the result updates.
Examples
Clock-skew failure
NotOnOrAfter 12:10:00Z, effective clock 12:12:00Zexpired 2 minutes ago — set clock offset −5 minutes to make it valid for 3 minutesThe same assertion can be valid or expired depending on the evaluating clock, a common cause of SSO tickets.
Multi-value attribute
<saml:Attribute Name="groups"><saml:AttributeValue>admins</saml:AttributeValue><saml:AttributeValue>developers</saml:AttributeValue></saml:Attribute>groups = admins · developersEvery AttributeValue is listed; FriendlyName is shown alongside the canonical Name when present.
About this tool
SAML Response Decoder turns opaque SAMLResponse values into readable XML and explains the parts that matter during SSO troubleshooting: issuer, destination, status, NameID, audiences, attributes, conditions and signature presence. Paste a form POST value, a Redirect-binding URL, or raw XML — the decoder reports which layers it peeled off.
Conditions are compared with your current clock, and a clock offset in minutes lets you reproduce the time-skew failures behind many 'user can't log in' tickets. Validity verdicts with human-readable deltas also cover SubjectConfirmationData and session expiry. Multi-value attributes, FriendlyName mappings and multiple assertions are shown rather than silently collapsed.
Assertions are bearer tokens, so everything runs locally with no upload and no stored history. The tool detects ds:Signature elements and describes their algorithms and certificate dates, but it never verifies a signature: trusting an IdP requires certificate validation, digest checks and canonicalization that a decoder cannot perform.
What this tool does not do
- Signatures are never cryptographically verified; certificate details are descriptive only.
- EncryptedAssertion and EncryptedID payloads cannot be read without the service provider's private key.
- XML is rendered as text with search and lightweight highlighting, not as an editable editor.
- XPath execution, IdP metadata parsing and SAMLRequest semantics are out of scope.
- Inputs are capped at 8 MB after decode to protect the browser tab.
How to use this tool
Paste the response
Copy the SAMLResponse field from your browser's network tab, a full redirect URL, or an XML assertion into the input pane. Auto-detection reports base64, compression and XML sniffing as it goes.
Read the summary
Check the status code and StatusMessage, then the issuer, NameID, audiences, attributes, subject confirmation and authentication context.
Test the clock
Set a clock offset in minutes to see NotBefore and NotOnOrAfter verdicts change; the effective UTC time is displayed next to the control.
Copy or download
Copy the pretty XML or the plain-text summary, or download the decoded XML for a support ticket. Redact identity values before sharing screenshots.
Use cases
Debug an SSO integration
See the decoded response from Okta, Azure AD, ADFS or Shibboleth and compare it with your service provider's expectations.
Diagnose expired assertions
Distinguish expired conditions from dead subject confirmations or sessions, and simulate clock skew without waiting.
Explain a failed status
Surface StatusCode hierarchies, StatusMessage and plain-language hints for RequestDenied or InvalidNameIDPolicy.
Learn assertion structure
Study SAML semantics with a synthetic example that contains no real user data.
Accepted input shapes
| Input | How it is handled |
|---|---|
| Raw XML | Sniffed first from a '<' prefix and parsed directly — no base64 attempt. |
| POST binding | Standard or URL-safe base64, with whitespace, lost padding and spaces in place of '+' tolerated. |
| Redirect binding | Base64 followed by raw DEFLATE, zlib or gzip; each chain is tried and the successful one is reported. |
| URL/form parameter | SAMLResponse=… or SAMLRequest=… is extracted and percent-decoded before the binding chain. |
SAML 1.x documents parse but use different field names; a warning is shown when detected.
Common mistakes
Mistake:Assuming a ds:Signature element means the assertion was verified.
Fix:Treat the badge as presence only; verify with your IdP certificate and a SAML-aware library before trusting the response.
Mistake:Pasting SAMLRequest when troubleshooting a failed login.
Fix:The decoder labels request documents explicitly — use the SAMLResponse from the POST to the ACS URL instead.
Mistake:Pasting a production assertion into a ticket or chat.
Fix:Use the redaction toggle before copying, and remember that assertions are bearer tokens.
Mistake:Comparing timestamps in the browser's local timezone.
Fix:All ISO values are treated as UTC; timezone-less xs:dateTime values are interpreted as UTC, not local time.
Frequently asked questions
Why is my SAML response base64 encoded?
SAML is XML, but the browser POSTs assertions in a hidden form field and query strings have length and character limits. Base64 makes the XML safe to carry as a form value; Redirect bindings usually compress the XML first with raw DEFLATE. This tool reverses those layers and shows the XML and its meaning.
How do I check if a SAML assertion is expired?
Look at the Conditions panel. NotBefore is the earliest time the assertion is valid and NotOnOrAfter is the moment it stops being valid; the verdict shows the exact delta from the effective clock. SubjectConfirmationData and SessionNotOnOrAfter have their own verdicts because they can expire independently. Change the clock offset in minutes to reproduce clock skew between your IdP and service provider.
Can this verify the SAML signature?
No. It detects Signature elements, shows the declared algorithms and describes the embedded certificate's subject and validity dates, but it does not check the digest, canonicalization or trust chain. A green 'signature present' badge is not a trust decision — use a SAML library and your IdP metadata for verification.
What is the difference between Redirect and POST binding?
POST binding sends the base64 SAMLResponse in an HTML form field, usually without compression. Redirect binding puts it in the URL query string and DEFLATE-compresses the decoded bytes to keep the URL short. The decoder sniffs XML first, then tries base64 alone and base64 followed by raw DEFLATE, zlib or gzip, and reports the chain it used.
Is it safe to paste production assertions here?
The decode runs entirely in your browser tab: nothing is uploaded or stored, and no history is kept. Assertions are still bearer tokens, so use the redact toggle before copying output into a ticket, and share only the fields needed to diagnose the failure.
References & standards
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Android Network Security Config Builder
Generate network_security_config.xml with cleartext rules, trust anchors, certificate pinning and debug-only CAs — plus the manifest snippet and file placement checklist.
Ansible Vault Encrypt/Decrypt
Encrypt secrets into $ANSIBLE_VAULT;1.1;AES256 format or decrypt vault content with its password — locally in your browser, drop-in compatible with ansible-vault.
Argon2 Hash Generator & Verifier
Generate Argon2id/2i/2d hashes with proper m/t/p parameters and verify PHC strings — reference algorithm in your browser, nothing uploaded.
AWS Signature V4 Builder
Build AWS Signature V4 headers and presigned URLs from a canonical request — signed curl, key chain and debug diff, computed locally in your browser.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.