XML
Check whether your XML is well-formed, with precise error location and document statistics.
Your XML is parsed locally in your browser. Nothing is uploaded, logged, or stored.
A well-formed XML document follows the core syntax rules: exactly one root element, every opening tag is closed, tags are properly nested, attribute values are quoted, and special characters are escaped. This validator parses the document with a strict XML parser and reports the first violation it finds — the same way a browser or web service would reject it.
Note the difference between well-formedness (syntax) and validity (conformance to a DTD or XSD schema). This tool checks well-formedness, which is what catches 99% of real-world mistakes: unclosed tags, stray ampersands, mismatched nesting, and missing quotes.
Once your XML passes, tidy it with the XML Formatter or convert it with the XML to JSON Converter.
A missing </item> in a feed export is reported with its line and column, so you can fix it in seconds instead of scanning by eye.
Raw & or < inside text content breaks parsers. The validator pinpoints the offending position so you can replace it with & or <.
Paste an XML payload before POSTing it to an API to avoid 400 responses caused by malformed bodies.
Pretty-print messy XML with clean indentation or minify it — with validation built in.
Explore XML as a collapsible element tree with attributes and text highlighted.
Minify XML to a single compact representation by stripping indentation and whitespace.
Describe what you want to match and get a working regular expression with explanations and examples.
Looking for something else? Browse all tools