XML editor and validator

Paste XML to check its tags and see whether it is well formed.

XML editor and validator

Validation runs in your browser.

Result

✓Well-formed XML document

Elements
3

XML editor and validator

Inputs

XML
<note><to>Ada</to><body>Hello</body></note>

How it is calculated

Tags must be properly nested and closed.

Result

Well-formed XML document

✓
Elements
3

How it is calculated

  1. Tags must be properly nested and closed.
  2. The document must have a single root element.
  3. Comments, processing instructions and CDATA sections are recognized.

Example

<note><to>Ada</to><body>Hello</body></note>

Good to know

  • This checks well-formedness, not validity against a DTD or XSD.
  • The editor does not load files; paste the content into the text area.

Frequently asked questions

What is this tool used for?

Paste XML to check its tags and see whether it is well formed.

How is the result calculated?

Tags must be properly nested and closed.

What should I check before using the result?

This checks well-formedness, not validity against a DTD or XSD.

Updated October 11, 2026

Indicative result. For an important decision, check with a professional.