How to use
This tool checks XML well-formedness in your browser (no uploads). For XSD/DTD schema validation you’ll need a dedicated validator.
- Paste your XML into the input box.
- Click Check XML to validate and see a summary.
- Optional: click Format or Minify for output you can copy.
- If you get an error, fix the indicated area and re-check.
FAQ
Does this XML checker validate against XSD or DTD?
No. It checks well-formed XML syntax (parsing), not schema rules like XSD/DTD.
Will you upload or store my XML?
No. The tool runs locally in your browser and does not send the XML to a server.
Why don’t I always see a line and column number for errors?
Line/column reporting depends on the browser’s XML parser; when it’s available, the tool shows it.
What does “Normalize on check” do?
It re-serializes the parsed XML and prints a normalized version, which helps reveal hidden issues like unclosed tags or invalid characters.
Can formatting change my XML content?
Formatting may change whitespace/indentation; if whitespace inside text nodes matters, enable “Keep text whitespace on format”.
Can minifying break XML that relies on whitespace?
Minify removes whitespace between tags; if your application treats whitespace as meaningful in text nodes, review the result before using it.
What should I do if I get “Invalid XML” but the file looks correct?
Look for invisible characters (bad encoding, stray control characters) or unescaped characters like & that must be written as &.