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
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
- 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.
- Choose a Compression level: Smaller file (quality 60), Balanced (75) or Best quality (88). Pick Custom to set any value on the Quality slider.
- 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.
- 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
Related tools
- Resize image Change image dimensions in pixels, percent or presets, one file or hundreds, without uploading.
- Image converter Turn JPG, PNG, WebP, AVIF, GIF, BMP, ICO and SVG files into JPG, PNG, WebP or AVIF.
- HEIC to JPG Convert iPhone HEIC photos to JPG or PNG in bulk, with GPS removed, without uploading them.
- Video compressor Shrink a video to fit Discord, WhatsApp or email, right in your browser.
- Compress PDF Shrink a PDF with sharp text, or bring it under a size like 1 MB, without uploading it.
- Image to text Extract printed text from photos and screenshots with OCR in your browser, then copy it or save a .txt.
Guides
- iPhone HEIC photos won't open on Windows: 3 fixes Photos copied from an iPhone arrive as .HEIC files, and Windows often shows an error or a blank thumbnail instead of the picture. Here is why, and three ways to fix it for good.
- How to resize a photo to under 100 KB for online forms Application portals often reject photos above 100 KB, or demand exact pixel sizes. Here is how to meet both rules without making the picture blurry.
- How to compress an image to 20 KB A 20 KB limit is tiny: about the size of this page of text. It is common for signature uploads and small passport-style photos, and it is achievable if you control pixel size as well as quality.
- How to compress an image to 50 KB Many application and exam portals cap photos, signatures and ID scans at 50 KB. This guide shows how to hit that number, what pixel size to aim for, and why a file sometimes still gets rejected.
- How to compress a PNG without losing quality PNG files can often be made smaller with no visible change, and sometimes with no change at all. Here is how lossless optimization works, how much it saves, and what to do when it is not enough.
- How to reduce image size in KB to any target Whether the limit is 100 KB, 300 KB or 800 KB, the method is the same. Understand the three things that decide file size, then reduce them in the right order to keep the picture looking good.
Last updated Nov 12, 2026