Skip to content
snip tools

Image compressor

Shrink JPEG, PNG and WebP images with a live quality preview — entirely in your browser.

Runs 100% in your browser
Compressed image preview

Choose an image to start compressing.

How to compress an image

  1. Choose an image. Drop in or select a JPEG, PNG or WebP file.
  2. Pick format and quality. Select the output format and drag the quality slider; the preview and estimated size update live.
  3. Download. Click Download to save the compressed image to your device.

Why compress images

Images are usually the heaviest thing on a web page, and oversized ones have real costs: slow page loads (which hurt both visitors and search ranking), blown email-attachment limits, and wasted storage. A photo straight off a phone can be several megabytes; the same picture, sensibly compressed, often looks identical at a fraction of the size. Compression buys that reduction by re-encoding the picture more efficiently — and, for lossy formats, by discarding fine detail the eye barely registers. The goal isn't the smallest possible file; it's the smallest file that still looks right for where it'll be used.

Lossy vs. lossless

There are two fundamentally different approaches. Lossy formats — JPEG and WebP — throw information away to save space, exploiting the fact that human vision is far more sensitive to brightness than to fine color and high-frequency texture. Lowering the quality slider tells the encoder to discard more, which is why you can shrink a photo dramatically before any difference is visible. Lossless compression — PNG — keeps every pixel exactly and saves space only by encoding repetition efficiently. That makes PNG perfect for screenshots, logos and flat-color graphics with large uniform areas, and poor for photographs, which have little exact repetition to exploit.

Choosing a format and a quality level

Match the format to the image. Photographs → JPEG or, better, WebP, which is typically 25–35% smaller at the same visual quality. Graphics, screenshots, anything with sharp edges or transparency → PNG (or WebP, which also supports transparency). For the lossy formats, the quality setting is the dial that matters: 75–85% is the usual sweet spot, lower for thumbnails and backgrounds, higher for hero images. The live preview plus the before/after sizes here let you find that point by eye rather than guessing — nudge the slider down until you can just start to see a difference, then back off one step.

Done in your browser — and what to pair it with

This tool draws your image to an HTML canvas and re-encodes it locally, so the original file is never uploaded and nothing is stored — fine for personal photos, client work or anything confidential. One tip: always compress once from your best original, since repeatedly re-saving a lossy image accumulates artifacts (generation loss) without real extra savings. If the image is also bigger than it needs to be in dimensions, resizing first saves far more than compression alone — use the image resizer — and to switch formats outright, the image converter handles that. To strip location and camera metadata, see the EXIF stripper.

Frequently asked questions

Are my images uploaded to a server?
No. Compression happens entirely in your browser on an HTML canvas. Your photos never leave your device and nothing is stored.
Which formats can I compress?
You can load JPEG, PNG, WebP, GIF or BMP and export as JPEG, PNG or WebP. WebP usually gives the smallest file at the same visual quality.
Does compressing reduce image quality?
JPEG and WebP are lossy — lowering the quality slider trades fidelity for size. PNG is lossless, so its savings come from re-encoding rather than quality loss. Use the live preview and before/after sizes to find the sweet spot.
What quality setting should I use?
For most photos, 75–85% JPEG or WebP is the sweet spot — a large size reduction with no difference most people can see. Drop to 60–70% for thumbnails or background images where detail matters less, and stay at 90%+ for hero images or anything that will be zoomed. Always judge by the live preview, not the number, because the right value depends on the picture.
Why is my PNG sometimes larger after compression?
PNG is lossless and the browser may re-encode photographic images less efficiently than the original tool. PNG only compresses well on flat-color graphics; for photographs it has nothing to throw away, so choose JPEG or WebP output instead.
Does compressing the same image twice make it smaller again?
No — and it can hurt. Each lossy re-encode discards a little more detail and can add artifacts (generation loss), without meaningful extra savings. Always compress once from the highest-quality original you have rather than re-compressing an already-compressed file.
Is there a file-size limit?
Only your device memory. Very large images (above ~50 megapixels) may be slow because everything is processed locally.