Data and JSON tools Free · No sign-up · No upload

XML Validator

Find out whether your XML is well-formed, and exactly where it is not. You get a short report on the document, and a formatted copy when it is valid. All in your browser.

  • Nothing to install
  • Stays in your tab
  • Exact line and column
  • Formatted copy included
Your data
  • Runs on your device. Files are never uploaded.
  • Free and unlimited. No sign-up, no watermark.
Private: processed in your browserNo upload waitIN: XML → OUT: Report
How was XML validator?
How it works

XML validator in three steps

No account, no email, no waiting for an upload.

  1. STEP 01

    Load your XML

    Use .xml, .svg, .rss, .atom, .xsd, .xsl, .kml, .gpx, .plist or .txt files.

  2. STEP 02

    Run the check

    The XML is parsed for tag matching, nesting, quotes and entities.

  3. STEP 03

    Read the report

    A valid file shows its root element, element count and size. An invalid one shows the line, column and a code excerpt.

What you get

What XML validator does, and what it doesn't

We'd rather tell you up front than surprise you after the download.

What you get

  • Pinpoint errorsA mismatched tag, a missing quote or a stray ampersand is reported with line and column.
  • A code excerptYou see the problem line with a caret under the column.
  • Quick document factsRoot element, number of elements and file size for valid XML.
  • Formatted copyA tidy, indented version comes with the report when the XML is valid.
  • Works for XML dialectsSVG, RSS, Atom, KML, GPX, plist and other XML-based files can all be checked for syntax.

Good to know

  • Well-formedness, not schema validityThis does not check the file against a DTD or XSD. A file can be well-formed and still break your schema rules.
  • First error onlyFix the reported problem and run again to see the next one.
  • Not HTMLHTML tolerates things XML does not, like unclosed tags. Many HTML pages will be reported as invalid XML.
Private by design

Your data never leave your device

The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.

Typical online tool upload

Your device→Their server→Your device

Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.

Mediaextractr no upload

Your device does all the work

The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.

Made for real work

When people use XML validator

Debug a rejected request

Find the stray character that makes a SOAP service return an error.

Check a sitemap or feed

Confirm it parses before submitting it.

Validate hand-edited configs

Catch a missing closing tag before deploy.

Learn XML rules

See why a document is or is not well-formed.

Compare

Mediaextractr vs typical upload tools

MediaextractrPrivateTypical upload tools
Your file is uploadedNeverYes
Sign-up neededNoOften, after a few files
Daily file limitNoneOften 1–2 free files
WatermarkNeverSometimes
Wait for upload & downloadNoYes
Speed on very large filesDepends on your deviceDepends on their servers

What well-formed means

A well-formed document has one root element, every opening tag has a matching closing tag, tags nest properly, attribute values are quoted, and special characters like & and < are escaped as entities.

These are syntax rules every XML parser enforces. Meeting them is the first step before any schema check.

Frequent causes of errors

Most failures are small:

  • An unescaped & in text or in a URL query string. Write it as &amp;.
  • A tag closed in the wrong order.
  • Two root elements, or text before the first tag.
  • Attribute values missing quotes.
  • Use the HTML entity encoder to escape special characters, and the XML formatter to tidy valid files.

From well-formed to valid

Passing this check means a parser can read the file. Whether the content is acceptable to a particular system depends on its schema, a DTD or XSD that lists allowed elements and their order. Use the schema tools in your own environment for that step. Well-formedness is still the first thing to fix, since schema validation cannot run on a broken file.

FAQ

Questions, answered

How do I validate XML online?

Paste it here. The report says whether it is well-formed, or where it is not.

Does it validate against an XSD?

No. It checks syntax only, not DTD or XSD rules.

Is it safe to check an XML file that contains private data?

Yes. The check runs in this browser tab and the file is not uploaded.

Why is my HTML flagged as invalid XML?

HTML allows things XML forbids, like unclosed tags and unquoted attributes.

What does the report show for valid XML?

The root element, the number of elements and the size, plus a formatted copy.

Can I validate XML on a mobile browser?

Yes. The report, with its line and column, is easy to read in a current mobile browser.