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.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

XML Validator: how to use it

  1. Paste one XML document or select a local UTF-8 file.
  2. Select Validate XML. For a parser error, inspect the reported line and column near the failure.
  3. 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.

Guides