How to validate XML
Start with the XML document's well-formedness check. XML Validate Tools points to XML Validator & Formatter, which can also format or minify the input, apply your chosen indentation, and copy or download the output. The validation runs locally in your browser with no upload.
Validate XML well-formedness
Open the child tool when you need to check an XML document's structure. The validation and formatting controls are on the same page, so you can check the input before preparing a copy or download.
- XML Validator & Formatter validates XML well-formedness, formats or minifies the input, lets you choose indentation, and provides controls to copy or download the output.
Format or minify XML
Choose format when you need readable spacing and indentation. Choose minify when you need a compact result. For formatted output, select the indentation setting before you copy or download it.
These output choices have different uses. Formatted XML gives you spacing and indentation to inspect. Minified XML removes that presentation spacing. Check well-formedness first, then choose the output form you need to copy or download.
Use the output after validation
After the well-formedness check, XML Validator & Formatter can produce formatted or minified XML. Choose indentation for formatted output, then copy the result or download it.
The category does not require an upload. Validation runs in the browser. XML Validator & Formatter provides the copy and download controls for the resulting output.
Use XML Tools for other XML jobs
Use XML Validate Tools for well-formedness checks, formatting, and minifying. For cleaning, comparing, merging, querying with XPath, or converting XML to JSON, open the parent XML Tools category.
Frequently asked questions
How do I validate XML?
Open XML Validator & Formatter and use it to check the XML document's well-formedness. You can then format or minify the input, choose indentation for formatted output, and copy or download the result.
Can an XML validator also format the input?
Yes. XML Validator & Formatter checks well-formedness and formats the input. You can choose indentation for the formatted output.
Which tool should I use to minify XML?
Use XML Validator & Formatter to minify XML. You can copy or download the output after minifying it.
Does XML Validate Tools upload my XML?
No upload is required. XML validation runs locally in your browser.