XML Formatter

Runs in browser

Format and indent XML for readability instantly.

Pretty-print and format XML in your browser. Paste messy XML and get readable, indented markup. Free and private.

XML Formatter tool

Files never leave your browser.

Drag and drop a file here, or tap to select

Formatted XML

Loading formatter…

<?xml version="1.0" encoding="UTF-8"?><tools><tool id="1"><name>JSON Formatter</name><category>data</category><browserBased>true</browserBased></tool><tool id="2"><name>UUID Generator</name><category>generators</category><browserBased>true</browserBased></tool></tools>

🔒 Runs in your browser · No uploads · Your data never leaves your device

How to use

  1. Paste or upload XML

    Paste XML or open an .xml file.

  2. Review formatted output

    The output updates as you type.

  3. Copy or download

    Copy the formatted XML or download it with a .xml extension.

Common use cases

  • Reading SOAP API responsesPaste raw XML from a SOAP response to get properly indented markup that's easy to read and debug.
  • Formatting RSS or Atom feedsBeautify minified feed XML before inspecting elements or sharing with teammates.

Examples

  • One-line XML

    Collapsed markup becomes readable.

    Input
    <?xml version="1.0"?><root><item id="1"/></root>
    Output
    <!-- formatted with indentation -->

Frequently asked questions

Is my XML sent to a server?
No. Formatting runs locally in your browser.
Does it validate XML?
It formats well-formed XML; invalid markup may show an error.

Key concepts

XML
eXtensible Markup Language — a hierarchical text format used for data storage, config files, APIs (SOAP), and feeds (RSS/Atom).
Pretty-printing
Reformatting code or markup with consistent indentation and line breaks for human readability.

You might find these useful too.

More text tools