XML Validator
Check whether XML is well-formed, view error messages, and get a tidy indented version.
Category: Dev Tools
When to use?
Use it to quickly find format errors in XML from APIs, config files, RSS or SVG. It checks that tags, nesting and quotes are correct, and outputs nicely indented XML when valid.
How to use
- Paste the XML to check.
- Review the valid/invalid result and any error message.
- Copy or download the tidied XML.
Input Explanation
Enter the XML document to check. The XML declaration (<?xml … ?>) is optional.
Calculation Basis
It parses the XML with the browser DOMParser and detects parsererror to judge well-formedness, then re-emits the DOM with indentation.
Usage Examples
- API & config checks - Catch syntax errors in XML responses or config files before deploying.
- XML tidy-up - Indent minified XML for readability.
Examples
- Missing closing tag → error message shown
- Valid XML → element count and tidied output
Cautions
- This checks well-formedness only — it does not validate against DTD or XSD schemas.
- Tidying normalizes whitespace, so output may not be byte-identical to the original.
FAQ
Does it validate against a schema (XSD)?
No — only structural well-formedness (tags, nesting, quotes).
Can I see the error location?
Yes — the browser parser’s error message (location and cause) is shown.
Is my data uploaded?
No. All checks run only in your browser.
Related Tools
- XML ↔ JSON Converter - Convert XML and JSON data bidirectionally, preserving attributes and text.
- JSON Formatter - Beautify or minify JSON strings instantly and check for validity errors.
- YAML Validator - Validate YAML syntax, show error line/column positions, and preview the parsed JSON.
- UUID Generator - Generate up to 20 cryptographically secure UUID v4 values at once.
- Password Generator - Generate secure random passwords in the browser by choosing length, character set, and count.
- JWT Decoder - Decode a JWT header and payload to view the JSON and key claims.