🗜️

SVG Compressor

Minify and optimise SVG files by removing comments, whitespace and redundant markup. Free, browser-based, nothing uploaded.

🖼️ Image Tools Free Browser-based
Tool
Optimisation options

Why Compress SVGs?

SVG files exported from design tools like Illustrator, Figma or Inkscape are bloated with editor-specific metadata, comments, XML declarations and unnecessary whitespace. None of this is needed by browsers — stripping it can reduce SVG file sizes by 20–60% without any visual change. Smaller SVGs load faster and improve Core Web Vitals scores.

What Each Option Removes

OptionWhat it removesTypical saving
Comments<!-- … --> blocks1–10%
Collapse whitespaceLine breaks, indentation, extra spaces10–40%
<metadata>Embedded file metadata tags2–15%
<?xml> declarationXML processing instruction at file start<1%
<title> / <desc>Accessibility/description elements (keep if needed for a11y)1–5%
Editor namespacesInkscape, Illustrator, Sketch namespace attributes5–20%

Tip: Preserve Accessibility

If your SVG is used as a meaningful image (not purely decorative), keep <title> / <desc> enabled so screen readers can still describe the graphic. For decorative icons, removing them is safe.

Frequently Asked Questions