XML Validator

This XML validator checks that XML is well-formed: one root element, matching and properly nested tags, quoted attributes, and escaped special characters, with the line of the first error.

XML

XML

Waiting for input

What you get

How each result is checked

  1. Checked for well-formedness with an XML validator; errors show the line.

What can't convert exactly

  • This checks well-formedness, not a DTD or XSD schema.

Questions

Is my data uploaded?

No. Everything runs in your browser, in a background worker. Nothing is sent to a server.

Does it validate against an XSD or DTD?

No. It checks that the XML is well-formed, which every XML file must be. Validation against an XSD or DTD schema is a separate step done by tools that load that schema.

What is the difference between well-formed and valid XML?

Well-formed XML follows XML’s own rules (one root element, closed and properly nested tags, quoted attributes, escaped & and <). Valid XML is also well-formed and matches a DTD or XSD schema. This page checks well-formed XML.

How do I use the XML Validator online?

Paste your input or open a file on the left. The result appears on the right as you type, already checked; copy or download it. Nothing is uploaded: the XML Validator runs in your browser.