Developer Utilities
XML Formatter & Validator
Formats XML with DOMParser and shows the browser parsererror text when the markup is invalid.
How to use XML Formatter
- Paste an XML document.
- Generate a formatted result or inspect the parser error.
- Check the output before using it.
A practical example
Fix a missing closing tag in the input before formatting can succeed.
What to check before using the result
Well-formed XML is not necessarily XSD-valid XML. Whitespace can be meaningful in mixed content.
Local processing
Inputs are processed in this tab. The site and some engines still load network assets.
Inspect before sharing
Review the output and keep the original file. Large files may take longer to process.
No account needed
No account, API keys, or watermarks required.