SVG Compressor
Minify and optimise SVG files by removing comments, whitespace and redundant markup. Free, browser-based, nothing uploaded.
🖼️ Image Tools
Free
Browser-based
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
| Option | What it removes | Typical saving |
|---|---|---|
| Comments | <!-- … --> blocks | 1–10% |
| Collapse whitespace | Line breaks, indentation, extra spaces | 10–40% |
| <metadata> | Embedded file metadata tags | 2–15% |
| <?xml> declaration | XML processing instruction at file start | <1% |
| <title> / <desc> | Accessibility/description elements (keep if needed for a11y) | 1–5% |
| Editor namespaces | Inkscape, Illustrator, Sketch namespace attributes | 5–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.