SAML Request & Response Decoder
Decode SAML POST and Redirect messages locally. Inspect assertions, attributes and signature metadata, with bounded raw DEFLATE decoding.
Decode the binding, not just Base64
Paste a SAML 2.0 XML message, standard Base64 POST value, or a Redirect URL/query string. Auto recognizes XML and Base64 XML; other encoded input is treated as raw DEFLATE followed by UTF-8 XML. Choose POST or Redirect explicitly when the source is known. Redirect uses RFC 1951 raw DEFLATE, not a zlib or gzip wrapper. URL parameters must preserve encoded +, / and =; ambiguous spaces and duplicate SAMLRequest/SAMLResponse parameters are rejected.
Inspect messages and assertions
The report identifies the message, issuer, destination, correlation ID and response status. Direct assertions include conditions, audience restrictions, confirmation recipients and authentication context. Attribute names and value counts appear by default; enable values to include NameID and attribute text. The XML output shows the original decoded document and can contain all claims regardless of the report checkbox. XML is displayed as text, never inserted as active HTML.
Signatures and encrypted assertions
XML signatures are listed with parent IDs, signature methods, reference URIs and certificate counts. Redirect SigAlg/Signature presence and the exact encoded signed-query parts are shown separately. Neither form is cryptographically verified. Duplicate ID attributes are flagged; they are a diagnostic, not complete signature-wrapping detection. EncryptedAssertion elements are counted but not decrypted. No XSD, certificate trust, audience or time validity check is performed.
Limits and safe local handling
All decoding runs in a disposable local Worker with a five-second deadline. Text/file input is limited to 1.6 MB, raw compressed data to 128 KiB, decoded XML to 1 MiB, and XML to 64 levels and 20,000 nodes. DTD/entity declarations are rejected and no external resources are fetched. Cancel or edit to discard stale work. The visible preview is capped at 200,000 characters; Copy and Download retain the full permitted output, up to 2 MiB. No input is stored in localStorage or uploaded.
Use the result for debugging
Compare Destination, InResponseTo, Recipient and audience strings with the application configuration. Inspect the actual NotBefore/NotOnOrAfter values in context; the public example intentionally has fixed dates and is not a live credential. A Success status or a visible Signature element cannot establish that a login is authentic. Use the relying party’s validated SAML implementation for authentication.
Specifications
FAQ
Does a listed signature mean the response is trusted?
No. This tool reports signature metadata without verifying it or establishing trust. Authentication requires a validated relying-party implementation.
Can it decrypt an EncryptedAssertion?
No. It counts encrypted assertions and preserves the original XML view; it does not accept decryption keys.
Why does a pasted Redirect value fail?
Use standard Base64 over raw DEFLATE, preserve URL percent escapes and select the correct binding. Base64URL, zlib wrappers and truncated payloads are not equivalent.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Compare plain XML, Base64 POST and raw-DEFLATE forms of the same document and check decoded bytes and sensitive-field display options.
- Comparison reference
- Independent Node.js zlib raw-DEFLATE data and fixed XML fixtures.
- Verification scope
- This does not validate SAML signatures, identity or authorization; known runtime-related failures are separately recorded.
Test source and cases (select a file to read it)
-
federation-tools.test.js
- SAML independent UTF-8 XML, POST and Node raw-DEFLATE representations agree
- SAML claims are opt-in in JSON while XML output retains the decoded document
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.