Paste XML to pretty-print it with clean indentation, minify it for production, or validate it for errors.
Pretty print re-indents your XML with two spaces per level so nested structures are easy to scan. Minify strips comments and whitespace between tags to shrink payloads for APIs and config files.
Validate checks well-formedness with the browser's own XML parser and reports the first error in plain language, including unclosed tags and bad entities.
CDATA sections, comments (in pretty mode), attributes, and namespaces all survive formatting. Only insignificant whitespace between tags is touched.
If your XML carries an XML declaration, it is kept at the top of the pretty-printed output.