Base64 to XML Converter
Decode Base64 strings to XML and encode XML to Base64 online. Free, runs in your browser.
Input
Output
What Is Base64 to XML?
Base64 is an encoding scheme that represents binary data as ASCII text. XML data is sometimes Base64-encoded for safe transmission over text-based protocols or storage in JSON fields. This tool decodes a Base64 string and outputs the original XML. It also supports the reverse: encoding an XML string to Base64.
Toggle between Decode (Base64 → XML) and Encode (XML → Base64) using the mode buttons. All processing runs in your browser — no data is sent to any server.
How to Use This Tool
Choose Mode
Select Decode to convert a Base64 string to XML, or Encode to convert XML to a Base64 string.
Paste Input
Paste your Base64 string or XML into the left editor. Use Sample to load an example, or Upload to load from a file.
Copy or Download Result
The right panel updates automatically. Use Copy or Download to save the result.
Example
Decoding a Base64 string that encodes a simple XML document:
Base64 Input
XML Output
Frequently Asked Questions
What happens if the Base64 does not decode to valid XML?
The tool will show the raw decoded text as-is without XML formatting, since it performs no XML validation.
Does this support URL-safe Base64?
The browser's atob() function requires standard Base64. Replace - with + and _ with / before pasting URL-safe Base64.
Is my data sent to a server?
No. All processing happens locally in your browser.
Why do I get an error when encoding?
In Encode mode, btoa() only supports Latin-1 characters. If your XML contains non-Latin characters, you may need to UTF-8 encode it first.
Related Tools
The Base64 encoding scheme is defined in RFC 4648. See also MDN: Base64.