# Validate XML online.
Keep your data local.

Source: https://xsdhub.com/xml-validator

Validate XML syntax in your browser, find malformed tags and read errors with line numbers. Free, no document uploads. UTF-8 XML files up to 10 MB.

## What does an XML validator check?

An XML syntax check determines whether the document is well-formed: tags must be properly nested, attribute values must be quoted, and the document needs a single root element. A document can pass these checks while still containing the wrong fields for your application. To check allowed elements, sequence and data types, use the XSD validator with the schema supplied by your integration partner.

## How to validate an XML file

Open a UTF-8 XML file or paste its contents into the editor. Select XML syntax only, then choose Validate XML. Review each diagnostic and its line number when available. Fix the underlying problem and check the document again; one missing closing tag can cause later error messages too. You can export a JSON report after a validation run.

## A common XML syntax error

For example, <order><item>Notebook</order> is malformed because item has no closing tag. The corrected document is <order><item>Notebook</item></order>. A literal ampersand in text must be escaped as &amp;. A syntax check does not decide whether a price is correct or an invoice meets a business specification.

## Privacy and supported input

The parser runs locally using libxml2 compiled to WebAssembly. Documents are not sent to a validation server. Each input is limited to 1 MB. This beta rejects DTD and entity declarations. If you deliberately save an XSD to a paid schema library, that schema is stored in the account; that optional action is separate from local XML validation.
