New

XML Formatter

Runs in browser

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
<?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>

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.

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.

You might find these useful too.