Web Toolbox

XML validator

Runs in your browser – nothing is uploaded.

Paste XML to check that it is well formed: tags are closed and nested correctly and attributes are valid. If there is a problem, you see the first error with its line and column.

Example

Input

<note>
  <to>Ada</note>

Output

Expected closing tag 'to' (opened in line 2, col 3) instead of closing tag 'note'. (line 2, col 10)

This example is invalid, so the tool shows an error.

Frequently asked questions

Does it validate against an XSD or DTD?

No. It checks well-formedness only, not schema validity.