EN · Languages : English

Compress your SVG.

Your files never leave your device.Never stored · GPS removed · No cookies
Output format:
Accepted formats: SVG · 5 MB max

SVG · 5 MB max

Frequently asked questions

How much weight will my SVG lose?

Often 30 to 80% for an export from Figma, Illustrator or Inkscape. An icon that is already optimized may gain nothing: FileDiet tells you so and you keep your file.

Why is my Figma or Illustrator export so heavy?

These apps add metadata, comments, empty layers and coordinates with lots of decimals. None of it is visible on screen.

Can an SVG hide dangerous code?

Yes. An SVG is a text file that can contain a script, an automatic action (onload) or a javascript: link. Shown on a website, this code can run. FileDiet keeps only the known drawing elements and removes the rest, then checks the result a second time.

What exactly does FileDiet remove?

What draws nothing: metadata, comments, useless elements, extra decimals. And what can be dangerous: scripts, automatic actions, javascript: links, web page content, fonts and images loaded from another site.

Do my ids, classes and CSS animations still work?

Yes. Ids, classes, styles and the viewBox are kept: your SVG fits into your code as before.

Does the drawing change?

No. An SVG is a vector drawing, sharp at any size. We remove useless text, not pixels. Compare before and after on a checkerboard, white or black background.

Is my SVG sent anywhere?

No, everything happens in your browser and nothing is stored. You can check for yourself: How FileDiet works.

Why 5 MB maximum?

An SVG rarely weighs more than a few hundred KB. If it is heavier, it often contains an embedded photo: in that case, Compress an image will do better.

A website refuses my SVG: what can I do?

Many social networks and forms do not accept SVG. Turn it into an image with SVG → PNG: you choose the width and the background.

What about an animation?

For an animation made in After Effects or LottieFiles, the Lottie format is a better fit: Compress a Lottie.