Base64 to XML Converter

Client-sideNo sign-upFree

Decode a Base64 string and parse the result as formatted XML.

Quick facts

Category
Converters
Best for
Decoding a Base64-encoded XML payload into readable, well-formedness-checked XML
Base64
Formatted XML
✗ Valid Base64 and valid UTF-8 text, but not valid XML: Loading...
Decoding happens in three stages, each with its own clear error: (1) Base64 alphabet and padding, (2) whether the decoded bytes form valid UTF-8 text, (3) whether that text is well-formed XML - parsed with the browser's native DOMParser (same engine as XML Formatter), which never resolves external entities or DTDs. Runs entirely client-side.
In-content slot
Was this tool helpful?
On this page

Overview

Paste a Base64 string or data URI to decode it as UTF-8 text and parse that text as XML, with the result shown re-indented and well-formedness-checked. Errors are surfaced in three distinct stages: invalid Base64, valid Base64 whose bytes aren't valid UTF-8 text, or valid UTF-8 text that isn't well-formed XML. Parsing uses the browser's native DOMParser - the same engine as the XML Formatter - which never resolves external entities or DTDs against the network or filesystem. Runs entirely client-side; nothing you paste is ever uploaded.

Best for: Decoding a Base64-encoded XML payload into readable, well-formedness-checked XML

How to use this tool

  1. Paste Base64 or a data URI. A data URI prefix is stripped automatically if present.
  2. Decoded to UTF-8 text. The Base64 string is decoded to bytes, then those bytes are decoded as UTF-8.
  3. Parsed as XML. The decoded text is parsed with the native DOMParser and re-indented.
  4. Copy the result. Grab the formatted XML with one click.

Why use this tool

Three-stage error model

Invalid Base64, invalid UTF-8, and malformed XML are each reported with their own specific message.

No XXE risk

The native DOMParser never resolves external entities or DTDs - a standard browser platform guarantee.

Data URI support

Paste a full data URI and the base64 payload is extracted automatically.

Nothing leaves your browser

Decoding and parsing happen entirely client-side.

Frequently asked questions

The Base64 Decoder just returns decoded text. This tool additionally parses that text as XML and re-indents it, with a specific error if the decoded text isn't well-formed XML.

No - the output is shown as re-indented source text only, generated via the native XMLSerializer/DOMParser, never via dangerouslySetInnerHTML.

Explore more free tools

Formatters, converters, validators, and generators - all free and running entirely in your browser.

Browse more tools