XML Formatter

Format and minify XML. Validate well-formedness with line and column on errors.

Enter input above to see the result.

What is this for?

XML remains ubiquitous in enterprise systems, configuration, data exchange, and markup—yet it arrives at your desk minified into an unreadable blob. This tool reformats XML into an indented tree for human reading, or strips whitespace for transport, whilst validating that the document is well-formed. The browser's native XML parser catches syntax errors and reports the line and column, saving you from hunting through thousands of characters by hand.

When to use it

How it works

Common gotchas

Tips