XML Formatter and Validator

Beautify, minify and validate XML online for free, with the line and column of any error. Runs in your browser.

Example

<a><b id="1">x</b></a>
<a>
  <b id="1">x</b>
</a>

Frequently asked questions

How does it report XML errors?

It shows the line and column of the first problem, such as a missing closing tag or an unescaped & character.