XML formatter

Indents XML or packs it into one line, after checking that it is well-formed. Comments, CDATA, the declaration and attribute order stay exactly as written.

In
XML
Out
XML
Options
Input · XML
Output · XML

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

Does formatting change the data?

Only whitespace between tags changes. Text inside an element, comments, CDATA and anything under xml:space="preserve" stay as they are.

What if the XML is broken?

Nothing is formatted; the status shows the error with its line and column.

↑ ↓ move · Enter open · Esc close