SVG optimizer

Processed in this browser

Text limit: 2000000 characters

File limit: 32 MB

This tool never uploads your input.

Clean an SVG in this tab by stripping comments and rounding numbers so the file often gets smaller. This is not the entire SVGO plugin catalog and not a raster compressor.

An icon SVG shipped with editor cruft and you want fewer bytes without a desktop SVGO install. That is this page: comments off, numbers rounded, size preview in the tab.

SVG to PNG rasterizes. Image compressor is for JPEG/WebP, not markup.

How to use it

  1. Drop or paste SVG. Fence samples if you publish them:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"/></svg>
  1. Optimize in this tab. Compare bytes and the preview.
  2. Keep the original if a path went wobbly.

Typical ceiling is about 32 MB.

Honest limits

  • Not every SVGO default.
  • Scripts inside SVG are a security smell; we are not your sanitizer of record (see markdown preview for a different sanitizing job).
  • Not a PNG/WebP compressor.

This is a local utility, not a design-system build step.

FAQ

Is this Jake Archibald’s SVGOMG / SVGO?

No. We do a conservative cleanup. Do not expect every SVGO plugin or the same byte count.

Will icons still look identical?

Rounding can shift hairline paths. Preview the size and the picture before you commit.

Can I convert SVG to PNG here?

Use SVG to PNG. Optimizer stays in vector markup.

Is the SVG uploaded?

No. Typical ceiling is about 32 MB.

Related tools