SVG Optimizer
Optimization runs entirely inside your browser. Batch files, before/after preview.
0 B uploaded — this page has not sent your files anywhere?
Other tools send what you type to a server and process it there. Even when they promise to erase it afterwards, your content sits on someone else’s machine in the meantime. Here there is no sending step at all. The more sensitive the content — passwords, contract wording, private notes — the more that difference matters. See how to verify it →
Shrink SVGs exported from design tools without changing how they look
SVG files saved from Illustrator, Figma, Sketch or Inkscape carry far more than the drawing itself. This tool strips that extra material with the default rules of SVGO, a widely used open-source optimizer, and shows the size before and after next to a side-by-side preview. You can process several files at once, and your logos are never uploaded.
A closer look
An SVG is a text file, written in XML, that describes a picture as coordinates of points and curves. Editors add plenty that the browser does not need to draw it: comments naming the program, editor-only attributes such as layer names, metadata blocks, unused definitions and IDs, and coordinates with long decimal tails. Removing all of that expresses the same picture in fewer bytes. Files straight out of a design tool typically shrink by 30–70%; files that were already cleaned up may barely change.
The optimizer runs SVGO’s default rule set repeatedly until a pass makes no further difference. In concrete terms, a color like #ff0000 is shortened to red, coordinates are rounded to three decimal places, shapes such as rectangles are rewritten as shorter paths, and groups and paths are merged where possible. Elements hidden with display:none, unused IDs, the title element and editor-generated descriptions are removed, and IDs that are still used get short names like a and b. There are no switches for individual rules, and it is not a security filter: script elements and attributes such as onclick stay where they are.
How to use it
- Drop SVG files on the box or press Choose files. You can add several at once; anything that is not an SVG is skipped with a “Not an SVG file” notice.
- If you only have code, paste it under Or paste SVG code. That box is used only when the file list is empty.
- Press Optimize. Each file shows its old size, new size and percentage saved, and the first file appears under Original and Optimized side by side; use Preview on any other row to compare it. If you press right after the page opens, you may see “The optimizer engine is still loading”; wait a second and press again.
- Press Save on a row to download that file with .min.svg added to its name, or Save all when two or more files are done. Pasted code can be copied with Copy or saved as optimized.min.svg.
When it helps
Common snags
Tip Before you ship a result, compare the Original and Optimized previews closely around edges, text and gradients, and keep the original for any file where something differs.
FAQ
What gets optimized?
We apply the default rules of SVGO, the widely used open-source SVG optimizer, in multiple passes. It strips editor metadata, comments and hidden elements, rounds coordinates, merges paths and shortens colors. Files exported straight from a design tool typically shrink by 30–70%; files that are already clean may barely shrink. The default rules also remove some things besides the drawing itself — see “What if the optimized image looks different?” below.
Are my files uploaded anywhere?
No. Everything runs inside your browser and your files are never uploaded. Safe for unreleased logos and icons.
What if the optimized image looks different?
Besides the drawing itself, the default rules change the following. viewBox — if width and height match the viewBox, the viewBox is removed, so resizing the file with CSS can crop the drawing instead of scaling it. <title> — the title that screen readers announce is removed. IDs — IDs not used inside the file are removed and the rest are shortened, so a sprite file referenced from outside as file.svg#id, or CSS and scripts that target those IDs, can break. Check the before/after preview, but it may not show any of this — for files used that way, keep the original.
Multiple files?
Yes. Select several files to optimize them in one go, then save each one or hit [Save all].