Local StudioDEVELOPER TOOLS Format XML
100% Offline Download Tool Tools Catalog

XML Formatter

Indent compact XML while keeping mixed content, existing whitespace and entity spelling intact.

XML Source

Formatting Settings

Only compact sections that contain just child elements are indented. Existing text and spacing stay in place.

Instructions

  1. Paste XML 1.0, open a UTF-8 .xml file, or choose Open Sample.
  2. Select two spaces, four spaces or tabs, then choose Format XML. Existing whitespace, mixed content and protected xml:space regions stay as supplied.
  3. 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.

Security Check

XML Formatter

Format supplied XML text on your device.

  • Open XMLPaste XML 1.0 or choose a local UTF-8 file.
  • Indent Eligible SectionsPreserve text and identify regions kept as supplied.
  • Save the ResultCopy or download the complete formatted XML.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    Read your supplied XML as text and prepare a separate copy on your device.