XML Formatter & Validator
Formats XML with proper indentation or minifies it to one line, checks that it is well-formed with a clear error message and line hint when it isn't, and shows quick stats about the document.
Runs 100% in your browser — your files never leave your device.
Read the full guide to this tool
Notes
- Validation checks well-formedness (matching tags, proper nesting, one root) — not conformance to a DTD or schema.
- Comments and CDATA sections are preserved as-is.
- Runs 100% in your browser — your files and data never leave your device.