DeveloperKit

Base64 to XML Decoder

Decode Base64 into validated, formatted XML instantly. Free, private, and 100% in your browser.

Input Base64

XML Output

XML output will appear here.

Decode Base64 to XML Online

SAML assertions, SOAP attachments, embedded SVG images, and many enterprise APIs deliver XML as Base64. This decoder turns it back into readable XML, checks that it is well-formed, and formats it for you.

Features

  • Decode and format

    Base64 is decoded and the XML is validated and indented in one step.

  • Forgiving input

    Accepts standard Base64 and base64url, line breaks, missing padding, and data URI prefixes.

  • Precise errors

    Invalid Base64 and malformed XML are both reported with their exact line and column.

  • SAML and SOAP

    Read Base64-encoded SAML responses, SOAP attachments, and XML API fields.

  • Raw output option

    Choose As decoded to see the exact decoded text without reformatting.

  • Private by design

    Decoding runs entirely in your browser. Your data is never uploaded.

Base64 to XML Example

Base64 input
PG9yZGVyIGlkPSIxMDQyIj48aXRlbSBza3U9IkEtMTAwIj5LZXlib2FyZDwvaXRlbT48aXRlbSBza3U9IkItMjAwIj5Nb3VzZTwvaXRlbT48L29yZGVyPg==
XML output
<order id="1042">
  <item sku="A-100">Keyboard</item>
  <item sku="B-200">Mouse</item>
</order>

How to Decode Base64 to XML

  1. Paste your Base64 string into the input editor, or upload a text file.
  2. The XML output appears instantly, validated and formatted.
  3. Choose pretty, minified, or As decoded output.
  4. Copy the XML or download it as an .xml file.

Frequently Asked Questions

How do I decode a SAML response?

Copy the SAMLResponse value (URL-decode it first if it contains %2B or similar sequences) and paste it into the input. If the response was sent with the HTTP-Redirect binding, it is also compressed and must be inflated first.

What if the decoded text is not valid XML?

The tool shows the line and column of the problem in the decoded XML. Choose As decoded to see the raw text instead.

Can I decode a Base64 SVG?

Yes. Paste the Base64 part of a data:image/svg+xml;base64, URI (or the whole URI) to get the SVG markup back.

Is my data uploaded anywhere?

No. Decoding runs entirely in your browser. Your data never leaves your device.

  • XML to Base64

    Encode XML documents, SOAP messages, and SVG as Base64 or base64url.

  • XML to JSON

    Convert XML to JSON with attributes, repeated elements as arrays, and automatic number and boolean detection.

  • XML to YAML

    Convert XML documents and configs into clean, readable YAML.

  • XML to CSV

    Turn repeated XML records into a CSV table for Excel or Google Sheets, with automatic row detection.