~/image-compressor resize heic→jpg screenshots ☕ Support me apps ← about me
NAME

Image Compressor — Compress JPEG, PNG, WebP and AVIF Online in Your Browser, No Upload

— batch compress with MozJPEG, WebP, AVIF and Smart PNG
SYNOPSISimage-compressor [preset|format|size|names] images
NOTESruns in this tab · images are never uploaded · EXIF and GPS data are removed

Make images up to 90% smaller

Drop photos, screenshots and logos anywhere on this page, paste them, or choose files. They shrink at once, in the background, on your own device. Nothing is uploaded.

  • 🔒 Never uploaded
  • ⚡ Parallel threads
  • 🧩 MozJPEG · WebP · AVIF · OxiPNG
  • 🛰 GPS & EXIF removed

JPG · PNG · WebP · AVIF · GIF · BMP · whole folders · Ctrl+V

Guide — make images smaller in under a minute

Everything runs in your browser; nothing is uploaded.

1Add your images

Drop photos, screenshots or whole folders anywhere on the page, paste with Ctrl+V, or press Choose images. Not sure yet? Press Try sample images.

2They shrink on their own

Every image is compressed in a background thread as soon as it lands, with a thumbnail, its new size and the percentage saved. Press Compress if you switched auto off.

3Pick a preset, format and size

Start from Web, Email, Tiny or ≤ 100 KB, then fine-tune the format, quality, size limit and pixel size. Everything re-compresses automatically.

4Compare before and after

Click a thumbnail and drag the line between the original and the compressed image. Press Z for real pixels and use the arrow keys to browse.

5Download or share

Save images one by one, press ZIP for a single download with your file names and original dates, or on a phone use Share to save them to the gallery. Press F for full screen.

Quick reference

PRESETSWhich preset for which job
Web
WebP · quality 75 · 1920 px
Email
JPG · quality 70 · 1280 px
Social
JPG · quality 82 · 2048 px
Tiny
WebP · quality 55 · 1200 px
Smallest
AVIF · 1920 px
Max quality
best of WebP and JPG, original size
FORMATJPG, WebP, AVIF or PNG
WebP
websites and blogs; about 25–35% smaller than JPG
JPG
email, forms, Office, old software
AVIF
smallest photos; slower to make
Smart PNG
screenshots, logos, icons: 16–256 colours
PNG
lossless, every pixel identical
LIMITSUpload forms: “max 100 KB”
≤ 100 KB
highest quality that fits, per image
≤ 50 KB
also resizes to 1600 px
Custom
type any value in KB
Too big?
lower the longest side as well
KEYSShortcuts
Ctrl + Enter
Compress now
Ctrl + V
Paste a screenshot
F
Full screen on / off
G
Grid / list view
S
Settings (full screen & phones)
← → Z
Browse / 100% in the compare view

Image compression, explained

Most photos straight from a phone or camera are 2 to 8 MB, far more than a web page, an email or an upload form needs. An image compressor makes them smaller in two ways: it resizes them to the number of pixels you actually need, and it stores those pixels more efficiently. Done well, the difference is hard to see while the file shrinks by 70 to 90%. This tool does both inside your browser, so private photos never leave your device.

It uses the same kind of encoders as desktop tools: MozJPEG for JPG (typically 10–20% smaller than the encoder built into a browser), libwebp for WebP, the aom reference encoder for AVIF and OxiPNG for PNG. They run as small WebAssembly modules, downloaded once from a public CDN when you first compress, in several background threads at the same time. If a module cannot load, for example when you are offline right after opening the page, the browser’s own encoders take over, so compressing keeps working.

Lossy and lossless compression

Lossy formats such as JPG, WebP and AVIF throw away detail your eyes hardly notice; the quality slider decides how much. Around 70–80 is the sweet spot for photos. Lossless PNG keeps every pixel exactly, which suits screenshots and graphics with sharp edges and text, but makes photos huge. Smart PNG sits in between: it reduces the image to at most 256 carefully chosen colours (colour quantization, the idea behind pngquant and TinyPNG), optionally smooths gradients with dithering, and saves a palette PNG that OxiPNG then squeezes further. Graphics look the same and are often several times smaller, with transparency intact.

Which format should you use?

FormatBest forTransparencyNotes
WebPPhotos and graphics on websitesYesUsually 25–35% smaller than JPG at the same quality; every current browser can show it
JPGPhotos for email, forms and older softwareNoOpens everywhere; transparent areas get the background colour you choose
AVIFThe smallest photos for modern sitesYesOften 30–50% smaller than JPG; slower to create, and a few older programs cannot open it
Smart PNGScreenshots, logos, icons, chartsYesUp to 256 colours; gradients can band without dithering
PNGWhen every pixel must stay identicalYesLossless; rarely much smaller than the original PNG

Not sure? Choose Auto. It compresses every image as WebP and as JPG (and, for flat graphics, as Smart PNG) and keeps the smallest result.

Compress to a specific size: 100 KB, 50 KB or any limit

Job portals, government forms, visa applications and some web shops only accept images below a certain size. Type a limit in KB, or press one of the chips, and the compressor searches for the highest quality that still fits, separately for every image. If even a low quality does not fit, it shrinks the dimensions step by step until it does, and tells you on the card that it had to. When a limit cannot be reached at all, the card shows a warning instead of silently giving you a bigger file.

Resizing matters more than quality

A 12-megapixel photo is 4000 × 3000 pixels, while a blog post rarely shows images wider than 1200 to 2000 pixels and an email preview even less. Setting the longest side to 1920 or 1280 pixels removes most of the weight before any compression: half the width and height is a quarter of the pixels. The tool scales in steps with high-quality smoothing, can add a light sharpen afterwards, and never enlarges a small image.

Check the result before you download

Click a thumbnail to open the before/after view. Drag the line, or use the keyboard, to flip between the original and the compressed image, and press Z for a 100% view where every pixel is visible; that is the right way to judge text, fine lines and skin tones. The numbers under the image show both sizes, the dimensions, the format and the encoder that made it. A green label on a card means the image got smaller, a yellow one means compressing made it bigger (then Keep the original if it is already smaller returns your own file untouched).

Privacy: are my images uploaded?

No. Images are read, resized and encoded in this browser tab and never sent anywhere. The page loads the encoder modules from a public CDN (code only) and cookie-free page-view analytics; neither receives your images. After the first compression you can switch off Wi-Fi and keep working, which is an easy way to check. Photos often contain EXIF metadata: camera model, date and time and sometimes the exact GPS location. Because every image is redrawn and encoded again, none of that ends up in the compressed file. Orientation is applied first, so portrait photos stay upright. If you need to keep the metadata, keep your originals as well.

Batches, ZIP and phones

There is no limit on the number of images. Several are compressed at the same time in separate threads, and the bar at the top shows the progress. The real limit is your device’s memory: hundreds of ordinary photos are fine on a laptop, but a phone may struggle with very large files; split the batch if that happens. ZIP builds one archive in the browser with each file under your name pattern ({name}-min by default, so your originals are never overwritten) and can keep the original file dates. On phones that support it, Share hands all images to the system share sheet, where “Save images” puts them in the gallery. Press F for a full screen workspace with the settings in a slide-in panel.

HEIC photos, GIFs and other inputs

JPG, PNG, WebP and AVIF files, GIFs and BMPs work as input; an animated GIF becomes a still image of its first frame. iPhone HEIC photos and TIFF files only open if your browser can decode them: Safari can, Chrome and Firefox usually cannot. Convert HEIC first with the HEIC to JPG converter, then compress the result here.

Tips for the best result

Start from the original rather than an already compressed copy, because every lossy save loses a little more. Use presets as a starting point and judge one image in the compare view before you run a hundred. For screenshots with text try Smart PNG with 64 or 128 colours; for photos WebP at 70–80 is usually indistinguishable from the original. And keep your originals: compression is meant for sharing and publishing, not for archiving.

More image tools

Resize a whole folder to exact dimensions with the bulk image resizer, convert iPhone photos with the HEIC to JPG converter, make a screenshot look good with the screenshot beautifier, combine images into one document with JPG to PDF, or lay them out with the photo collage maker.

Bulk Image ResizerResize many images at once HEIC to JPG ConverteriPhone photos to JPG in batch Screenshot BeautifierFrames and backgrounds for screenshots JPG to PDFCombine photos into one PDF All tools →Every free tool on jasperbernaers.com