My All ToolsEnglish

All tools / Developer tools

XML formatter

Pretty-print XML with indentation; declaration, CDATA and comments are kept.

Open the tool

How to use

  1. Paste your XML.
  2. Press Format.
  3. Copy the indented result, or fix the reported error.

Why My All Tools?

Common questions

Attributes kept?

Yes, attributes stay on the same line as their tag.

Declaration line?

The <?xml?> declaration, comments and CDATA are preserved.

More free tools

Free to try with a daily guest limit. No account needed, and your data stays in your browser.