</>

XML Validator

Check if XML is well-formed, with exact line/column error reporting.

xml-formatter.tool
0 lines · 0 chars · 0B
Formatted result will appear here
Nothing you paste here is ever sent to a server - it all happens locally in your browser.
Overview

What 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.

Quick start

How to use this tool

  1. 1Paste your XML, or upload an .xml file.
  2. 2Click Validate.
  3. 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.
  4. 4Once valid, you can also switch to Format or Minify on the same input.
Where it helps

Common use cases

Confirming an XML config file is well-formed before deploying it
Catching a mismatched or unclosed tag introduced by a manual edit
Validating XML generated by a script or another tool before using it downstream
Quickly checking a snippet of XML pasted from documentation or a bug report
Good to know

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.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Encoding"

}

Related tools

B64
No signup
Base64 Encoder

Encode text to Base64, with correct Unicode handling.

Open tool
B64
No signup
Base64 Decoder

Decode Base64 back to readable text, with correct Unicode handling.

Open tool
URL
No signup
URL Encoder

Percent-encode URLs and query strings, component or full-URI mode.

Open tool