Broken XML
1
Repaired XML
Repaired XML will appear here…

What does an XML repair tool fix?

XML is strict: one unescaped & or a single missing closing tag makes the whole document fail to parse. An XML repair (or XML fixer) tool detects the most common mistakes and rewrites your input into well-formed XML, then formats it. This repairer fixes:

  • Unescaped ampersands — turns a bare & into & (leaving valid entities like < untouched)
  • Unquoted attribute values — turns <a href=x.html> into <a href="x.html">
  • Unclosed tags — closes elements left open at the end of the document, in the correct nesting order
  • Smart quotes — replaces “curly” quotes pasted from documents with straight quotes in markup

Once repaired, use the XML Formatter to re-indent it, the XML Validator to double-check it, or the XML Converter to turn it into JSON, YAML, or CSV. Note: ambiguous problems — such as a closing tag that doesn't match any open tag, or a tag left open in the middle of the document — are reported rather than guessed, so your data is never silently mangled.

Frequently Asked Questions

How do I fix broken XML?

Paste it into the panel on the left — the repairer automatically escapes unescaped ampersands, quotes unquoted attributes, fixes smart quotes, and closes tags left open at the end, then formats the result. Copy the repaired XML from the right panel.

What's the difference between repair and validate?

The XML Validator tells you where the error is. The repair tool goes further and fixes the common errors for you automatically, then formats the corrected XML.

Is my data safe?

Yes. All repair runs entirely in your browser. Nothing is uploaded to any server.

Why can't some XML be repaired automatically?

Some errors are ambiguous — a closing tag that matches no open tag, or an element left open in the middle of the document, can be fixed in more than one way. When that happens the tool repairs everything it safely can and shows the remaining parser error so you can finish it by hand.