What it does
XML files are often delivered as one long line, or edited by hand until a tag goes missing. This tool checks that the XML is well-formed, then lays it out with each tag on its own line (pretty-print) or squeezes the spacing out (minify). If something is wrong, it points to the line and column of the first problem and says what it expected: a closing tag that does not match, an attribute without quotes, a stray &, a second root element, or a tag that never closes.
It works on sitemaps, RSS feeds, SVG, Android layouts, SOAP messages, config files and more. Nothing is uploaded: the checking is done by your own browser. Turn the result into JSON or YAML with the config converter, tidy JSON with the JSON formatter, or find patterns inside the text with the regex tester.
How to use it
- Paste your XML. An example catalog is loaded.
- Choose Pretty-print or Minify, then the indent (2 spaces, 4 spaces or a tab).
- Tick Remove comments to drop
<!-- ... -->. - If a mistake is found, press Go to it to jump to that spot in your text, fix it, and the result updates.
- Copy result or Download .xml.
What the checker looks for
- Every opening tag has a matching closing tag, in the right order.
- Attribute values are in quotes and no attribute is repeated.
&is only used to start an entity (&,<,>,",', or a number like©), and<never appears in plain text.- There is exactly one root element, and the optional
<?xml ?>line comes first. - Comments, CDATA sections, processing instructions and a DOCTYPE are allowed and kept.
Worked example
The example is 162 characters on one line with 7 elements, 2 attributes and 3 levels of nesting. Pretty-printed with 2 spaces it is 11 lines. If you change the first </title> to </titel>, the tool reports line 1, column 77: the closing tag </titel> does not match the open <title>.
FAQs
Does it check against a schema (XSD)? No. It checks well-formedness, the rules every XML file must follow. A schema check needs the schema file and is a different job.
Does pretty-printing change my data? Spacing between tags is only for reading. Text inside an element is kept, with line breaks in it folded to single spaces. Do not pretty-print XML where exact spaces inside text matter.
Why does fail? It is an HTML entity, not an XML one. Use   for a non-breaking space.
Is my XML uploaded? No, everything stays in your browser.
Where the numbers come from
- Well-formedness rules from the W3C Extensible Markup Language (XML) 1.0 recommendation, checked by fibub's own reader and the browser's DOMParser.
Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.
Last updated 2026-12-05.