XML Formatter & Validator
XML Formatter & Validator Online
Format complex XML, catch structural errors instantly, minify XML, and inspect the document tree.
Free and no registration
Runs in your browser
XML is not uploaded to the server
Input XML
1
Result
Enter XML to begin.
Parse error
Hint:
XML statistics
Characters0
Bytes0
Lines0
Elements0
Attributes0
Depth0
Root element—
Tree view
Validate XML first to view its tree.
Quick tip
Use 2 or 4 spaces for common projects. Text inside elements is preserved as much as possible while formatting.