XML Validator
Find out whether your XML is well-formed and where it breaks. Paste XML to check matching tags, a single root element, quoted attributes and escaped characters with your browser's XML parser — then view it neatly indented.
Paste XML and it's parsed instantly. Errors are reported with the line and column and a pointer to the problem; valid XML shows the root element, element count and a formatted version preserving attributes, namespaces, CDATA sections and comments.
Zero Server Uploads
Files process in local RAM
Instant WASM Speed
No waiting queues or lags
Unlimited Batching
Convert files without limits
Suggest a Feature or Improvement for XML Validator
Need custom options, higher limits, or extra format support? Let our engineering team know!
How to use XML Validator
- 1Paste the XML.
- 2Fix any error at the line shown.
- 3Review the formatted output.
- 4Copy it.
Well-formed XML rules
Every opening tag needs a matching closing tag (or self-closing />), tags must nest properly, there must be exactly one root element, attribute values must be quoted, and & and < must be escaped as &amp; and &lt; outside CDATA.
Well-formed isn't the same as valid against a schema: XSD or DTD validation checks the structure and data types too, which this tool doesn't do.
Related tools
Validating a sitemap? Use the Sitemap Validator. For JSON and YAML, use the JSON Validator and YAML Validator.
Frequently Asked Questions
Can it validate against an XSD?
Not currently — it checks well-formedness only.
Is my code or data uploaded?
No. Everything runs in your browser; nothing you paste is sent to a server or stored.
Related Tools
JSON Validator
Validate JSON with exact error line and column, auto-fix common mistakes, and format it.
YAML Validator
Validate YAML (Docker Compose, Kubernetes, GitHub Actions) with line numbers, and convert it to JSON.
Sitemap Validator
Validate any sitemap.xml: syntax, namespaces, absolute URLs, lastmod dates, limits and live URL status.