Skip to main content
Vecaria

SVG Optimizer & Minifier

Local

Optimize and minify SVG online: SVGO deep mode or the quick safe subset, live character and gzip savings, then copy or download. Free, no upload, no sign-in.

or drag an .svg file into the input below

385 Original chars · 175 Optimized · 55% You save

What is it? SVG Optimizer & Minifier shrinks SVG files with two modes: a deep mode powered by SVGO v4 (MIT; the full preset-default plugin set — path rewriting, ID cleanup, transform folding — with safe sanitize on by default to strip <script>) and a quick mode that applies a regex-based appearance-level safe subset. Both preserve <title> and the viewBox and report the character and gzip size change.

TL;DR: Minify and optimize SVG with the SVGO deep mode or the quick regex subset, see character and gzip savings before you copy or download — free, local, no upload.

How to use

  1. Open a local .svg file, drop it onto the input, or paste the SVG source.
  2. Pick a mode: Quick (regex subset, live results) or Deep (SVGO full plugin set; toggle "Safe sanitize" to strip <script>, on by default).
  3. Review the character/gzip comparison and the rendered before/after, then copy or download the optimized SVG.

FAQ

Is it safe for my artwork?

Quick mode never reshapes path geometry, and <title> is preserved in both modes. Deep mode rewrites path data and converts shapes to paths (numerically equivalent, but source changes), and its safe sanitize removes <script> elements — script-driven interactivity will stop working (you can turn it off). Whitespace collapses and number/color values shorten (numerically equal), so give the result a quick check before shipping.

What does safe sanitize cover?

It removes <script> elements. It does not sanitize foreignObject, inline event-handler attributes or javascript: URIs, and fonts are not embedded — review untrusted SVGs separately.

Is it local?

Yes — both modes run in your browser; the SVGO engine loads on demand as a lazy chunk.

Is it free?

Yes — optimization uses the free daily allowance and needs no sign-in. The SVG is processed in your browser and is never uploaded.

Quick or deep mode — which should I use?

Quick is a regex-based appearance-level subset: instant, and it never reshapes path geometry or the viewBox, so it is safe to run on anything. Deep runs the full SVGO v4 plugin set (path rewriting, ID cleanup, transform folding, shapes to paths) and saves more, but rewrites the source — review the before/after render before shipping.

Does it simplify SVG paths and reduce the number of nodes?

No. Optimization strips redundant markup — comments, editor metadata, empty groups, whitespace, over-precise numbers — but it never reduces the node or point count in a path. To actually simplify geometry (fewer nodes), use a vector editor such as Inkscape's 'Simplify path' or Illustrator's simplify command, then run this tool to minify the result.

How much size will I save?

It depends on how much editor cruft the file carries: freshly exported SVGs from Illustrator/Inkscape/Figma typically shrink the most, while already-optimized files report a 0% savings note. The gzip column tells you what actually ships over the wire for web use — check it, since gzip erases most of the whitespace savings.

Can I optimize several SVGs at once?

No — it works one file at a time (open, drop, or paste). There is no batch mode and no upload step; for bulk raster images use the batch image compressor instead.

Examples

  • Open/drop or paste an SVG → pick a mode → copy/download

Supported formats

SVG

Limitations

  • Deep mode (SVGO) rewrites path data and converts shapes to paths — numerically equivalent but the source changes; review before shipping.
  • Safe sanitize is on by default in deep mode: <script> is removed, so script-driven SVGs stop working. foreignObject/inline handlers/javascript: URIs are not sanitized; fonts are not embedded.
  • Quick mode is an appearance-level regex subset: path geometry and the viewBox are never reshaped; whitespace between tags collapses and number/color values are shortened (numerically equal).
  • Invalid or non-SVG input is rejected with a clear message; fully optimized files show a 0% savings note.
  • Very large SVGs may take a moment in deep mode (the SVGO engine loads on first use).
  • One SVG at a time — there is no batch mode (paste or open each file); path node counts are never reduced, only markup is minified.
  • Runs locally in your browser; nothing is uploaded.

Privacy

Privacy first: this tool runs entirely in your browser — your input and files never leave your device, and everything is cleared when you close the page.