Image Compressor

What compression actually does to a file, which format to pick, and how to land on an exact size — all running in your browser below.

Your images never leave your browser — zero uploads, 100% private
Free, no signupWorks offlineNo upload, ever
📸
Drop an image to start
PNG, JPG, WebP, AVIF, BMP, SVG, GIF, TIFF
Pro tools Pro
Platform
Pro
ProUnlocks one-click platform presets for Instagram, LinkedIn, X, YouTube, WhatsApp, and more.See Pro plans
Responsive set
Pro
Extra formats
Pro
ProUnlocks responsive image sets (1 input → up to 4 sizes) and multi-format export (AVIF, WebP, JPG and PNG simultaneously) — packaged in a single ZIP.See Pro plans
Rename pattern
Pro
Saved presets
Pro
ProUnlocks saved presets — bundle your responsive set, format, watermark, codec, and rename template into a named profile you can apply with one click.See Pro plans
Free forever·Offline-ready·Zero telemetry
Why MiniPx

Built for people who care how images travel.

100%On-device
Your photos never leave.
Every byte processed in your browser. No upload, no copy, no trace.
50–90%Smaller
Honest compression.
Multi-pass encoding that respects your image. No silent quality cliffs.
5Files per batch
No quota. No credits. No watermark.
Five files a batch on the free tier, unlimited batches — Pro lifts the cap. Your device is the only real ceiling, because your device does the work.
8Formats
Native to every modern format.
PNG · JPG · WebP · AVIF · BMP · SVG · GIF · TIFF
MiniPx
Settings
Mode
Format
Compression
Custom quality
65%
TinyMax
Max width
Privacy
EXIF data always removed
Every output drops GPS location, device info & timestamps
Everything stays on your device.

Image Compressor — Free, Fast & Private

Compressing an image means re-encoding it so the file takes up less space. There are two ways to get there. Lossless compression finds redundancy in the pixel data and packs it more efficiently, so decompressing gives back the exact original — PNG works this way. Lossy compression throws away detail the eye is unlikely to notice and never gets it back, which is how JPEG, WebP, and AVIF reach much smaller files than PNG ever could for a photo.

The quality slider in a lossy encoder is not a straight trade of "some quality for some size." Most encoders spend their effort on the ranges that matter most to human vision — smooth gradients, fine edges — and get more aggressive on ranges that don't, like the fine noise in a photograph's shadows. That's why dropping from 95 to 80 barely changes what an image looks like, but the file can shrink by half, while dropping from 80 to 40 saves comparatively little more and starts to show. The relationship between the number on the slider and what you can actually see is a curve, not a line, and it bends hardest in the upper range — which is why most images hold up fine well below their default export quality.

MiniPx runs this entire process on your device. JPEG, PNG, and WebP encode through your browser's own image APIs; AVIF — which few browsers can encode natively yet, even though most can display it — runs through a WebAssembly codec that downloads once (about 3.4 MB) and is cached after that. Either way, the pixels are read, re-encoded, and written back to a file without a network request carrying them anywhere. You can confirm this yourself: open your browser's network tab, drop in a photo, and watch nothing image-shaped go out.

Which format should you actually use?

JPEG is the default for photographs and anything with continuous tone — skies, skin, textures. Its compression is built around smooth gradients, and every device and platform from 1998 onward can open one. It has no transparency channel, so it's the wrong choice for a logo or icon that needs to sit on different backgrounds, and its compression artifacts show up as blocky noise around hard edges, which makes it a poor fit for screenshots and flat graphics too.

PNG is lossless and supports full transparency, which makes it the right call for logos, icons, line art, and screenshots — anything with flat color and sharp edges, where JPEG's gradient-tuned compression works against you. The trade-off is size: a PNG of a photograph is routinely several times larger than a JPEG or WebP of the same image at a quality most people can't tell apart, because lossless compression can't discard the detail a lossy encoder would.

WebP covers both cases in one format — it has a lossy mode that beats JPEG at equivalent quality and a lossless mode that beats PNG, plus transparency support either way. Browser support has been near-universal for years now, which is why it's a safe general-purpose default when you're not sure which of the two above you'd otherwise reach for. The one place it can lose is encode time on very large batches, where its extra work over JPEG adds up.

AVIF produces the smallest files of the four at a given visual quality, particularly on photographic content, and it supports transparency too. The cost is on the way in, not the way out: encoding is slower, and — as above — most browsers still can't produce an AVIF file themselves without help, which is why MiniPx downloads a small WebAssembly encoder for it rather than relying on a built-in one. Every current browser can display an AVIF once it exists, so the format is safe to ship; producing one locally is the part that needed extra work.

A rough way to decide: photo going on the web where size matters most → AVIF or WebP. Photo that has to open anywhere, including older software → JPEG. Logo, icon, or anything needing transparency on flat color → PNG or WebP. Screenshot with text in it → PNG, because JPEG's gradient-tuned artifacts blur small text.

Choosing a target size and a quality that survives it

Most target sizes come from somewhere else's limit, not a preference — a form that rejects anything over 100KB, an email attachment cap, a marketplace listing rule. Work backward from that number rather than picking a quality first and hoping: start around 80, watch the output size as you adjust, and stop lowering it the moment the size clears your target with a little headroom. Because the quality curve bends hardest at the top, that first drop from a default export usually buys most of the size reduction with the least visible cost — the real damage tends to show up only once you're pushing well past the point the file already met its target.

If the file needs to land on an exact number rather than "roughly small enough," MiniPx's compressor watches the output size live as you move the slider, so you can stop exactly where the target is met instead of guessing and re-exporting. For the common exact targets, there are dedicated pages set up with the right starting point already — linked below.

How it works

  1. Decide lossy or lossless: Photo or gradient-heavy image → lossy (JPEG, WebP, or AVIF). Flat graphic, logo, or screenshot with text → lossless (PNG, or WebP’s lossless mode).
  2. Pick a format: JPEG for maximum compatibility, WebP as a safe general default, AVIF for the smallest file when encode time isn’t a concern, PNG when you need transparency or true lossless.
  3. Drop your image into the tool above: Nothing uploads. The file is read and re-encoded on your device, using your browser’s native codecs or, for AVIF, a small WebAssembly encoder cached after first use.
  4. Adjust quality against the live size readout: Move the slider down from a high starting point until the output size clears your target, then stop — the visible cost of each further drop grows faster than the size saved.

Frequently asked questions

What is the difference between lossy and lossless compression?
Lossless compression (PNG) repacks the exact same pixel data more efficiently — decompress it and you get the original back byte for byte. Lossy compression (JPEG, WebP, AVIF) discards detail the eye is unlikely to miss and cannot recover it, which is what lets it reach much smaller files, especially on photographs.
Which image format is smallest?
For photographic content, AVIF typically produces the smallest file at a given visual quality, followed by WebP, then JPEG. For flat graphics with transparency, WebP’s lossless mode or PNG are the options, and which is smaller depends on the image — PNG can win on very simple graphics.
Why does the quality slider not change size in a straight line?
Encoders spend their effort on the parts of an image human vision is most sensitive to and get more aggressive elsewhere. That means the top of the quality range gives up a lot of size for very little visible change, while the bottom of the range gives up comparatively little size for a much more visible change — the curve, not the number, is what matters.
Does MiniPx upload my image to compress it?
No. JPEG, PNG, and WebP are encoded using your browser’s own image APIs, and AVIF runs through a WebAssembly encoder that downloads once (about 3.4 MB) and is cached afterward. Either way, the encoding happens on your device, not on a server, and you can verify it by watching your browser’s network tab while you compress an image.
Why can’t my browser make an AVIF file directly?
Most browsers can display an AVIF file without any help, but far fewer ship a built-in AVIF encoder — decoding and encoding are different pieces of engineering, and encoders arrived later. MiniPx works around the gap with a small WebAssembly encoder that downloads once and is cached for every AVIF export after that.
How do I hit an exact file size like 100KB?
Drop the image into the compressor above and adjust the quality slider while watching the live output size — stop the moment it clears your target. For a handful of the most common exact targets, MiniPx also has dedicated pages preset to a sensible starting quality; see the links below.

All Image Tools

Solutions by use case