XML Validator — Check Well-Formedness and Structure
Check XML is well-formed, with the exact line and column of the first error and a document summary.
An XML validator checks that a document is well-formed: every tag closed and correctly nested, exactly one root element, attributes quoted, and reserved characters escaped. This reports the first error with its line and column, and for a valid document summarises the element count, nesting depth, attributes and namespaces.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Does this validate against my XSD schema?
My file looks fine but fails on line 1, column 1. Why?
How to use the xml validator
- 1Enter or paste your xml.
- 2Turn "Report namespaces and attributes" on or off as needed.
- 3The result appears immediately — copy or download it.
Embed this tool
Put the working xml validator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
XML FormatterFormat messy XML with proper indentation, or minify it back down, with well-formedness checked.Data Format ConverterConvert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.JSON ValidatorCheck whether JSON is valid, with the precise position of the error and what usually causes it.Excel to XML ConverterExport spreadsheet rows as XML with safe element names.PDF to XML ConverterExport PDF page layout into structured XML with per-line coordinates.XML Sitemap GeneratorTurn a list of URLs into a valid XML sitemap ready to submit to search engines.
Last updated
More data & format tools