Bytelify

XML Minifier

Strip comments and unnecessary whitespace from XML, live as you type.

100% private, runs in your browser
Minified — 11% smaller
<note><to>Alice</to><from>Bob</from><body>Don't forget the meeting.</body></note>

Strips comments and inter-tag whitespace live as you type. Everything runs in your browser; nothing is sent anywhere.

What is XML Minifier?

This tool removes comments and the whitespace between tags in an XML document, shrinking its size without changing what it means — useful before shipping a config file or feed where every byte counts. A smaller XML payload matters for an RSS/Atom feed served to many clients, or a config file embedded somewhere with a size limit. Minification runs entirely in your browser, so the source document never has to be uploaded anywhere.

FAQ

No — only inter-tag whitespace and comments are removed; text content inside elements is preserved exactly.

This tool only minifies. If you need to pretty-print XML back into an indented format, that's a separate tool.