XML Formatter & Validator

Beautify or minify XML and check it is well-formed.

What does an XML formatter do?

An XML formatter re-indents an XML document so its nested structure is easy to read, or removes the whitespace to make it as small as possible, and reports an error if the XML is not well-formed.

How to use the XML Formatter & Validator

    Frequently asked questions

    What is well-formed XML?

    XML that follows the syntax rules: one root element, properly nested and closed tags, quoted attributes and escaped special characters.

    Does it validate against a schema (XSD)?

    No, it checks well-formedness, not schema rules.

    Will formatting change my data?

    Only whitespace between elements changes; text, attributes and structure stay the same.