Skip to content

SVG optimiser

SVG optimiser

Strip what an SVG doesn't need, and get it in the form you want to paste.

DeveloperRuns on your device. Nothing is uploaded.

How it works

  1. Add an SVG

    Drop files here, or paste the code into the box.

  2. Choose options

    The defaults are safe for almost every file.

  3. Optimise

    Press the button. Each row shows what it saved.

  4. Compare

    Check the two previews match.

  5. Copy or download

    Take the markup, a data URI or a React component.

Questions

Yes. SVG can contain scripts, so we only display it as an image, where scripts can't run. We never insert it into the page.

Without it, an SVG can't scale properly. Many tools once removed it to save a few bytes, and we never do.

That's what actually crosses the network if your server compresses, and it's often a much smaller saving than the raw file shows.

It handles the common cases: className, camelCase attributes and style objects. Check any unusual markup.

No. Optimising happens in your browser, so nothing is sent to a server.

Related posts(1)

Search

Search tools and blog posts