Base64 to XML
Paste Base64 and instantly recover the original XML text, decoded safely as UTF-8.
Reviewed by the CalcCafe editorial team · Last updated 1 July 2026 · How we test our tools
Example
Base64 input decodes back to XML:
PG5vdGU+PHRvPkNhZsOpPC90bz48L25vdGU+ → <note><to>Café</to></note>
How it works
Strips whitespace, decodes the Base64 with atob, then reinterprets the bytes as UTF-8 so non-ASCII XML content survives. Decoding runs live as you type and entirely in your browser.
Good to know
Base64 to XML takes a Base64-encoded string and turns it back into the original XML text, decoding the bytes as UTF-8 so accented letters, Cyrillic, and other non-ASCII characters come through intact. It is aimed at developers, API integrators, and anyone who has received XML wrapped in Base64 inside a config file, a JSON payload, a SOAP envelope, a JWT claim, or a database column and needs to see the readable markup.
Reach for it whenever XML has been Base64-encoded for safe transport: inspecting a webhook body, debugging an SSO or SAML assertion, reading an encoded element in a log line, or checking what a system actually stored before it was decoded. Because everything runs locally in the browser with no upload, it is also a sensible choice when the encoded blob contains sensitive data you would rather not paste into a remote service.
Read the result as plain decoded text, not as validated XML. The tool reports how many characters it recovered and flags whether the output starts with a "<" character as a rough hint that the content looks like markup; it does not parse the document, so a "looks like XML" status does not guarantee the tags are balanced or well-formed. If you need to confirm structure, paste the output into a dedicated XML validator or pretty-printer.
A practical note on input: the decoder strips whitespace and line breaks automatically, accepts URL-safe Base64 (it converts "-" and "_" back to "+" and "/"), and repairs missing "=" padding, so copy-paste from wrapped or URL-friendly sources usually just works. If you get a "not valid Base64" message, check for stray text such as a data-URI prefix (for example "data:application/xml;base64,") or HTML entities that slipped in alongside the encoded string.
Frequently asked questions
Does it handle non-ASCII XML content like accents or Cyrillic?
Does it validate that the result is well-formed XML?
Is my data uploaded anywhere?
Is it free?
People also ask
What is the difference between Base64 to XML and a generic Base64 decoder?
Why would XML be stored or sent as Base64 in the first place?
Can it decode URL-safe Base64?
Why does my decoded XML show strange or garbled characters?
Does decoding Base64 to XML keep the XML declaration and formatting?
Is it safe to decode confidential XML here?
What does the 'Invalid Base64 length' error mean?
Can I get XML back into Base64 after editing it?
Related tools
Sources & references
These tools follow our methodology and provide educational estimates only — verify important figures with a qualified professional.