XML Formatter
Pretty-print and minify XML documents with consistent indentation.
How it works
Paste one-line or messy XML to pretty-print with consistent indentation, or minify to remove whitespace. The formatter checks basic XML structure and reports parse issues.
Example: a single-line <note>…</note> becomes indented, readable XML.
Input
Output