Instructions ยท XML Formatter

  1. Open the HTML file in a modern browser. Review Security Check and select Continue.
  2. Paste XML 1.0, open a UTF-8 .xml file, or choose Open Sample.
  3. Select two spaces, four spaces or tabs, then choose Format XML. Existing whitespace, mixed content and protected xml:space regions stay as supplied.
  4. Review the formatted XML and source regions left untouched. Choose Copy XML or Download XML. Download preserves file bytes.

Format one UTF-8 XML 1.0 document up to 2 MiB. The formatter keeps existing text and spaces, and inserts indentation only between adjacent child tags in eligible sections.