XML Formatter

Pretty-print XML with clean indentation or minify it, and check that it is well-formed. Comments, CDATA and processing instructions are kept.

Free · No upload · 100% on your device

How to use XML Formatter

  1. Type or paste your code or data, or open a file.
  2. Choose the settings in the side panel. The result updates as you type.
  3. Copy the result or download it as a file.

Private by design. Everything you type, open or record is processed in this browser tab and is never uploaded to KittySuite.

About XML Formatter

The XML is parsed by the browser’s XML parser, so a missing closing tag or an unescaped & is reported. External entities and DTDs are never fetched. Elements that contain only text stay on one line.

Everything runs in this browser tab: your text is never uploaded or stored, and the result updates as you type. It keeps working offline once the page has loaded.

XML Formatter: frequently asked questions

How do I format XML?

Paste the XML or open an .xml, .svg or feed file, then choose Pretty-print or Minify.

Does it check my XML for errors?

Yes. The browser’s XML parser reports problems such as a missing closing tag or an unescaped &.

Are comments and CDATA kept?

Yes, along with processing instructions.

Are external entities or DTDs loaded?

No. They are never fetched.