Developer & Web Tools
XML Formatter & Validator
Indent, tidy and check XML. Also minifies for production and reports tag structure.
Privacy
Everything on this page runs inside your browser. Nothing you paste, type or upload is transmitted, logged or stored.
Tips
- This checks that every tag is opened and closed in the right order. It does not validate against a DTD or XSD schema.
- XML is case-sensitive: <Item> and <item> are different elements.
- Five characters must be escaped in text content: & < > " and '.
Frequently asked questions
What is the difference between well-formed and valid XML?
Well-formed means the syntax is correct — tags nest and close properly. Valid means it also conforms to a schema that defines which elements are allowed where. This tool checks well-formedness.