XML validator & formatter
Check XML is well-formed; pretty-print or minify it.
This tool runs in your browser. Your files and text are not uploaded.
Accepts: Paste text or open a file. Limits: Up to 25.0 MB.
Loading tool…
How to use XML validator & formatter
- Paste XML or open a file.
- Select Check, Format or Minify.
- Fix any errors, then copy or download.
Questions
Is well-formed the same as valid?
No. Well-formed means the syntax is correct (tags close, attributes are quoted). Valid means it also follows a schema. Use the XSD validator for that.
Are external entities loaded?
No. DOCTYPE entities and external resources are never fetched or expanded.
Related tools
More in Developer tools · All tools · Tool ID developers/xml-validator