Indent an XML document
A feed, an electronic invoice or a settings file often arrives in one piece. The formatter puts each element on its own line with the indentation you choose. Names, attributes and text are copied as they are, and an element mixing text and tags is not rearranged, so no space is added to its content.
Check that the XML is well formed
The first error is reported with its line and column: unclosed or wrongly nested tag, unquoted or repeated attribute, lone & sign, unknown entity, second root element, incorrect comment, forbidden character. An undeclared namespace prefix gets a note.
Minify and explore
- Minify: layout blanks between tags disappear; comments can be removed.
- Tree: open elements one by one; a click gives an XPath-like path, such as /catalog/item[2]/price.
What the tool does not do
It does not validate the document against an XSD schema or a DTD, so well-formed XML can still be rejected by the software expecting it. No external resource is loaded. Files are limited to 5 MB.
Frequently asked questions
Well formed or valid?
Well formed means the XML syntax is respected. Valid means the document also follows a schema listing the allowed elements. This tool checks the first point.
Why is rejected?
It is an HTML entity. In XML only & < > " and ' exist by default; use   for a non-breaking space.
Does indentation change my data?
Line breaks are only added between tags, where there was nothing but blanks. Text, CDATA sections and areas marked xml:space="preserve" stay untouched.
Is my document sent anywhere?
No. It is analysed in your browser and not saved. Only your settings are kept on your device.