🛠️ Developer & Web

XML Validator

Is your XML well-formed? Find the first error in a second.

  • Freeno limits, no watermark
  • 0sign-ups or accounts
  • Privateruns on your device
  • Any devicephone, tablet or PC

What “well-formed” means

Well-formed XML follows the basic syntax rules: one root element, every opening tag closed (or self-closed like <br/>), properly nested tags, matching case (<Item> ≠ <item>), quoted attribute values, unique attributes per element and special characters escaped (&amp;, &lt;). The validator uses your browser’s XML parser and reports the first problem with its line and column, then shows statistics such as element count, maximum depth and namespaces used.

Well-formed vs valid

A document can be well-formed but still not match what a system expects. Checking against a schema (XSD, DTD or RelaxNG) — whether required elements exist and values have the right type — needs that schema; this tool checks syntax only, which catches the vast majority of real-world XML errors in configs, feeds, sitemaps and API payloads.

Everything runs in your browser — your code and data are never uploaded, so it is safe to paste private config files and API responses.

Frequently asked questions

Does it validate against an XSD schema?

No, it checks that XML is well-formed; schema validation needs the XSD.

Why is my HTML invalid as XML?

HTML allows unclosed tags like &lt;br&gt; and &lt;img&gt;; XML requires them to be closed.

What is the most common error?

Unescaped ampersands (&amp;) and mismatched closing tags.

Found it useful? Share the XML Validator:

Last updated 2026-11-21 · Built by Vinayak Agarwal · Part of Developer & Web (77 tools)