XML Formatter
Validate XML and indent its element structure.
Processed on your device. Your files and text are not uploaded.
Validates XML; mixed-content elements are kept together. Do not use reformatting for digitally signed XML.
How to use
Paste your input, choose an operation, then copy or download the result.
When to use XML Formatter
Validate an XML document and indent nested elements for inspection. Mixed-content elements stay together to avoid changing meaningful spaces within text.
Practical example
<items><item>Notebook</item></items> becomes an items element containing an indented item. A mismatched closing tag is rejected.
Can I use the output for signed XML?
Do not reformat digitally signed XML. Serialization can change a document’s byte representation and invalidate its signature. XML declarations and namespace serialization may differ from the original.