XML formatter
Format XML with two- or four-space indentation. Malformed XML is reported instead of silently changed, and processing stays local.
XML input
Formatted XML
Enter XML to format.// About this tool
Make compact XML readable when debugging SOAP responses, feeds, or configuration files. Paste XML and copy the indented result. Indentation is consistent throughout the document.
// How to use it
- Paste the XML to format.
- Choose two or four spaces of indentation.
- Copy the formatted XML.
// Frequently asked questions
Does it modify element content?
No. It reformats whitespace and indentation; element names and values are preserved.
What happens with invalid XML?
An error is shown and no formatted output is produced.