All / Developer

XML Formatter

Pretty-print XML with line breaks and indentation.

The formatter is structural. It does not fetch a DTD.

  1. 1Paste XML.
  2. 2Press Format.
  3. 3Copy the result.

About this tool

Paste markup you already have and press Format for a readable tree. Invalid markup shows one clean error line and leaves your text alone.

  • The page doesn't fetch a DTD
  • Very large documents can stall the tab
  • Attributes stay on the same tag

Questions

Invalid XML?
Format reports the parser error and leaves the text as you pasted it.
Attributes?
They stay on the same tag.
Huge files?
Very large documents can stall the tab.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools