SVG optimizer
Shrink SVG files several times over while the picture stays the same: editor data dropped, numbers rounded, paths simplified. Before/after preview included.
How to optimize SVG
- Paste SVG code on the left, or open an .svg file (pick several to do them in one go).
- Adjust the number precision if needed — lower means smaller files, but very fine details may shift.
- Compare the before and after pictures, then copy the code or download the .svg (or a ZIP for several files).
Frequently asked questions
Normally not: only things that draw nothing (comments, editor data, unused attributes) are removed and paths are written more compactly. You can see before and after side by side to be sure.
3 is enough for most icons and logos. Very small drawings or detailed maps may need 4–5; 1–2 makes files smaller still, but fine strokes may move.
Almost always. viewBox lets the image scale correctly when you resize it with CSS. Turn it off only if the image is used at one fixed size.
Drawing apps store extra data of their own (layers, grids, notes) to reopen files. Turn off "Remove metadata & comments" if you still plan to edit the file there; for files going on the web, removing it is best.
SVG files can contain scripts. The previews here are shown as ordinary images, so any script inside never runs.
It is completely free and needs no sign-up.
Related tools
Compress ImageMake images smaller, keep them sharpImage to Base64Embed images in HTML or CSS with Base64Favicon GeneratorMake website icons from your logoRemove hidden photo infoRemove hidden date, location info before postingConvert Image (JPG, PNG, WEBP)Convert between JPG, PNG and WEBPHEIC to JPGTurn iPhone .HEIC photos into JPG or PNGPhoto info viewer (EXIF)See which camera took a photo, when and wherePhoto collage makerCombine several photos into one grid imageImage color pickerGet a palette and HEX codes from a picture