XML Formatter
Beautify, validate and minify XML with clear error messages.
Advertisement
AHow to use
- 01 Paste your XML into the input box.
- 02 Click Format to pretty-print or Minify to strip whitespace.
- 03 If the XML is broken, the parser error is shown — fix it and retry.
QFAQ
Which XML features are supported? +
Elements, attributes, text nodes, comments and the XML declaration. Namespaces are preserved as plain attribute names.
Why is my XML invalid? +
The most common causes are unclosed tags, mismatched case, unescaped & characters and a missing root element. The parser error names the exact problem.