XML from an API or a config export usually comes without a single line break. Formatted, the nesting is visible at a glance, and a missing closing tag is easy to find.
The formatter parses the document first. If a tag isn't closed or an attribute lacks quotes, you get the parser's error message. Minify does the reverse and strips whitespace between tags to make the file smaller.
How to use the XML Formatter tool
- Paste the XML, or open an .xml file.
- Choose the indent, or tick minify.
- Copy the tidy XML or save it as a file.
Popular uses
- Reading API responses, RSS feeds and SOAP messages
- Checking a sitemap or a config file before deploying
- Shrinking XML for transfer
Tips for the best result
- It also works on SVG, RSS, XSD, plist and other XML-based files.
- An error message means the XML is broken, which is often the thing you were trying to find out.
Quick facts
| Price | Free |
|---|---|
| Works with | XML |
| Where it runs | In your browser, on your device |
| Account | Not needed |