XML Formatter
Beautify and validate XML with configurable indentation.
Runs in your browser — your data never leaves your device
Frequently Asked Questions
How do I format XML?
Paste or open an XML file, choose 2 or 4 spaces, then select Format. Invalid XML is reported in the output panel.
Does this send XML to a server?
No. XML formatting runs locally in your browser.
Are comments preserved?
The formatter preserves XML comments and declarations where possible, though formatting may normalize whitespace.