Minify and compress SVG files online. Strip comments and whitespace to reduce SVG code size, or convert to WebP/PNG for raster output — all with transparency preserved. 100% browser-based, nothing uploaded.
or choose a source below
SVG files are deceptively large. Design programs export SVGs packed with metadata, comments, empty groups and redundant attributes that add kilobytes without adding any visual information. Minifying removes all of that and can cut SVG file size by 30–60% with zero visual change.
This tool offers two approaches. SVG Minified mode strips comments, collapses whitespace and removes unnecessary spacing — the output is still a true vector SVG that scales to any size, stays fully editable and keeps all transparency. This is the best choice for SVGs used on the web as icons or illustrations.
For situations where you need a raster image — a thumbnail, a social media post, a context where SVG is not supported — the WebP and PNG output modes rasterize your SVG at high quality while keeping any transparent areas intact.
As always, everything runs directly in your browser. Your SVG files never leave your device and there is no sign-up or file size limit.
SVG is a vector format. Instead of storing pixels, it stores instructions for drawing shapes, which is why an SVG logo stays sharp at any size. The instructions are written as text, and that text often contains much more than the picture needs.
The compressor removes comments and metadata, shortens numbers to a sensible number of decimals, merges paths where it is safe, drops unused definitions and simplifies the way styles are written. The picture should look identical, because only information that has no visible effect is changed. Files from design tools often shrink by 30 to 70 percent.
Open the result next to the original. If your SVG uses text, make sure the font is converted to outlines or is available where the file will be used. If it contains animations or scripts, test them, since aggressive cleaning of ids can break references. Keep the original as your editable master and use the compressed file for publishing.
Smaller SVGs load faster, which helps page speed, and inline SVG icons add less to the size of your HTML. Servers can also compress SVG further with gzip or Brotli because it is text. If you need a raster copy for an email or a platform that does not accept SVG, convert it with the SVG to WebP tool, or trim the artwork first with crop SVG.