Workspace
Mode
Type
SAML parameter format guide

SAMLRequest (redirect binding)

?SAMLRequest=<Base64(Deflate(XML))>&RelayState=…

SAMLResponse (POST binding)

<input name="SAMLResponse" value="<Base64(XML)>" />

To decode from a browser URL: copy the value after SAMLRequest=, URL-decode it if needed, then use this tool in Decode mode.

Letters to Numbers Logo

Letters to Numbers

Trusted Conversion Tools

SAML Encoder and Decoder

Our free SAML Encoder and Decoder handles the full SAML 2.0 encoding pipeline in your browser. Decode SAMLRequest parameters (Base64 + raw DEFLATE) or SAMLResponse parameters (Base64-only) back to readable XML — or encode XML into either format for testing. Includes an optional URL-encode step and a built-in format guide explaining the difference between redirect and POST binding.

Who Is It For?

Identity & SSO Engineers

Debugging SAML SSO flows by decoding SAMLRequest and SAMLResponse parameters to inspect the XML assertions, conditions, and attribute statements.

Security Analysts & Pentesters

Inspecting SAML tokens during security assessments to identify misconfigured assertions, weak conditions, or missing signature validation.

Integration Developers

Encoding test XML into SAML format for simulating IdP or SP requests during development and integration testing of SAML-based systems.

IT Administrators

Troubleshooting SAML login failures by decoding the raw parameters captured from browser network logs or proxy tools like Burp Suite.

QA Engineers

Verifying that encoded SAML assertions match expected XML schemas and contain the correct attributes and conditions.

How It Works

Select the SAML type (SAMLRequest or SAMLResponse) and mode (Encode or Decode). To decode: paste the raw parameter value — URL-decoding is applied automatically, then the tool Base64-decodes and (for SAMLRequest) inflates the deflated payload to reveal the XML. To encode: paste your XML and the tool applies raw DEFLATE compression (for SAMLRequest) or skips compression (for SAMLResponse), then Base64-encodes the result. An optional URL-encode step can be applied for use in redirect URLs.

Features

  • Decodes SAMLRequest (deflate-raw + Base64) back to XML
  • Decodes SAMLResponse (Base64 only) back to XML
  • Encodes XML to SAMLRequest or SAMLResponse format
  • Automatic URL-decoding on paste — no manual step needed
  • Optional URL-encode output for use in redirect URLs
  • Pretty-prints decoded XML for readability
  • Swap button to reverse encode/decode direction
  • 100% browser-based using CompressionStream API — no server uploads

Your Privacy Matters

All processing happens in your browser. We never store, send, or log your data. Completely private and secure.