Toolzy

XML Formatter

Pretty-print XML with indentation.

Input
Output

Format XML by nesting level. This is a formatting heuristic, not a validating parser.

How to use

  1. Paste XML.
  2. The formatted output appears.
  3. Copy the result.

Frequently asked questions

Does it validate XML?
No, it only re-indents; malformed XML may format oddly.
Are attributes kept?
Yes, tags and attributes are preserved.

Related tools