How to Compress an Image to Under 5MB

Five megabytes is the limit that shows up everywhere: email attachments, upload forms, messaging apps, job portals. A photo straight from a camera is often 6–12 MB, so it bounces. Compression brings it under 5 MB without changing the pixel dimensions — and BunnyIMG’s compress tool does it in the browser, no app to install.
How do I get an image under 5 MB?
Open BunnyIMG’s Compress Image tool and upload the image — JPG, PNG or WebP, up to 50 MB per file, in batches if you have several. Choose one of its three presets and an output format, then download and check the resulting file size. The tool has no target-size field and no quality slider, so if the first preset does not get you under 5 MB, try a stronger preset or switch a photographic PNG to JPG, which compresses far smaller at the same quality. Always start from the largest original you have: shrinking a file that is already compressed rarely helps, and recompressing an already-small image can make it bigger. For the same workflow at a tighter limit, see how to compress an image to under 2MB.
Step 1: Check the starting size
Before compressing, look at the file’s actual size. A 4000 × 3000 phone photo at 8 MB needs only a modest reduction, while a 20 MB PNG screenshot may need a format change as well. Knowing the gap tells you whether one preset pass will do it or whether you should also resize the pixel dimensions — compression reduces file size, not dimensions, so a huge canvas stays huge even after compression.
Step 2: Pick the right preset and format
For photographs, JPG is the practical choice: it compresses far smaller than PNG at the same visible quality. For flat graphics, logos and screenshots with sharp edges, PNG stays cleaner but larger — if a PNG will not fit under 5 MB, try WebP, which keeps sharp edges at a much smaller size. Run the strongest preset only if you need it; each pass throws away more detail, and you cannot undo a download. For the same workflow on a website, see how to compress images for your website.
Step 3: Verify the result before you send it
Open the compressed file and check three things: it is under 5 MB, it still looks sharp at full size, and the dimensions are unchanged. If the file is still over the limit, resize the pixel dimensions first — halving the width and height quarters the pixel count — then compress again. For the same workflow at the smallest common limit, see how to compress an image to under 1MB. Keep a copy of every original: if a form ever asks for a larger file, you can re-export from the master instead of upscaling a compressed copy.
Mistakes that keep an image over 5 MB
- Compressing a PNG photograph. Photographic PNGs stay large. Export photos as JPG or WebP instead.
- Recompressing an already-small file. A second pass on an already-compressed image can make it bigger. Start from the original.
- Expecting a target-size box. BunnyIMG’s compress tool has no target-size field — pick a preset, check the result, and adjust.
- Ignoring the pixel dimensions. A 6000 px-wide image stays heavy even compressed. Resize first, then compress.
- Deleting the original. Once a file is compressed, the lost detail is gone. Keep the master copy.
Frequently asked questions
How can I compress an image to under 5 MB for free?
Upload it to BunnyIMG’s Compress Image tool, pick a preset and an output format, and download the result. No account or app is needed.
Will compressing to under 5 MB reduce quality?
A little — compression removes some detail. A moderate preset on a large original is usually invisible at normal viewing sizes.
What format compresses smallest under 5 MB?
For photos, JPG or WebP. For flat graphics, WebP or PNG. Avoid photographic PNGs when size matters.
Can I compress several images to under 5 MB at once?
Yes. The compress tool accepts batches, up to 50 MB per file, so you can process a whole set in one go.
Try the Compress Image tool
Put what you just read into practice with the free Compress Image tool on BunnyIMG.
Open the Compress Image toolFrequently asked questions
How do I get an image under 5 MB?
Open BunnyIMG’s Compress Image tool and upload the image — JPG, PNG or WebP, up to 50 MB per file, in batches if you have several. Choose one of its three presets and an output format, then download and check the resulting file size. The tool has no target-size field and no quality slider, so if the first preset does not get you under 5 MB, try a stronger preset or switch a photographic PNG to JPG, which compresses far smaller at the same quality. Always start from the largest original you have: shrinking a file that is already compressed rarely helps, and recompressing an already-small image can make it bigger. For the same workflow at a tighter limit, see how to compress an image to under 2MB .


