XML Validator

XML Validator

Updated August 20, 2026

XML validator online. Check if XML is valid, find syntax errors, and validate XML files free in your browser. No upload.

XML

0 lines · 0 chars

Loading editor...

Features

  • XML validator online: check if XML is valid as you type
  • Find XML syntax errors with line and column when the parser reports them
  • Count elements, attributes, text nodes, comments, and depth
  • List namespace URIs on the document
  • Validate XML files free in this browser, no upload
  • Works for SOAP, RSS, SVG, Maven POMs, and generic XML

Common Use Cases

  • Confirm a hand-edited config is well-formed before deploy
  • See why an Android layout file failed to inflate
  • Check an RSS or Atom feed after a CMS export
  • Count how deep a nested SOAP body actually goes
  • Catch a raw ampersand that should have been &

How to check if XML is valid

An XML validator answers “is this XML legal?” This page checks well-formedness: tags nest, attributes are quoted, there is one root, special characters are escaped. That is what people mean when they search “validate XML” or “XML checker” for a paste they already have.

Schema validity (XSD, DTD) is a second step. A document can be well-formed and still miss a required element your API expects. We do not fetch remote DTDs or XSDs, on purpose: that would be a network call.

If you need schema checks, run them in CI with the official XSD. Use this free XML validator online to catch broken markup in the paste you already have.

Examples

Valid - Well-formed
<note><to>Ada</to></note>
Invalid - Mismatched tags
<note><to>Ada</from></note>
Invalid - Unescaped ampersand
<a>Tom & Jerry</a>

Frequently Asked Questions

How do I validate XML online?

Paste the XML into this XML validator. If tags do not match or a character is not escaped, you get the error. The file never leaves your browser.

Does this download my company’s XSD?

No. There is no network request. External entities and DTD fetches are not performed.

Why is my HTML “invalid XML”?

HTML allows unquoted attributes, omitted closes, and void tags like <br>. XML does not. Use the HTML validator for HTML.

What about XXE?

We parse in the browser and do not resolve external entities. Do not paste secrets into any site you do not trust. This tab still never sends the bytes to us.

Tips

  • A raw & in text must be written as &amp;amp;. URLs with query strings are a common source.
  • Attribute values need quotes. HTML habits (class=foo) fail here.
  • Multiple root elements are invalid. Wrap them or split the file.