Compressing an image to 5MB: what to expect
At 5 MB (5,000,000 bytes) every phone photo in our test kept full resolution, including the 48 MP Moscow shot, and 14 of 20 needed no re-encoding at all. Compression at this size is only about file size, not about losing visible detail.
5 MB is a common cap for official photo uploads: Canadian, New Zealand and Hong Kong passport photos, Australian ImmiAccount documents, Google Business Profile photos, and files on Notion's free plan. The decision at this size is simple: only compress a photo that is over 5 MB. Of our 20 originals, 14 were already under, and the tool returned each of those with its pixels unchanged and the metadata removed.
Our test: 44 real photos compressed to 5MB
All 20 fit, at a median of 4017.9 KB and SSIM 1.000, the lowest 0.996. The large originals did the real work: the 26 MB, 48 MP photo came out at 4996.3 KB and quality 64, and the two 13.6 MB photos at quality 87 and 91, all at full size.
Of the 14 smaller originals, eight lost under 5 KB of metadata and the other six between 163 KB and 1.88 MB; the ruins photo, for example, went from 4.40 MB to 4.24 MB. The median photo took 1.7 s, the slowest 5.8 s.
Method: each photo went through this page in Chromium on an Apple M2 Mac. 5MB means 5,000,000 bytes, so the result passes whether a site counts a KB as 1,000 or 1,024 bytes. Figures are medians. SSIM compares the result with the original at 1080 px wide, about what a phone screen shows (1.000 = identical). How we test.
| Photos | Under 5MB | File size | Width | Pixels kept | JPG quality | SSIM | Time |
|---|---|---|---|---|---|---|---|
| iPhone photos, 12–48 MP | 20 of 20 | 4.02 MB | 4032 px | 100% | 93 | 1.000 (lowest 0.996) | 1.7 s |
| Web-size photos, 768 × 512 | 24 of 24 | 155.9 KB | 768 px | 100% | 95 | 0.987 (lowest 0.979) | 1.0 s |
Last updated
Every phone photo at 5MB
All 20 photos from our test set, so you can find one like yours. Quality is the JPG quality the tool settled on; when it would have dropped below 50, the photo was scaled down instead. A JPG that already fitted was returned unchanged apart from its metadata, so its quality is the phone's own setting.
| Photo | Original | Result | Size | Quality | SSIM |
|---|---|---|---|---|---|
| Barcelos, Vila Boa e Vila Frescainha (São Martinho e São Pedro) - Igreja de Nossa Senhora do Terço 01 | 3024 × 4032, 5.5 MB | 3024 × 4032 | 4.94 MB | 92 | 0.999 |
| Bloki na ulicy Goszczynskiego Sosnowiec Środula 02 | 4032 × 3024, 9.7 MB | 4032 × 3024 | 4.88 MB | 95 | 0.996 |
| Boston Basilica interior 02 | 5425 × 4063, 4.0 MB | 5425 × 4063 | 4.02 MB | 90 | 1.000 |
| -i---i- (54245759081) | 3024 × 4032, 3.8 MB | 3024 × 4032 | 1.92 MB | 94 | 1.000 |
| Carinda Roman Catholic Church 09-08-2024 | 3530 × 2667, 1.5 MB | 3530 × 2667 | 1.48 MB | 90 | 1.000 |
| China Merchants Bank Building in Shanghai at night 02 | 3024 × 4032, 2.7 MB | 3024 × 4032 | 1.89 MB | 94 | 1.000 |
| 8787 Georgia Avenue 09 | 5074 × 3781, 4.0 MB | 5074 × 3781 | 4.02 MB | 90 | 1.000 |
| -i---i- (51970200648) | 4032 × 3024, 5.6 MB | 4032 × 3024 | 3.03 MB | 95 | 0.998 |
| 20230807 145136 August 2023 in Białystok | 3024 × 4032, 1.5 MB | 3024 × 4032 | 1.53 MB | 89 | 1.000 |
| 'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent | 4588 × 3347, 13.6 MB | 4588 × 3347 | 4.97 MB | 87 | 0.999 |
| Moscow 2025-11-20 05 | 8064 × 6048, 26.0 MB | 8064 × 6048 | 5.0 MB | 64 | 0.997 |
| Parks Mall at Arlington Atrium (2024) | 5712 × 4284, 13.6 MB | 5712 × 4284 | 4.85 MB | 91 | 0.999 |
| BorNE.DOMB-LEPA.v-02 | 2268 × 4032, 4.8 MB | 2268 × 4032 | 4.37 MB | 96 | 1.000 |
| 20230806 191612 August 2023 in Białystok | 4032 × 3024, 1.4 MB | 4032 × 3024 | 1.38 MB | 89 | 1.000 |
| Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins | 4032 × 3024, 4.4 MB | 4032 × 3024 | 4.24 MB | 95 | 1.000 |
| Operação Lais de Guia GLO 2023 (53316687826) | 4032 × 3024, 1.7 MB | 4032 × 3024 | 1.65 MB | 92 | 1.000 |
| Aulangon näkötorni heinäkuussa 2023 | 2268 × 4032, 2.8 MB | 2268 × 4032 | 2.54 MB | 94 | 1.000 |
| Buca metrosu temel atma töreni 02 | 4032 × 3024, 2.0 MB | 4032 × 3024 | 2.03 MB | 93 | 1.000 |
| 39 Harleyford Road | 3024 × 4032, 4.7 MB | 3024 × 4032 | 4.24 MB | 93 | 1.000 |
| Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 2026 | 3731 × 6636, 4.3 MB | 3731 × 6636 | 4.29 MB | 93 | 1.000 |
Last updated
JPG vs WebP vs AVIF at 5MB
The format test at 5 MB gives the same file sizes as at 3 MB, because all three formats reached their top quality first: JPG a median 2538 KB, WebP 2151 KB and AVIF 2380 KB on six phone photos, SSIM 0.999, 0.997 and 0.998. JPG took 1.1 s against 10.4 s and 46 s. Passport portals ask for JPEG, so JPG is the only real choice.
Same method, on 6 of the phone photos: the highest quality that fits, scaling down only when quality would drop below 50. WebP and AVIF were encoded with libwebp and libavif in the browser.
| Format | Under 5MB | Width | Pixels kept | SSIM | File size | Encode time |
|---|---|---|---|---|---|---|
| JPG | 6 of 6 | 3024 px | 100% | 0.999 | 2.54 MB | 1.1 s |
| WebP | 6 of 6 | 3024 px | 100% | 0.997 | 2.15 MB | 10.4 s |
| AVIF | 6 of 6 | 3024 px | 100% | 0.998 | 2.38 MB | 46.1 s |
Last updated
Where you'll meet a 5MB limit
Most 5 MB limits below are official photo uploads: digital passport photos for Canada (200 KB minimum), New Zealand (250 KB minimum) and Hong Kong, and Estonia's diplomatic ID photo, which must be at least 1 MB. The others are document attachments for Australian visas, Google Business Profile photos and Notion's free plan.
Our results meet all of those minimums: the smallest phone photo came out at 1383.5 KB.
- Immigration, Refugees and Citizenship Canada (Passport Program): Digital passport photo for online Canadian passport renewal (maximum). “be between 200 KB and 5 MB in size.” Canada.ca: Passport photo requirements
- Department of Home Affairs (Australia): Documents attached to an online visa, sponsorship or nomination application in ImmiAccount (maximum). “You can attach files up to 5MB in size with the following extensions: bmp, dcm, doc, docx, dot, gif, jpg, pdf, png, ppt, pptx, rtf, txt, xls, xlsx.” Home Affairs ImmiAccount help text: Attach documents
- Google (Google Business Profile): Photos added to a Google Business Profile (maximum). “Size: Between 10 KB and 5 MB.” Google Business Profile Help: Tips for business-specific photos on your Business Profile
- Notion: File/image upload on the Notion Free Plan (maximum). “If you're on the Free Plan, all files you upload must be under 5MB.” Notion Help Center: Images, files & media in Notion
- Department of Internal Affairs – New Zealand Passports: Digital photo for an online New Zealand passport application (maximum). “between 250KB and 5MB in size” New Zealand Passports: Passport photos
- Immigration Department (Hong Kong SAR): Digital photograph submitted online or via the ImmD mobile app for a passport application (maximum). “Image type: JPEG File size: 5MB or below” Hong Kong ImmD: Photograph Requirements for Travel Document
- Ministry of Foreign Affairs of Estonia (State Protocol Department): Digital document photo for an Estonian diplomatic ID card application (maximum). “The file size of the document photo must be at least 1 MB and a maximum of 5 MB” Estonian MFA: Requirements for a photo (PDF, vm.ee, 2025-11)
Tips for getting a good image at 5MB
- Under 5 MB already? Upload it as it is, unless you want its GPS position removed; for a JPG, that is all this page changes.
- Passport photo rules on framing, background and pixel size matter far more than the 5 MB cap; crop with Crop image to the required proportions first.
- For a 48 MP photo you need to keep in full, this page works; for email, the 2 MB page is plenty for viewing.
- On Notion's free plan, each file must be under 5 MB, so compress photos one at a time.