XML Formatter

Tool guide

Indent or minify XML

Format XML as readable indented text or remove layout whitespace, with parsing errors shown in the output area.

How to use

  1. Paste XML text.
  2. Choose Format or Minify.
  3. Review text nodes and attributes before copying.

Example and expected result

Input: <root><item>hello</item></root>
Format it to inspect the indentation of root and item.

Capabilities and limits

  • Output is plain text, without node highlighting or tree folding.
  • No XSD/DTD business-rule validation is performed; review whitespace-sensitive content.

Troubleshooting

Check matching tags, closed attribute quotes and escaped characters such as &.

Data processing and storage

XML processing takes place in the current page, without automatic input saving. Copied data is managed by the clipboard and receiving application.

Read the full data-processing notice