Every Drawer
All tools

XML Formatter

Indent XML neatly with 2 or 4 spaces or tabs, or put it all on one line.

How it works

Indent XML neatly with 2 or 4 spaces or tabs, or put it all on one line.

  1. Paste your XML in the box.
  2. Pick an Indent.
  3. Press Copy or Save.

Good to know

Does it change my text inside tags?

No. Only the spacing between tags changes. Comments and CDATA blocks are kept.

More like this