What Base64 to XML does
Decode Base64 and pretty-print the XML. Text is handled as UTF-8, so accented letters, other scripts and emoji survive the round trip.
Base64 to XML examples
The built-in sample
Input
PHVzZXJzPjx1c2VyIGlkPSIxIj48bmFtZT5BZGE8L25hbWU+PC91c2VyPjx1c2VyIGlkPSIyIj48bmFtZT5MaW48L25hbWU+PC91c2VyPjwvdXNlcnM+Output
<users>
<user id="1">
<name>Ada</name>
</user>
<user id="2">
<name>Lin</name>
</user>
</users>This is the input that the Load sample button fills in.
A compact document
Input
PGE+PGI+MTwvYj48L2E+Output
<a>
<b>1</b>
</a>The decoded XML is indented two spaces per level.
Each output was produced by running this tool on the input above it.
How it works
Whitespace is removed and URL-safe characters (- and _) are converted to the standard alphabet, so both Base64 and base64url input work. The bytes are decoded as UTF-8 and then parsed and indented, so you can tell immediately whether the payload is intact.
Details and limits
- Encoding and decoding are exact, so the data comes back without losing anything.
- The decoded bytes are read as UTF-8, whatever the XML declaration says.
- The decoded document is re-indented, so whitespace between its tags may differ from the original.
- Input that is not valid Base64 stops the tool, and the status line shows where the problem is. The Base64 to JSON page lists the usual causes.
Questions
Is my data uploaded when I use Base64 to XML?
No. The tool runs in your browser, so what you paste or open is processed on your own device and is not sent to a server.
What does Base64 to XML do?
Decode Base64 and pretty-print the XML. Text is handled as UTF-8, so accented letters, other scripts and emoji survive the round trip.
How does Base64 to XML work?
Whitespace is removed and URL-safe characters (- and _) are converted to the standard alphabet, so both Base64 and base64url input work. The bytes are decoded as UTF-8 and then parsed and indented, so you can tell immediately whether the payload is intact.
Are there any limits I should know about?
The decoded bytes are read as UTF-8, whatever the XML declaration says. The decoded document is re-indented, so whitespace between its tags may differ from the original.
Is there a size limit?
There is no fixed size limit. Everything happens on your device, so very large inputs depend on its memory and can take longer on a phone than on a computer.
Does it work on phones, and is it free?
Yes. It works in any current browser on Android phones, iPhones, tablets and computers. It is free and needs no account or sign-up.