DS
DevScratchpad

XML Formatter & Minifier

Input XML
Loading editor…

XML Formatter & Minifier Online

How to use XML Formatter

  • Paste or type raw XML into the left Input panel.
  • Select your preferred indentation (2 spaces or 4 spaces) from the dropdown.
  • Click 'Format' to pretty-print the XML in the Output panel, or click 'Minify' to compress it.
  • Click 'Copy' on the output panel to copy the result to your clipboard.

Edge Cases & Limitations

  • Invalid XML might not format correctly depending on the severity of the syntax errors.

Keyboard Shortcuts

  • Ctrl/Cmd + K — Open Command Palette to switch tools instantly.

100% Client-Side Privacy

All inputs are processed entirely inside your browser's memory using JavaScript. No data is ever transmitted to any server. Your tokens, JSON payloads, cURL commands, and timestamps never leave your machine.