XML Formatter and Minifier Online
Indent XML or put it on one line. Only the whitespace between elements changes.
XML input
Paste XML here, open a file or drop it here…Formatted XML
The result appears here.Only whitespace between elements changes. Entities like &, CDATA sections, comments, the XML declaration, DOCTYPE, mixed content and xml:space="preserve" stay exactly as written.