Strip comments, metadata, and whitespace from SVG files.
🔒 100% client-side — minification is plain string processing in your browser. The preview renders via a data-URI <img>, never dangerouslySetInnerHTML, so scripts inside SVG cannot execute.
SVGs exported from Figma, Illustrator, or Inkscape are full of baggage: XML declarations, comments, editor namespaces, metadata blocks, and path coordinates with eight decimal places. This minifier strips that deadweight and typically saves 30–60% of the file size — ideal before inlining icons into HTML or shipping a sprite sheet. Everything runs locally in your browser; no file is uploaded.
The pipeline mirrors the safest parts of SVGO: XML declaration & DOCTYPE (browsers don't need them for inline or <img> SVG), comments, metadata blocks (<metadata>, <title>, <desc>), and editor leftovers — Inkscape/Sodipodi attributes and namespaces, Adobe export cruft, and enable-background. It can also collapse whitespace between tags and drop attributes that merely restate the spec default, like version="1.1".
Path data dominates most SVG files, and exports often carry coordinates like 12.34567891. Rounding to 2 decimals is invisible at normal sizes and can cut a path-heavy file dramatically. The rounding here only touches numbers inside attribute values and path data, leaves integers and scientific notation (1e-5) alone, and never rewrites markup structure. For very large or zoomed artwork, keep 3 decimals to avoid visible stepping on curves.
First, if you style SVG with CSS selectors that target title or rely on inkscape: attributes, leave those toggles off. Second, accessibility: removing <title> strips the accessible name of a decorative-inline icon — that is fine when the icon is decorative, but keep a title (or add aria-label on the parent) for meaningful graphics. Use the live preview to confirm the minified output still renders identically before downloading.
More tools you might find useful
Convert WebP images to PNG or JPG in your browser.
Convert SVG to PNG or WebP in-browser with custom scale and download.
Compute missing width or height to keep any aspect ratio.
Four corner sliders to CSS code, elliptical slash syntax included.