XML Validator

Validate XML syntax online.

Developer

Paste XML to validate that it is well-formed. Errors are shown with a short message. Valid XML is confirmed. Runs in your browser.

About XML Validator

This tool checks whether your text is well-formed XML: all tags must be properly closed and nested, and special characters in text must be escaped. It uses the browser's built-in parser. Use it to catch syntax errors before using XML in configs or APIs.

How to use

  1. Paste your XML into the box.
  2. Click Validate XML. You will see either an error message or "Valid XML."

Frequently Asked Questions

What does the validator check?
It checks that the XML is well-formed: matching tags, valid nesting, and correct syntax. It does not validate against a DTD or XSD.
Is my XML sent to a server?
No. Validation uses the browser's DOMParser. Your data never leaves your device.
Why do I get "Invalid XML"?
Common causes: unclosed tags, mismatched open/close names, unescaped < or & in text, or invalid characters. Check the error message for a hint.