Image Compressor
Shrink JPG, PNG and WebP to a target file size or pixel dimension — fully in your browser. Same format in, same format out, just lighter.
How target-size compression works
Most online compressors guess a quality level and hope. We use a binary search on the encoder: it tries a quality, measures the output size, and adjusts until the file lands at or below the target you set. This converges in two or three passes for almost any photo.
The dimension slider is the second lever. Mobile cameras emit 4032×3024 JPGs that you then drop into a CMS template that displays them at 1200 pixels wide — the full resolution is dead weight. Cap the longest edge at the size you actually need and the file shrinks linearly before the quality compressor even runs.
PNG compression is bounded by the format: PNG is lossless, so the savings come from re-encoding with optimised tables. Expect 10-30% on screenshots, much less on already-optimised UI assets. For photos always prefer WebP or JPG.
How to use
- 1
Drop in your files.
Mix formats freely — each file is compressed in its own format.
- 2
Set a target size.
0.5 MB is a sensible blog default; 1.5 MB is safe for hero images.
- 3
Set a max dimension.
1920 px covers full-screen on most laptops. Mobile-only assets can drop to 1080.
- 4
Sign in and compress.
Each file runs through a worker so the page stays responsive.
- 5
Download.
Original files in the picker are untouched — you can re-compress with different settings.
Read next
Convert between formats first
If your PNGs are really photos, convert to WebP before compressing — you'll save another 30%.
Add a QR to your logo file
Common after compressing brand assets.
Test your upload speed
Big assets feel slow because of upload bandwidth, not the compression.
Format a CDN config blob
Inevitable companion task when wiring up image delivery.