Compress JPEG

Make JPG and JPEG photos smaller with MozJPEG, an encoder built to squeeze more out of the format. It runs on your device, so the photos stay private.

Your files never leave your device

Compression
px

Drop images to compress

JPG, PNG, WebP or AVIF, as many as you like. They stay on your device.

You can also paste files with Ctrl+V.

In short

To compress a JPEG, drop it here and press Compress images; the output stays JPG. MozJPEG re-encodes it at quality 75 by default, which often cuts a camera photo's size by half or more while it looks practically unchanged. Location and other EXIF data are removed.

How to compress a JPEG

  1. Drop your JPG or JPEG files on the page, press Choose images, or paste a copied photo with Ctrl+V (⌘V on Mac). Output format is already set to JPG.
  2. Choose a Compression level: Smaller file (quality 60), Balanced (75) or Best quality (88). Pick Custom to set any value on the Quality slider.
  3. Turn on Keep date and camera info if you want to keep the capture date and camera model; the GPS location is removed either way.
  4. Press Compress images, compare the old and new sizes, and download each file or use Download all as ZIP.

How JPEG compression works

JPEG cuts a picture into 8 × 8 pixel blocks and describes each block as a mix of smooth patterns, from flat color to fine stripes. The quality number decides how coarsely those patterns are rounded off: high quality keeps the fine ones, low quality drops them, which is where blocky edges and ringing around text come from.

Color is handled separately from brightness. Because the eye notices brightness detail far more than color detail, most JPEG files store color at half the resolution in each direction, a trick called chroma subsampling or 4:2:0. It is invisible in photos but can put a faint fringe around sharp red or blue text, a sign that such graphics belong in PNG.

MozJPEG, an open-source encoder started by Mozilla, uses smarter rounding (trellis quantization), tuned quantization tables and optimized coding to produce smaller files than a standard encoder at the same visible quality, while still writing ordinary JPEGs that every viewer opens. Its files are progressive: they appear as a rough preview first and sharpen as they load, instead of filling in from top to bottom.

Frequently asked questions

What do JPEG quality numbers like 60, 75 and 90 mean?

They are a scale from 1 to 100 that sets how aggressively detail is rounded off; they are not a percentage of the original. The numbers aren't comparable between programs either, so quality 75 in one app may look like 85 in another. Balanced here uses 75, a common sweet spot for photos; above about 90 the file grows quickly for little visible gain.

Is JPEG compression lossless?

No. Each time a JPEG is encoded, some information is rounded away for good, so the original can't be rebuilt from the compressed file. Keep your original if you might need it later; this tool never overwrites it and gives you the compressed copy as a separate download.

Can I compress a JPEG again and again?

You can, but every round loses a little more, an effect called generation loss, and the savings shrink quickly because the detail is already gone. If another pass would save less than 2%, the tool keeps your file unchanged and marks it Already optimized. For the best result, always start from the original photo rather than an earlier compressed copy.

How do I compress a JPEG without losing quality?

Visually, by staying at Balanced or Best quality and not shrinking the pixel size more than you need. Use Compare before and after to look at faces, skies and fine textures at full size. For truly zero loss JPEG is the wrong format, and lossless alternatives such as PNG are much larger for photos.

Does compressing remove EXIF data from my JPEG?

Yes, by default all of it: GPS position, camera settings, editing software, comments and the embedded preview thumbnail. That protects your privacy when you share photos and saves some space as well. Turn on Keep date and camera info to retain the capture date and camera model; the location is still deleted.

What is the difference between JPG and JPEG?

None; they are the same format with two spellings. The three-letter .jpg comes from older Windows versions that limited extensions to three characters, and .jfif files are JPEGs too. All of them can be compressed here, because the format is recognized from the file's content rather than its name.

How do I compress a JPEG on Mac or Windows without extra software?

Open this page in Safari, Chrome, Edge or Firefox and drop the files in; nothing needs installing. On a Mac, Preview's Export dialog offers a quality slider for one file at a time, and Windows Paint can resize a picture, but neither compresses a whole batch with a before-and-after preview.

Why is my JPEG file so large?

Usually because it is a full-resolution camera photo saved at very high quality, often 90 to 100, or because it carries a big block of metadata. Editors that save at maximum quality by default produce files several times larger than they need to be. Recompressing at Balanced, and lowering the pixel size if the photo is only for screens, fixes both.

Picking the right JPEG quality for the job

There is no single best number; it depends on how the picture will be seen. Small images in a feed hide artifacts well, while a large hero photo on a wide monitor shows every flaw.

  • Quality 60 (Smaller file): thumbnails, chat images, listings with many photos.
  • Quality 75 (Balanced): blog posts, shop photos, email attachments.
  • Quality 88 (Best quality): portfolios, detailed landscapes, photos containing fine text.
  • Custom: match a quality you already use elsewhere, or fine-tune between the presets.

JPEG or a newer format?

JPEG remains the safest choice when a file has to open everywhere, from old office software to strict form portals. If the pictures are only for a website, set Output format to WebP, which typically gives the same look in a smaller file.

If a JPEG must also meet a hard size limit, use the 100 KB preset or another size target instead of guessing a quality. To change formats without compressing, use the image converter; for iPhone photos, start with HEIC to JPG.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026