Shard Tools

XML Validator

Validate XML instantly in your browser.

Maintained by Roshan.

Use XML Validator

Converts xml to result in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore developer and data tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all developer and data tools

About XML Validator

An XML validator checks that a document is well-formed: every tag closed, every pair matched, nothing overlapping. XML still carries a great deal of the world's data - RSS and sitemaps, SOAP and config files, office document internals - and a single unclosed or mismatched tag makes the whole document unparseable. This tool scans your XML in the browser and reports whether it is well-formed, naming the tag and line where the structure breaks when it does. It checks the structural rules that stop XML from parsing at all, which is the first thing to get right before any schema or meaning can matter, and it does so without sending your document anywhere. Feeds and sitemaps are a frequent case: a search engine or reader silently ignores a malformed feed, so confirming it is well-formed before publishing saves a debugging session spent wondering why nothing is picking it up.

Using XML Validator

  1. Paste your XML. It is scanned in this browser tab; the content never leaves your device.
  2. If every tag is matched and closed, the tool confirms the document is well-formed.
  3. If a tag is unclosed, mismatched or orphaned, the message names the tag and the line, so you can see exactly where the tree breaks.

Where xml validator helps

A mismatched tag

A feed that will not parse has a </item> where </entry> was expected; the validator names both and the line.

An unclosed element

Spotting a <div> that was never closed in a fragment of markup, reported with the line it opened on.

Before you use the result

Questions about XML Validator

What does well-formed mean?

That the tags follow XML's structural rules: everything is closed, pairs match, and nothing overlaps. It is the baseline every parser requires.

Does it validate against a schema?

No. It checks well-formedness, not conformance to a DTD or XSD. A well-formed document can still break a schema's rules.

Related tools

XML to JSON

Convert XML to readable JSON in your browser. Attributes, repeated tags and mixed content are all handled predictably.

JSON Validator

JSON Validator in your browser. Instant, accurate, and nothing is uploaded.

YAML Validator

YAML Validator in your browser. Instant, accurate, and nothing is uploaded.