📐 XML Formatter & Beautifier
Pretty-print, minify and validate XML. Configurable indentation, instant error reporting.
About this tool
Clean up XML documents in one click. Beautify adds consistent indentation and line breaks so nested elements are easy to read; minify strips insignificant whitespace between tags for a compact single-stream payload. Malformed XML is caught and the parser error is shown.
Validation and parsing use the browser's built-in DOMParser — no external library and no server round-trip. Your XML stays on your machine.
Action
Input XML
Output