XML Formatter
Format, validate and minify XML online for free. Pretty-print XML documents with configurable indentation and catch tag errors — in your browser.
Formatted output
✓ Valid XML
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<book id="1" lang="en">
<title>Effective Java</title>
<author>Joshua Bloch</author>
<price>45.50</price>
</book>
<book id="2" lang="hu">
<title>Clean Code</title>
<author>Robert C. Martin</author>
<price>38.00</price>
</book>
</catalog>About XML Formatter
Paste any XML document to format it with 2- or 4-space or tab indentation, or compress it to a single line with the minify option.
The validator detects mismatched, unclosed and unexpected tags. Everything runs locally in your browser — your data is never uploaded.