Skip to content
Toolpit

Optimize an SVG

Strip bloat and minify SVG files.

Processed on your device — never uploaded

Options

Fewer decimals means smaller paths. Drop too far and curves start to visibly shift.

About this tool

Strip out editor cruft, redundant metadata, and unnecessary precision to make your SVG dramatically smaller without changing how it looks. Paste or drop your SVG in and copy the optimized version straight back out — nothing is uploaded.

Your files never leave your device. Toolpit has no upload step and no server that can see your document — the work happens in this tab, on your machine, and stops the moment you close it.

How to optimize an SVG

  1. Paste your SVG markup, or drop in an .svg file.

  2. Choose how aggressively to clean it, and compare before and after.

  3. Copy the optimised markup or download the smaller file.

Questions

Is my file uploaded?

No. There is no upload step and no server that could receive the file — the tool runs as code in this browser tab, works on the copy your browser opened, and forgets it when you close the tab. You can check this yourself: open your browser’s network panel and run the tool. You will see the page, its scripts and the ads that pay for the site — and no request carrying your file, because there is no endpoint to carry it to.

What is actually being removed?

Editor metadata, comments, empty groups, unused definitions, default attribute values, and excess decimal places on coordinates. None of it affects how the image draws — an SVG exported from a design tool is often more than half bloat.

Could optimising break my SVG?

It can, in two specific cases: if your CSS or JavaScript targets ids and classes inside the SVG, or if the file relies on markup a cleaner considers redundant. Compare the preview, and if the SVG is scripted or styled from outside, keep ids intact.

Every one of these runs in your browser too — no upload, no signup, no watermark.