SVG Optimizer
Clean and compress SVG vector source files locally using SVGO before shipping to production or converting to WebP. Choose Conservative mode to preserve IDs and accessibility metadata.
Conservative Mode
Removes XML comments and editor namespaces (Figma, Illustrator, Inkscape) while retaining element IDs, <title>, <desc>, and viewBox.
Balanced Mode
Applies SVGO default safe passes including unused <defs> cleanup and 3-decimal numeric precision while keeping viewBox intact.
Compact Mode
Runs multipass SVGO minification with tighter 2-decimal precision for minimal vector payload size.
SVG Optimizer FAQ
Does SVG optimization keep my SVG identical to the original source?
Not byte-for-byte. Removing comments, collapsing groups, or rounding decimal precision alters the XML structure. Use Conservative mode when you need to preserve IDs, <title>/<desc>, and high coordinate precision.
Should I optimize an SVG before converting it to WebP?
Optimizing strips editor bloat (such as Illustrator or Figma metadata) so your SVG loads faster if kept as a vector, and ensures clean geometry before rasterizing to WebP or PNG.