Design Tools · SVGSlim

SVG Optimizer & Viewer

Strip editor junk, round numbers and shrink SVG files — then copy them as optimised SVG, a data URI, CSS or a React component.

SVG input

or drop a file, or paste code below ·

Optimisations

dp

Before & after

Original –
No SVG yet
Optimised –
No SVG yet
Open or paste an SVG to start.

SVG Optimisation Guide

What each option does, and when to leave it off.

Editor Data

inkscape: · sodipodi: · data-name

Design apps save layer names, guides and settings inside the file. Browsers ignore all of it, so it's pure weight.

Decimal Places

12.3456789 → 12.35

2 decimals is invisible for icons and illustrations. Use 3+ for tiny viewBoxes (under 24 units) or detailed maps.

Unused IDs

kept if referenced

IDs used by gradients, clip paths, masks or <use> are kept. Turn this off if your CSS or JavaScript targets IDs.

Title & Description

accessibility

Kept by default: screen readers announce <title>. Remove only for purely decorative graphics.

Responsive SVGs

viewBox, no width

With a viewBox and no fixed width/height, the SVG scales to its container. Set the size in CSS instead.

Data URIs

url("data:image/svg+xml,…")

URL-encoded SVG is smaller than Base64 and works in CSS backgrounds without an extra file request.

React / JSX

class → className

Attributes are converted to camelCase, styles become objects, and props spread onto the <svg> so you can size and colour it.

Safe Previews

scripts never run

Previews are shown as images, so scripts inside an SVG can't run. The scripts option also strips them from the output.

Why SVGSlim?

SVGSlim is a fast, lightweight SVG cleaner for web designers and developers — exports from design tools are often half metadata; this trims them to what the browser actually needs.

All processing happens entirely in your browser. Your files never leave your device.

100% Private — files are never uploaded
12 optimisations — each one can be switched off
Before & after — check nothing changed visually
5 outputs — SVG, data URI, Base64, CSS, React
Illustrator icon export−40–70%
Inkscape drawing−30–60%
Figma export−10–30%
Already minified−0–5%