XML Formatter Utility

Pretty-print or minify XML, keeping comments, CDATA and text values intact.

Why use this tool?

Pretty-print or minify XML using a real XML parser, keeping comments, CDATA, the XML declaration and text values intact.

How to use it

  1. Paste your XML.
  2. Click Format / Indent or Minify.
  3. Copy the result; parse errors are shown if the XML is malformed.