SVG Optimizer

SVG Optimizer

Free online SVG optimizer — remove editor metadata, comments, and reduce path precision from Figma and Illustrator exports. 100% in-browser, no signup.

Updated May 2026

or paste code below

Optimization Level

Cleaning Options

Prettify Code

Readable indented output

Path Precision

2 dp

Lower precision results in smaller files but may distort complex shapes.

PRO TIP

Always use 'Balanced' for logos. 'Aggressive' can sometimes merge layers that need separate animation IDs.

Your SVG files are never uploaded. All optimization runs entirely in your browser.

30–70% Smaller

Removes editor metadata, comments, and redundant elements without changing the visual output.

Configurable Presets

Choose Safe, Balanced, or Aggressive optimization — or tune individual options manually.

100% Private

No upload to any server. Your SVG files never leave your device.

How to optimize an SVG file online

From a bloated design-tool export to a production-ready SVG

1. Paste or upload your SVG

Drag in an `.svg` file or paste the code directly into the text area.

2. Pick an optimization level

Safe, Balanced (recommended), or Aggressive — or fine-tune each option by hand.

3. Compare and export

Check the preview to confirm nothing changed visually, then copy or download the optimized `.svg`.

What this SVG optimizer does

The same core cleanup as SVGO, running entirely in your browser

Strips design-tool overhead

Figma and Illustrator namespaces, editor metadata, comments, and unused layer IDs — all gone.

Rounds down coordinate precision

d="M15.123456 32.678901" becomes d="M15.12 32.68" without changing how the shape renders.

Before/after preview

See the size reduction and a side-by-side comparison before you export anything.

Never touches the `viewBox`

It's essential for responsive scaling, so it's preserved under every preset.

Safe vs. Balanced vs. Aggressive

Pick a preset based on how much the file can shrink before it matters

Preset
What it does
Safe
Strips comments and metadata, keeps every ID — average reduction 20–40%
Balanced (recommended)
+ removes unused IDs, rounds to 2 decimal places — 40–60%
Aggressive
Rounds to 1 decimal place — 50–70%, avoid on detailed illustrations

When you'll reach for an SVG minifier

The most common scenarios people bring an SVG here for

Web performance and Core Web Vitals

Every KB trimmed off icons and logos shaves page weight — and often helps LCP directly.

Cleaning up Figma or Illustrator exports

Strip the proprietary metadata layers those tools add automatically on export.

Prepping React or Vue components

An optimized SVG with no stray IDs pastes cleanly into a JSX/TSX component.

Maintaining an icon library

Run a whole icon set through it without setting up a local SVGO config or build step.

Common SVG optimization mistakes

Using Aggressive on complex illustrations

Rounding to 1 decimal place can introduce visible subpixel shifts on tight curves.

Removing IDs your CSS or JS references

If an animation or selector depends on a specific ID, switch to the Safe preset to keep it intact.

Assuming optimization replaces Gzip/Brotli

They're complementary — minify the SVG's markup and still enable compression on the server.

Why use this SVG optimizer

It runs the same core optimizations as SVGO — the Node.js library behind most SVG optimizer tools online — directly in your browser, with nothing to install.

A typical icon exported from Figma is 2–5x larger than it needs to be. There's no server upload, no account, and no file-size limit — your SVG never leaves your device.

Frequently asked questions

It strips data the browser doesn't need to render the image — editor metadata, comments, redundant namespaces, excess decimal precision — without changing how it looks. The result is a smaller file that loads faster and parses quicker.

References

Related Tools