Base64 to XML
Decode Base64 strings that contain XML and immediately validate the decoded markup. Pretty-print the XML output, then copy it or download it as a file.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Base64 to XML?
Base64 to XML converts an encoded XML payload back into readable markup. XML often appears Base64-encoded in SOAP integrations, legacy APIs, message queues, config fields, and logs where angle brackets or line breaks need to be transported safely.
This tool decodes the Base64 text, validates the result as XML, and can format the markup for easier inspection. If the decoded text is not well-formed XML, you get a clear validation error instead of silently copying broken markup.
How to Use Base64 to XML
Paste a Base64-encoded XML string into the input area
Enable URL-safe Base64 if the encoded value uses - and _
Keep Pretty-print XML enabled for readable indentation
Click Decode Base64 to XML
Copy or download the decoded XML output
Common Use Cases
- Inspecting encoded SOAP request or response bodies.
- Debugging XML payloads stored in logs or message queues.
- Recovering XML configuration stored as a single Base64 field.
- Checking whether decoded XML is well-formed before sending it to another tool.
- Pretty-printing encoded XML snippets from API integrations.
Example Input and Output
Decode a compact XML order payload from Base64 and inspect the resulting markup.
PG9yZGVyIGlkPSJBMTAwIj48dG90YWw+NDIuNTA8L3RvdGFsPjwvb3JkZXI+<order id="A100">
<total>42.50</total>
</order>Schema scope
This validates XML well-formedness, not XSD or DTD schema rules.
Frequently Asked Questions
Does this validate XML after decoding?
Yes. The decoded text is parsed as XML. If the XML is not well-formed, the tool reports the parser error instead of returning invalid markup.
Can it pretty-print decoded XML?
Yes. Pretty-printing is enabled by default and can be turned off when you want the exact decoded text.
What if the decoded content is JSON or plain text?
Use Base64 to Text or Base64 to JSON for those formats. This page expects the decoded content to be XML.
Is the XML sent to a server?
No. Base64 decoding, XML parsing, and formatting run in your browser.
Related Tools
XML to Base64
Validate XML and encode it to Base64 with optional URL-safe output, stats, copy, and download.
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
Base64 to Text
Decode Base64 strings back to plain text. Handles UTF-8, URL-safe Base64, and broken padding.
XML Validator
Validate XML syntax online. Shows valid/invalid status with exact error line and column, plus structure stats including root element name and element count.
XML Pretty Print
Pretty-print XML online with clean indentation, optional comments, XML declaration controls, and validation errors.
XML to JSON Converter
Parse and convert XML to clean JSON instantly — attributes, namespaces, and nested elements handled.

