XML Formatter
Format and prettify XML documents.
Runs on your machine. Nothing you paste is uploaded.
Get XML Formatter and 121 other tools. Free for 7 days, no account needed.

What it does
Paste XML that arrives on a single line or with messy indentation and get it back neatly indented, with each element on its own line. Works for SOAP responses, RSS feeds, Maven or Android config files, SVG markup and anything else that is well-formed XML.
The document is parsed with the browser's XML parser rather than reformatted with regular expressions, so the XML declaration, DOCTYPE, comments, CDATA sections and processing instructions are kept in place. Indent with 2 or 4 spaces. When the XML is malformed, the parser's error is shown in the output instead.
When you would reach for it
- Read a SOAP or XML API response that came back as one long line.
- Check that an XML config file is well-formed before deploying it.
- Tidy up an SVG file exported from a design tool.
- Re-indent a pom.xml or Android manifest to 2 or 4 spaces.
Also found by searching
- xml
- format
- prettify
- indent