XML Formatter

Validate, pretty-print and minify XML.

WebRuns in your browser

About this tool

Pretty-print XML with consistent indentation, or minify it by removing whitespace between tags. The input is checked for well-formedness first, so broken markup is reported instead of silently reformatted.