Gezidao

XML Formatter

Beautify, validate and minify XML with clear error messages.

Report an issue

Advertisement

AHow to use

  1. 01 Paste your XML into the input box.
  2. 02 Click Format to pretty-print or Minify to strip whitespace.
  3. 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.

Related tools