← All toolsDeveloper›Data & Formats
XML Formatter
Format messy XML with clean indentation or minify it to one line, and check that it's well-formed. Nothing is uploaded.
Tip from Tink: Errors usually mean a tag was opened but never closed.
✅ Well-formed XML
<?xml version="1.0"?>
<catalog>
<book id="1">
<title>Tink's Guide</title>
<price>9.99</price>
</book>
<book id="2">
<title>Robots</title>
<price>12.50</price>
</book>
</catalog>Advertisement
How to use the XML Formatter
- Paste XML.
- Choose Format or Minify.
- Copy the output.
Everything runs in your browser. Nothing you enter is uploaded.