# Shrink SVG

> Shrink SVG cleans up SVG files exported from design apps. It runs in your browser, so your files are never uploaded. Works on phone and computer.

Page: https://ishowpdf.com/tools/shrink-svg

## What Shrink SVG does

Shrink SVG cleans up SVG files exported from design apps. It removes comments, the XML header, metadata blocks, Inkscape and Sodipodi editor data, Sketch attributes and extra spaces, and it rounds long decimal numbers. The drawing is meant to look the same while the file gets lighter.

You choose how many decimal places to keep: 1, 2 or 3. Fewer places save more but can shift fine details slightly, so check small icons after cleaning. For safety, scripts, on-click style event handlers and javascript links are also taken out, since they do not belong in a picture. A file that is damaged or not really an SVG is refused with a message.

## How to use Shrink SVG

1. **Add SVG files**: Choose one or more .svg files, or a ZIP of icons.
2. **Pick decimal places**: Keep 2 for most icons and logos. Use 3 for very small or detailed drawings.
3. **Clean**: Each file is tidied and the percentage saved is shown.
4. **Download**: Save the cleaned SVGs, which end in _small.svg.

## Questions

**Will cleaning change how my SVG looks?**

Removing comments and editor data does not change the drawing. Rounding numbers can move points very slightly, so use 3 decimal places if precise shapes matter.

**Why are scripts removed from my SVG?**

Scripts and event handlers can run code when the file is opened in a browser. Taking them out makes the SVG safer to use as an image.

**Does it work on SVGs from Illustrator or Figma?**

It works on any valid SVG file. The cleaning is general, with extra rules for Inkscape and Sketch data.

More free tools: https://ishowpdf.com/tools
