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.
The SVG Minifier handles svg minifierdirectly in your browser. Paste or type your input, and the tool processes it instantly — no upload, no signup, no waiting. It's built for the moments when you need a quick transformation and don't want to leave your workflow.
Because the tool runs client-side, it's fast and private. Your text never touches a server, which makes it safe for sensitive content. The interface is keyboard-friendly and works on any device with a modern browser.
Common uses: people reach for this tool when they need to use a minify svg online free, remove inkscape metadata from svg, svg optimizer without upload, or clean svg code for web.
Browser-based tools like this one have a few real advantages over installed software or manual methods:
More tools you might find useful