Yuzool

Dev Tools

XML formatter and validator

Paste XML to indent it neatly, check it’s well formed (every tag closed, in the right order), or minify it. Works for SVG, RSS feeds, sitemaps, SOAP and Android or Maven config files.

Well formed, in one look

XML is strict: every tag must close, in the order it opened, and attribute values need quotes. These are checked by this page’s formatter:

XMLResult
<a><b>1</b></a>well formed
<a><b>1</a></b><b> is closed by </a>
<a><b>1</b><a> is never closed
<note><to>Ann</to></note>well formed

Formatting rules

Each element goes on its own line, indented by its depth; an element holding only text stays on one line, so values are easy to read. Comments, CDATA sections and the XML declaration are kept as they are.

How to use it

  1. Paste XML, or open or drop a file.
  2. Pick Format or Minify, and the indent.
  3. Copy or download the result. A red line means it isn’t well formed, with the reason.

Questions

Does it check against a schema (XSD or DTD)?

No: it checks that the XML is well formed, which every XML file must be. Validating against a schema needs that schema’s rules.

Is my file uploaded?

No. It’s formatted in your browser.

Related tools

Open all 35 Dev Tools. Everything runs in your browser; nothing you paste is uploaded.

Settings

History

Snippet