Skip to content
Developer

SVG COMPRESSOR

Paste SVG or drop files. Strip metadata, trim precision, see live savings, preview, export SVG + PNG.

Private by design No signup · Free

Paste markup above, drop a file below, or load the sample.

Drop SVG Files (single + bulk)
Drag & drop .svg here or click to browse
Bulk list supported — pick a file to compress
Optimizations

Metadata strips <metadata>, <title>, <desc>, editor namespaces. Comments removes <!-- -->. Whitespace collapses gaps.

Renders minified SVG via canvas Image + SVG blob, then downloads PNG.

Live Savings
0 B
Original
0 B
Minified
0 B
Gzip est.
0%
Saved
Render Preview (minified)

Preview updates live from the minified output.

Frequently Asked Questions

How does the SVG Compressor work?
Paste SVG code or drop a file. The tool strips comments, metadata and editor tags, rounds path precision, and collapses whitespace. You see original vs compressed bytes and percent saved instantly.
Will compression change how my SVG looks?
No visible change at default precision 3. Lower precision 1 to 2 shrinks more but can shift curves. Preview the render side by side and keep a backup of the original.
What is a good SVG size target?
Icons should be under 5 KB, illustrations under 50 KB. Gzip on your server cuts text SVG further. The tool shows raw and estimated gzip bytes.
Can I convert SVG to PNG?
Yes. Set export width and download a transparent PNG rendered via canvas. Useful for favicons, thumbnails and social images where SVG is unsupported.
Does it support bulk files?
Yes. Drop multiple SVGs to compress each in sequence entirely locally. Download individually or as shown sizes. Nothing uploads.
Is it free and private?
Yes, free unlimited with no sign-up. All parsing happens in your browser. Files never leave your device.

How to Use

01

Paste or Drop SVG

Paste code or drop one or more .svg files. Processing starts instantly locally.

02

Set Precision

Choose path precision 1 to 3 and toggle metadata, comments and whitespace removal.

03

Compare Savings

Check bytes saved and gzip estimate plus live render preview for fidelity.

04

Copy Minified Code

Copy minified code or download the .svg file with one click.

05

Export PNG if Needed

Set width and export transparent PNG for favicons or thumbnails.

How to Calculate

The optimizer parses <svg> markup, removes metadata, comments, editor namespaces, rounds path d coordinates to chosen precision, and collapses whitespace. Savings equal 1 minus compressed divided by original shown as percent.

About the SVG Compressor

The SVG Compressor shrinks vector files for faster sites without visual change. Strip metadata, comments and editor namespaces, tune path precision 1-3, collapse whitespace, and verify render fidelity with live byte counts plus gzip estimates for icons under 5KB and illustrations under 50KB.

Runs entirely in your browser with no uploads and no account — paste, compress, export PNG if needed, and ship.

Related Tools

Methodology & feedback

Figures run locally in your browser from the values you enter (page updated ). Estimates are educational only — verify finance, tax and health decisions with a qualified professional (see Disclaimer). Spotted an error? Report it via contact and we correct with a new update date.

Was this tool helpful?

Search Tools

Start typing to find tools