XML Beautifier

Beautify and indent XML online so it is easy to read, and check that it is well-formed at the same time. Free, in your browser.

How to use the XML Beautifier

Validate, beautify and clean JSON, CSV, XML and YAML.

  1. Paste or upload your data
  2. Choose the options
  3. Copy or download the result

Tips

Example

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

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

Frequently asked questions

How do I format XML?

Paste your XML, choose Beautify and copy the indented result. Errors show their line and column.

Can I keep comments?

Yes. Comments are kept by default, and you can remove them.

Guides