Skip to content

Developer tool

XML Formatter

Paste XML and format it with indentation so the structure is easier to read.

Processed in your browser. The text is not sent to our servers.

How to format XML

  1. Paste the XML.
  2. Click Format XML.
  3. Copy the indented result.

The browser parses the document first. If the XML is not well formed, the page reports that it could not be parsed.

Back to Developer tools

Frequently asked questions

Will attributes be reordered?

The formatter adds line breaks and indentation. It does not rewrite the text inside a tag beyond the original characters.

Is the XML uploaded?

No. Parsing and formatting run in your browser.