SVG Compressor
Compress SVG Files to Load Faster
Reduce SVG file size by removing metadata, editor data, redundant markup, and excess numeric precision. Compare the original and compressed SVG before downloading; nothing is uploaded.
Editing defaults for new files
Preview
No preview. Add and select files to see results.
No files yet. Drop files above or click SELECT FILES.
When to compress an SVG
SVG is text, so it compresses twice over: once when the redundant markup is removed, and again when the server gzips or brotlis what is left. Editor exports carry the most waste. Illustrator, Figma, Sketch and Inkscape write generator metadata, editor namespaces, unused definitions, and over-precise coordinates that a renderer may not need. Removing that overhead matters most for inline SVG, symbol sprites, and icon sets bundled into JavaScript, where the markup is downloaded and parsed with the rest of the page.
How to compress SVG files online
- 1
Drop your SVGs, or click SELECT FILES, to add them to the queue. Up to 40 at a time.
- 2
Pick Safe, Balanced or Maximum, switch off any individual pass you do not want, and watch the saving per file update.
- 3
Click SAVE ALL to download the result, or a single ZIP when the queue holds more than one file.
Privacy: your files never leave your browser
Conversion runs locally in your browser using JavaScript and WebAssembly. There is no file upload or server-side conversion, so the files you add stay on your device.
Local processing helps protect confidential logos, internal documents, and unreleased client artwork. Pages and conversion code are cached as you use them, so tools you have already opened can continue working without a network connection.
Frequently asked questions
How much smaller will my SVG get?
It depends on where the file came from. Hand-written SVG that is already tidy may only lose a little. Editor exports often contain more removable metadata, namespaces, groups, and numeric precision. Files dominated by an embedded raster image may barely change because optimizing the surrounding markup does not recompress the image data.
Does compression change how the SVG looks?
Safe is conservative, while Balanced and Maximum apply progressively stronger changes. Coordinate rounding can shift fine details, and removing width and height can change how an SVG is sized when a page provides no CSS. The visual diff shows before and after so you can review the result before downloading.
Should I still gzip after compressing?
Yes, they do different jobs. This tool removes markup the renderer never needed; gzip and Brotli then compress whatever text is left for transfer. Markup optimization reduces the file the browser eventually parses, while gzip or Brotli reduces the bytes sent over the network.