How to Compress a JPEG
Published November 28, 2026
Compressing a JPEG makes the file smaller so it uploads faster, fits through an email limit or passes a form that only accepts photos under a certain size. There are two ways to do it, and most tools use both: save at a lower quality, which throws away detail the eye barely notices, and make the picture smaller, which leaves fewer pixels to store. This guide shows how to compress a JPEG online, on a Mac, in Windows, on iPhone and Android, and how to hit an exact size.
JPEG or JPG?
They are the same format. JPEG stands for Joint Photographic Experts Group, and older versions of Windows only allowed three letters after the dot, so many files end in .jpg instead. Compressing a .jpeg and a .jpg works the same way, and “JPEG to JPG” needs no conversion: renaming the file is enough.
The quickest way: compress a JPEG online
Our free Compress JPEG tool runs in your browser, so the photos are never uploaded:
- Add one photo or a whole batch of up to 100.
- Pick High, Balanced or Smallest, or choose a size such as Under 50 KB, Under 100 KB or Under 1 MB, or type your own size in KB.
- Download each photo, or all of them as a ZIP file.
At a set size, the tool tries the highest quality first and only steps down, and then shrinks the width and height, as far as it has to. It also never hands you a file bigger than the one you started with.
How to compress a JPEG on a Mac
Preview, which opens photos on every Mac, can do it without any extra app:
- Open the photo in Preview and choose File → Export.
- Set Format to JPEG and drag the Quality slider to the left. The file size shown below the slider updates as you move it.
- Click Save. Give the copy a new name if you want to keep the original.
If the photo is still too big, choose Tools → Adjust Size first and lower the width, keeping Scale proportionally ticked. A smaller picture compresses much further than a large one at the same quality.
In the Photos app, select the pictures, choose File → Export → Export Photos, set JPEG Quality to Medium or High and Size to Large or Medium, and export. This is the easiest way to compress many JPEGs on a Mac at once.
How to compress a JPEG in Windows
In the Photos app on Windows 11, open the photo, click the ⋯ menu and choose Resize image. Pick a preset size or enter your own width and height, lower the Quality slider if it is shown, and save a copy.
In Paint, open the photo, choose Resize (Ctrl+W), lower the percentage with Maintain aspect ratio ticked, and save it with File → Save as → JPEG picture. Paint only changes the size, not the quality, but for most camera photos that alone cuts the file a lot.
How to compress a JPEG on iPhone and Android
Phones have no quality slider for JPEGs, but there are a few ways around it.
- iPhone: photos are usually saved as HEIC, not JPEG. When you attach photos in Mail, iOS asks which size to send: Small, Medium, Large or Actual Size. For any other app, open our compress tool in Safari; it reads HEIC photos too and saves them as compressed JPGs.
- Android: some gallery apps, including Samsung’s, can save a smaller copy from the photo’s ⋮ menu or editor, depending on the phone and app version. To reach a set size on any phone, use the online tool in Chrome.
How to compress a JPEG for email
Email services cap how much you can attach to one message, and a handful of camera photos can pass that. Compress the photos before attaching them: Balanced usually makes each one a fraction of its original size with no visible change on screen. In Outlook for Windows, you can also choose File → Info → Resize large images when I send this message. For many photos at once, compress them as a batch and attach the ZIP file.
How to compress a JPEG to 100 KB, 50 KB or 20 KB
Job portals, exam and visa applications often ask for a photo or a signature under a set size, such as 100 KB, 50 KB or even 20 KB. Lowering the quality alone rarely gets a phone photo that small without visible blocks, so the width and height have to come down too.
The simplest way is to let the tool do both: choose Under 50 KB or Custom and type the limit from the form. If you want the best possible quality at a very small size:
- Crop first. A passport-style photo or a signature only needs the face or the ink, not the whole frame.
- Check the form’s pixel limits. Many forms state a width and height as well as a file size. Resize to those in Preview, Photos or Paint as shown above, then compress.
- Use a plain background. A light, even background takes far fewer bytes than a busy room behind you.
How to compress a JPEG without losing quality
Strictly, every JPEG save loses a little, because JPEG is a lossy format. In practice, a good encoder at high quality makes a file that looks the same as the original at normal size while being noticeably smaller. Choose High in our tool and compare the result with the original at full size.
To keep as much quality as possible:
- Compress the original, not a copy that has already been through a chat app or a website.
- Save once. Every time a JPEG is edited and saved again, it loses a little more. Keep the original and export a compressed copy at the end.
- Resize instead of crushing the quality. A photo shown at phone size doesn’t need camera resolution, and fewer pixels let you keep a high quality at a small size.
If you overdo it, you will see blocks and fuzzy halos around edges. Our guide to JPEG compression artifacts explains what they are, how to avoid them and how to clean up a photo that already has them.
Screenshots, logos and text
JPEG is made for photos. Screenshots, logos and pages of text have flat colors and sharp edges, which JPEG handles badly: they show smudges around every letter even at decent quality. For those, a PNG is usually cleaner at a similar size, and our PNG compressor can bring it down to a set size too.
Ready to try it? Compress your JPEG for free, with no sign-up and no upload.