Code · Made a little simpler
XML Validator
Validate XML 1.0 and namespace bindings in your browser. Locate malformed syntax, identify the root and download counts for elements, attributes and depth.
Read an XML well-formedness diagnostic
Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
XML Validator: how to use it
- Paste one XML document or select a local UTF-8 file.
- Select Validate XML. For a parser error, inspect the reported line and column near the failure.
- After a successful check, review the document statistics and download the JSON report.
Limits and notes
Local files must be UTF-8 and at most 4 MiB. XML input supports up to one million UTF-16 code units, 100,000 nodes and 128 element levels. DTDs are excluded. Checks XML well-formedness and namespace constraints. XSD, DTD validation and application-specific rules require a separate validation profile.
How your privacy works →XML Validator: common questions
Will an unbound namespace prefix be reported?
Yes. A prefixed element or attribute must have an applicable binding. Declare the prefix on that element or an ancestor.
Why does a valid-looking tag produce a closing-tag error?
An end tag must match the open element at that depth. The diagnostic identifies where the parser encountered the mismatch.