Small Tools
YAML, XML & Data utility

XML Validator

Check XML for well-formed syntax in your browser.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use XML Validator

  1. Paste an XML document.
  2. Select Validate.
  3. Fix the first problem the parser reports, then validate again.

Example

Input / settings:

<message><status>ok</status></message>

Output:

Valid XML ✓

A well-formed document passes even when it would not match any schema.

When to use

Overview

XML Validator checks whether text is well-formed XML by handing it to your browser's XML parser. It shows Valid XML ✓ or the parser's error; in Chrome the error includes a line and column. It checks syntax only. It does not validate against a DTD or an XSD schema, and it does not follow schema references.

Supported input

XML text

Output details

validation result

Limitations

Common mistakes

Practical tips

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers. Validation runs in your browser with the built-in XML parser and nothing is uploaded. The check accepts a DOCTYPE with an internal entity definition and does not warn about DTD or entity features, so review untrusted XML with a security-focused parser before you process it elsewhere.

References

Frequently asked questions

Does XML Validator check an XSD or DTD?

No. A schema reference such as xsi:noNamespaceSchemaLocation is accepted as an ordinary attribute and is not used to validate the document.

Why do the error messages differ between browsers?

They come from each browser's own XML parser. The line and column wording seen in Chrome is not guaranteed elsewhere.

How does XML Validator treat namespace prefixes?

A declared prefix is accepted. An undeclared prefix such as <x:a/> is reported as an error.

Related tools