XML Formatter

Format and indent XML documents for readability. Paste sitemaps, RSS feeds, SOAP responses, or config files and get consistently indented markup.


Output will appear here.

Frequently Asked Questions

What XML types work?

Any well-formed XML — sitemaps, RSS, Atom, SOAP, SVG snippets, and config files.

Does this validate XML?

It parses XML before formatting. Invalid markup shows an error. Use the XML Validator for a dedicated syntax check.

Will attributes be preserved?

Yes. Formatting adds indentation without changing tag names, attributes, or values.

Is my XML uploaded?

No. Formatting runs locally in your browser.

Is this tool free and does it work on mobile?

Yes on both counts. The XML Formatter on draft21 is completely free with no sign-up required and works on all devices.