XML Formatter / Beautifier

Validate and pretty-print XML with two-space indentation. Runs locally in your browser; nothing is uploaded.

About this tool

Paste minified or messy XML and get an indented, readable version. The input is first validated with the browser XML parser and an error is shown if it is malformed. Short text-only elements stay on one line. Nothing leaves your device.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter