Private XML syntax checker

XML Validator Online

Check whether an XML document is well formed and review detected syntax problems as a clear list instead of a raw parser screen.

Your XML stays in your browser. It is never uploaded.

Validate structured data

Private by design. Validation happens in this browser. Your source is not uploaded.

    Well-formedness versus schema validation

    This tool checks XML 1.0 well-formedness: one root, properly nested tags, valid attributes, entity references, comments, CDATA, processing instructions, and namespaces. It does not claim that the document follows a particular XSD or DTD.

    Some fatal XML errors prevent a browser parser from safely continuing. The validator itemizes problems it can identify independently, such as every bare ampersand, and otherwise reports the clearest available parser location.

    Frequently Asked Questions

    Well-formed XML has one root element, properly nested matching tags, valid names and attributes, and correctly written entity references.

    No. Well-formedness checks XML syntax. Schema validation also checks rules defined by a separate DTD, XSD, or other vocabulary specification.

    An ampersand begins an entity reference in normal XML text and attributes. Write a literal ampersand as & .