Skip to content

XML Validator

Check that XML is well-formed: matching tags, quoted attributes and a single root, with line numbers.

Runs in your browserXML → Report
Loading tool…

Example

Input
<books><book id="1">Dune</book></books>
Output
✓ Well-formed XML

Root element: <books>
Elements: 2
Attributes: 1
Declaration: no

How to use the XML Validator

  1. Paste or type your XML into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the Report result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.
  • Checks well-formedness only; validation against a DTD or XSD schema is not performed.

Browse all validators →