Encode text to Base64, with correct Unicode handling.
Open toolXML Validator
Check if XML is well-formed, with exact line/column error reporting.
Formatted result will appear hereWhat is a xml validator?
This tool checks whether XML is well-formed - every tag properly opened, closed, and correctly nested - and points to the exact line and column where a problem occurs if it isn't. It's the fastest way to confirm an XML file or snippet is structurally valid before feeding it into a parser, pipeline, or build step.
How to use this tool
- 1Paste your XML, or upload an .xml file.
- 2Click Validate.
- 3If the XML is well-formed, you'll see a clear confirmation. If not, the exact line and column of the problem - like a mismatched or unclosed tag - is shown.
- 4Once valid, you can also switch to Format or Minify on the same input.
Common use cases
Frequently asked questions
What does 'well-formed' mean, specifically?
Every opening tag has a matching closing tag with the same name (or is self-closing), tags are correctly nested without overlapping, and there's exactly one root element - the baseline structural rules every XML document must follow.
Does this validate against a schema (XSD or DTD)?
No - this checks structural well-formedness, not conformance to a specific schema. A document can be well-formed XML while still not matching a particular schema's rules.
What kind of errors does it catch?
Mismatched closing tags, unclosed tags, and malformed tag syntax are all detected, each with the exact line and column so you can jump straight to the problem instead of scanning the whole document.
Is my XML uploaded anywhere?
No - validation happens entirely in your browser.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Encoding"
}