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.

