XML Formatter

Parse XML documents and format their node hierarchy.

Files stay local
Preparing your tool…

How do I use this?

  1. Paste an XML document and click Format.
  2. Review the result, then copy or download it as needed.
About this tool

Parse XML documents and format their node hierarchy.

Paste an XML document and click Format.

DOCTYPE is rejected. Mixed text content retains whitespace to preserve meaning.

Common questions

What should I know about xml formatter?

DOCTYPE is rejected. Mixed text content retains whitespace to preserve meaning.

Is my data uploaded?

No. Input and files stay in your browser. Save any results before leaving the page.

Tool discussion

0 user comments · 4 official tips

Qingzhou ToolsOfficial advice

Whitespace in mixed-content nodes may be meaningful. After formatting, check text nodes and spaces around nested inline elements.

Qingzhou ToolsOfficial advice

XML containing DOCTYPE is currently unsupported. Check what the declaration is used for, then use an appropriate XML tool for that document.

Qingzhou ToolsOfficial advice

Use entities for literal less-than signs and ampersands, or CDATA where appropriate, so text is not parsed as markup.

Qingzhou ToolsOfficial advice

Check case and closing tags when XML reports a mismatch. XML is case-sensitive, and opening and closing tag names must match.

Tool content and files are processed in this browser. Save results before leaving; comment text is submitted to the server for review.

You might also need

View all