Skip to content

Developer tool

XML Formatter

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

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

Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.

Result will show here after you run the tool.

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.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.