Skip to content
Handy ToolsImage Converter & Compressor

Compress SVG

Pick SVG images to compress them.

PNG / JPEG / WebP / GIF / SVG, or a ZIP (folder structure is kept). Images never leave your device.

Limits on this device: 100 MP per image, up to 200 MB per file

Results will appear here once you choose images.

Uses SVGO to strip metadata, comments and editor-specific attributes, and rounds numeric precision to shrink SVG files.

How to use

  1. Choose images (PNG / JPEG / WebP / GIF / SVG), or a folder or ZIP containing images.
  2. Pick the output format and set quality, target size or resize. Changing a setting reprocesses automatically.
  3. Use “Save” on each result, or “Save all as ZIP” for everything at once.

FAQ

Can the appearance change?
“Safe” only removes metadata and comments, so nothing changes. “Aggressive” rounds numeric precision and can occasionally alter fine details.
Can I set a target size?
SVG is text, so there is no continuous quality setting. Choose one of three optimization levels instead.
Is the SVG preview safe?
Previews are shown through an <img> element, so scripts inside the SVG never run.

Compressing SVG: what to know

How SVG compression works

SVG describes shapes as XML text, so there is no notion of image quality: the less unnecessary markup, the smaller the file. SVGs exported from Illustrator, Inkscape and similar tools contain editor-specific attributes, metadata, comments, hidden elements and needlessly precise decimals. This tool removes these with SVGO and rewrites path data in a shorter form. Files often shrink to less than half their size without any visible change.

The three optimization levels

“Safe” only removes metadata, comments and editor-specific attributes, leaving shapes and ids untouched. “Standard” (the default) runs SVGO's standard set of optimizations repeatedly, rewriting paths and removing or shortening unused ids. “Aggressive” additionally rounds numbers to two decimal places. If CSS or JavaScript targets elements by id, or the file is a sprite referenced from HTML with <use>, changed ids will break its appearance or behavior, so choose “Safe”. The viewBox is kept at every level.

When the file does not get smaller

An SVG that has already been optimized is output as the original data, and the tool tells you it was not smaller. If the SVG embeds a photo or other bitmap (a long Base64 string), SVGO cannot shrink that part. SVGs whose paths are inherently huge, such as logos with text converted to outlines or detailed traced images, also gain less. Because SVG is text, serving it with gzip or Brotli compression from the server cuts the transfer size to a fraction again. There is no target size or resize for SVG: it scales up and down without any loss, which is the point of the format.

For a step-by-step approach to lighter web page images, see the guide: Making Landing Page Images Lighter