XML Validator

Find unclosed tags and malformed markup.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Checks that an XML document is well-formed, catching unclosed elements, mismatched closing tags, unescaped ampersands and duplicate attributes. Errors name the offending tag and line so you can repair the document quickly.

How to use it

  1. Paste the XML document.
  2. Press Validate to run the browser’s strict XML parser.
  3. Read the first reported error and fix it, then re-validate.

Frequently asked questions

Does validation check a DTD or XSD?
No. This is a well-formedness check only; schema validation needs the schema file and a dedicated validator.
Why is a raw & rejected?
In XML an ampersand starts an entity. Write & for a literal ampersand, or wrap the content in CDATA.

Keep going

More in this category