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
- Paste XML text.
- Choose Format or Minify.
- 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