Prettify raw or minified XML with consistent indentation and line breaks, or minify well-formatted XML to remove all unnecessary whitespace. Choose from 2-space, 4-space, or tab indentation. Invalid XML is detected and flagged with the error location before any formatting is applied, so you always get valid output.