Skip to content
Tools on Deck

SVG Optimizer

Make SVG files smaller with SVGO.

Processed locallyFreeNo sign-up

SVG Optimizer tool

About this tool

An SVG optimizer runs vector markup through SVGO v4 to remove unnecessary data and reduce file size. Paste SVG code or drop .svg files, enable multipass processing, and choose number precision. It can remove editor metadata, comments, and hidden elements that do not contribute to the visible graphic.

Optimization happens in your browser, so SVG source is never uploaded and nothing is kept after the tab closes. The viewBox is always preserved, which keeps responsive scaling available. Before and after previews let you compare appearance, while the file-size display shows the exact reduction before you use the cleaned markup.

How to use the SVG Optimizer

  1. 1Paste SVG markup or drop one or more SVG files.
  2. 2Enable multipass when you want SVGO to repeat optimization passes.
  3. 3Set the number precision used for eligible numeric values.
  4. 4Compare before and after previews for any visible difference.
  5. 5Check both file sizes and copy or download the optimized SVG.

Features

SVGO version 4

Optimize vector markup with the current specified SVGO processing engine.

Multipass cleanup option

Run repeated optimization passes when later passes can find additional reductions.

Number precision setting

Control rounding precision for eligible coordinates and other numeric SVG values.

Protected viewBox scaling

Always retain the viewBox attribute so responsive sizing continues to work.

Visual size comparison

Inspect before and after previews alongside their measured file sizes.

Frequently asked questions

Will SVG optimization remove the viewBox?

No. The optimizer always keeps viewBox so the graphic can continue scaling responsively.

What does the multipass option do?

It runs SVGO more than once, allowing a later pass to simplify output created by an earlier pass.

Can number precision alter the drawing?

Rounding coordinates can slightly change geometry at lower precision. Compare the before and after previews before using the result.

What SVG data can be removed?

SVGO can remove editor metadata, comments, and hidden elements, along with other unnecessary markup handled by its optimization.

Is pasted SVG code uploaded?

No. SVGO processing and preview generation stay on your device, and the source is cleared when the tab closes.