sqwartHome

Compress JPEG

Shrink JPG photos by 50–80% with no visible difference, in a batch, without uploading them.

  • Free
  • No upload
  • No watermark
  • No sign-up
How it works

How to compress JPEG

  1. 1

    Choose your JPG photos, or drop a whole folder's worth.

  2. 2

    Pick a quality, or switch to Target file size and enter a size in KB.

  3. 3

    Press Compress and compare before and after.

  4. 4

    Download one by one or as a ZIP.

In detail

What JPEG quality means

JPEG splits a photo into 8×8 pixel blocks and stores each block's broad shading precisely and its finest detail roughly. The quality number (1–100) sets how roughly. Phone cameras save at about 90–95, which keeps detail no one can see at normal viewing size.

Re-saving at 75–85 typically halves the file or better. Below about 50 you start to see blocky patches in skies and smooth areas, and halos around text.

Tips for the smallest good-looking JPG

  • Reduce the pixel dimensions first if the photo is going on a website, email or form: 1600 pixels wide is plenty for screens.
  • Crop away what you don't need; every pixel costs bytes.
  • Compress once from the original. Each JPEG re-save loses a little more, so avoid compressing an already compressed copy over and over.
  • If the file is going on your own website, WEBP gives the same look 25–35% smaller.

How compressing to an exact size works

A JPEG's size depends on its quality setting and its pixel dimensions. To hit a target, the tool encodes your picture at several quality levels, homing in on the highest quality that still fits under the limit (a binary search: about eight tries, each a fraction of a second).

If even low quality can't fit, it reduces the pixel dimensions a step at a time and searches again, because a slightly smaller picture at decent quality looks far better than a full-size one at very low quality. The file you get is always at or under the size you asked for.

How it works, and why nothing is uploaded

Your browser already knows how to open JPG, PNG, WEBP, GIF, BMP and SVG files, and recent browsers open AVIF too. This tool asks the browser to decode your picture, draws it on an HTML canvas, and has the browser write the new file. iPhone HEIC photos and TIFF scans, which Chrome and Edge can't open, are decoded by small open-source decoders (libheif compiled to WebAssembly, and UTIF.js) that load only when you add such a file.

Because everything happens on your device there is no upload wait, no queue and no file-size cap other than your device's memory. A browser canvas tops out around 16,000 pixels on a side (less on older iPhones), which is far beyond any phone or camera photo.

FAQ

Questions, answered.

What quality should I choose?

75–85 for photos you share or upload. 90 if you might print or edit it again. Use the before/after slider to judge.

Will compressing again and again make it worse?

Yes, a little each time, because JPEG is lossy. Compress from the original photo when you can.

Why did a file come back the same size?

If re-encoding would make that JPG bigger (it was already well compressed), the tool gives you the original back rather than a worse, larger file.

Can I do many images at once?

Yes. Choose or drop as many images as you like and they are compressed one after another. Save each file on its own or download them all in one ZIP.

Are my images uploaded anywhere?

No. The page does all the work inside your browser, so your pictures never leave your phone or computer. Once the page has loaded you can even turn off Wi-Fi and it keeps working.

Is it really free? Is there a limit?

Yes, it is free with no sign-up and no watermark. There is no daily limit or file cap, because your own device does the work rather than a paid server.

Keep going

More free image tools