XML Formatter
Format valid XML with readable indentation while preserving mixed text content.
How to use
Paste an XML document.
Select Convert / inspect.
Review the formatted output before copying or saving it.
FAQ
How do I use this tool?
Paste an XML document. Select Convert / inspect. Review the formatted output before copying or saving it.
Will it change mixed text content?
Elements containing both text and child elements are serialized together rather than indented internally. xml:space="preserve" is respected.
Are DTDs and external entities supported?
DOCTYPE and ENTITY declarations are rejected. This tool does not fetch external schemas or validate documents against an XSD.
Are my inputs uploaded?
Tool inputs are processed in your browser. Advertising makes separate requests as described in the privacy policy.