XML Minifier

Remove whitespace between XML tags and comments.

XML Minifier

.svg · .xml

Paste text or open a file to see the result.

What it does

Removes comments and the whitespace between XML tags. A smaller file is faster to send and store, for example an SVG icon or an API payload. The data and structure stay the same.

About the .svg format

.SVG file extension
File Type
Scalable Vector Graphics File
Developer
Adobe Systems
MIME
image/svg-xml

SVG file extension is a vector graphics file that can be opened with Illustrator software or other vector-graphics editors.

Also works with

XML Minifier questions

How do I use the XML Minifier?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .svg change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .svg page lists programs and converters for it.