Format XML documents with clean indentation or compress XML down to single-line minified markup.
Paste XML markup into the input box.
Click Format to indent tags or Minify to strip extra whitespace.
Copy formatted XML to your clipboard.
Yes, DOMParser checks for unclosed tags or invalid XML syntax before formatting.