Runs on your device · Your file never leaves your device.
This page opens with the limit already set to 5 MB. Photo-contest entries, print-on-demand uploads and some CMSs set a 5 MB limit per image. Drop a photo and download one that fits.
Room for a full camera JPEG; this page mostly turns 8–15 MB originals into files that upload. The tool searches for the highest quality that still stays under 5 MB, and lets you reduce the pixel dimensions as well, which is what makes a small file look sharp instead of blurry.
Works with JPG, PNG, WebP and iPhone HEIC photos, one at a time or as a batch, entirely on your device.
How to compress an image to 5 MB
Add one photo or a batch.
Leave the target at 5 MB, or type the limit your form asks for.
Press Convert; the tool finds the highest quality that stays under the limit.
Compare before and after, then download.
Supported formats and limits
Input
JPG, PNG, WebP, HEIC
Output
JPG under 5 MB
Target
5 MB by default; any value
Batch
Yes — many photos at once
Where it runs
In your browser; the photo is never uploaded
Not for: Adding detail — compression can only remove data, never restore what a low-quality original never had.
Frequently asked questions
Are my files uploaded to a server?
No. The compression runs entirely inside your browser using your own device’s processing power. The file never leaves your computer or phone, which is why it also works when your connection drops.
Why does my file come out just under 5 MB?
The limit is a ceiling. The tool returns the highest-quality version that stays under your number, which normally lands a little below it.
The photo still will not reach 5 MB — what can I do?
Reduce the pixel dimensions as well. A large photo scaled down looks far better at a small size than the same photo kept full-size and heavily compressed.
Does it work on a phone?
Yes. Pick the photo from your gallery, and the compression runs on the phone itself. iPhone HEIC photos are converted to JPG on the way.