XML Formatter
Format and validate XML.
About this tool
Format and validate XML with clean indentation. The tool checks that your XML is well-formed and reports the exact parser error if it isn't.
Key Features
- Pretty-print with indentation
- Well-formedness validation
- Clear error messages
- Private & offline-capable
How to Use
- Paste your XML.
- Click Format.
- Fix any reported errors, then copy.
Benefits
- Debug API/RSS feeds
- Clean config files
- Validate before use
Frequently Asked Questions
It uses the browser's DOMParser. If the XML is malformed, the parser error is shown so you can fix it.