WebToolsPlanet
Converter Tools

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.

Decode XMLValidate markupPretty-printBrowser based

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What 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

1

Paste a Base64-encoded XML string into the input area

2

Enable URL-safe Base64 if the encoded value uses - and _

3

Keep Pretty-print XML enabled for readable indentation

4

Click Decode Base64 to XML

5

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.

Base64 input
PG9yZGVyIGlkPSJBMTAwIj48dG90YWw+NDIuNTA8L3RvdGFsPjwvb3JkZXI+
Decoded XML
<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.