Skip to content
Join

SVG Minifier

Minify and clean SVG files in your browser. Remove editor bloat, optimize numbers and colors, clean unused attributes, and keep your SVGs scalable.

on-device free · no account

SVG Minifier & Cleaner

Drop in a batch of SVGs exported from Figma, Sketch, or Illustrator. It strips editor bloat, guarantees a scalable viewBox, and can safely swap flat colors to currentColor — all in your browser, nothing uploaded.

Drop SVG files here, or click to choose

Any number of files. Nothing leaves your browser.

FileBeforeAfterSaved

Always keeps <title>/<desc>, class, style, and every aria-*/role attribute untouched — those can carry accessibility or CSS meaning this tool can't verify. Unused <defs> entries (gradients, clipPaths, masks, filters, symbols, patterns with zero references anywhere in the file) are always removed, since an unreferenced definition can't affect rendering. What it doesn't do: rewrite path commands (relative/absolute conversion, command merging, shape-to-path conversion) or validate the cleaned output against the original by rendering both — both need a real path parser and a rendering harness to do safely, so treat this as cleanup, not a full path-data optimizer. Always spot-check a batch of your real icons after cleaning.

processed in your browser · never uploaded

01

Drop or choose your SVG files

Drop one or multiple SVG files into the tool, or choose them from your device. Files are processed locally in your browser.

02

Choose your cleanup options

Enable the SVG cleanup options you need, such as making the SVG scalable, shrinking numbers and colors, swapping flat colors to currentColor, or removing unused IDs and data-* attributes.

03

Clean your SVG

Click Clean to process the selected SVG files.

04

Review the results

Compare the original and cleaned file sizes to see how much space was saved.

05

Download your files

Download individual SVG files or download the complete batch as a ZIP.

Formats & limits

What goes in, what comes out.

Format field guide
Input Output Typical saving Best for
SVG files Cleaned SVG Depends on the SVG Exported and metadata-heavy SVGs
Multiple SVG files ZIP download Per-file optimization Icon and asset batches
SVG with width/height but no viewBox SVG with generated viewBox Depends on cleanup options Making fixed-size SVGs scalable
SVG with unused IDs/data attributes Cleaner SVG Depends on references Exported design assets
SVG with unused SVG without unreferenced definitions Depends on the file SVGs containing unused gradients, masks, filters or symbols
Why this one

Built against the ways these tools disappoint.

We ran the same files through the popular alternatives first. These are the gaps we found, and what this tool does instead.

01

SVG files exported from design tools can contain unnecessary metadata, attributes, extra decimal precision, unused definitions, and other data that increases file size.

It cleans and minifies SVG files so they are smaller, cleaner, and easier to use on websites without requiring the files to be uploaded to a server.

test: The tool processes SVG files directly in the browser, helping users reduce file size while keeping important SVG structure and functionality intact.
The detail

How this actually works.

SVG Minifier & Cleaner

Clean and minify SVG files without uploading them to a server. Drop one SVG or a batch of SVG files to remove unnecessary editor metadata, clean unused attributes, optimize numbers and colors, remove unused definitions, and keep scalable SVG output.

Everything runs directly in your browser, so your SVG files stay on your device.

FAQ

The questions people actually type in.

What does an SVG minifier do?

An SVG minifier removes unnecessary data from an SVG file to reduce its size while keeping the SVG usable. This can include extra whitespace, editor metadata, unused attributes, unnecessary numeric precision, shortenable colors, and unreferenced definitions.

Does this SVG minifier upload my files?

No. SVG files are processed directly in your browser and are not uploaded to a server.

Can I minify multiple SVG files at once?

Yes. You can select or drop multiple SVG files and process them as a batch. The cleaned files can also be downloaded together as a ZIP.

Will minifying an SVG change its appearance?

The cleanup operations are designed to preserve the SVG's structure and important rendering attributes. However, SVGs can contain complex CSS, masks, filters, animations, and external references, so you should visually check important assets after cleaning.

What happens if my SVG has width and height but no viewBox?

When the scalable option is enabled, the tool creates a viewBox from the existing width and height before removing fixed width and height values. This ensures the SVG has a scalable coordinate system before those dimensions are removed.

Does this SVG minifier optimize SVG path commands?

No. The tool currently focuses on cleanup rather than full path-data optimization. It does not rewrite relative and absolute commands, merge path commands, or perform shape-to-path conversion.

Next

Tools people use with this one.

All 34 tools
escaped -> json

JSON Stringify and Unstringify

Escape JSON into a string, or peel every layer of escaping off a log payload. Handles double and triple escaping.

on-device Open
epoch -> date

Unix Timestamp Converter

Convert epoch timestamps to dates and back, with seconds, milliseconds, micro and nanoseconds detected for you.

on-device Open
json -> json.min

JSON minifier

Minify JSON, beautify it back, and see the real compressed size. Flags duplicate keys your parser silently drops.

on-device Open