Compress Image to 5MB

Compress a photo to under 5 MB. All 20 phone photos in our test, even 48 MP, kept full resolution; the 14 that already fitted kept every pixel untouched.

How to use Compress Image to 5MB

  1. 1Upload a JPG, PNG, or WebP image.
  2. 2Pixohub automatically searches for the highest quality that fits under 5MB.
  3. 3Check the resulting file size shown on the page.
  4. 4Download your image, now 5MB or smaller.

Features

  • Automatically targets 5MB — no manual guessing
  • Keeps quality as high as the size budget allows
  • Runs entirely in your browser; nothing is uploaded
  • Free, unlimited, no signup or watermark

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.

PhotosUnder 5MBFile sizeWidthPixels keptJPG qualitySSIMTime
iPhone photos, 12–48 MP20 of 204.02 MB4032 px100%931.000 (lowest 0.996)1.7 s
Web-size photos, 768 × 51224 of 24155.9 KB768 px100%950.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.

PhotoOriginalResultSizeQualitySSIM
Barcelos, Vila Boa e Vila Frescainha (São Martinho e São Pedro) - Igreja de Nossa Senhora do Terço 013024 × 4032, 5.5 MB3024 × 40324.94 MB920.999
Bloki na ulicy Goszczynskiego Sosnowiec Środula 024032 × 3024, 9.7 MB4032 × 30244.88 MB950.996
Boston Basilica interior 025425 × 4063, 4.0 MB5425 × 40634.02 MB901.000
-i---i- (54245759081)3024 × 4032, 3.8 MB3024 × 40321.92 MB941.000
Carinda Roman Catholic Church 09-08-20243530 × 2667, 1.5 MB3530 × 26671.48 MB901.000
China Merchants Bank Building in Shanghai at night 023024 × 4032, 2.7 MB3024 × 40321.89 MB941.000
8787 Georgia Avenue 095074 × 3781, 4.0 MB5074 × 37814.02 MB901.000
-i---i- (51970200648)4032 × 3024, 5.6 MB4032 × 30243.03 MB950.998
20230807 145136 August 2023 in Białystok3024 × 4032, 1.5 MB3024 × 40321.53 MB891.000
'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent4588 × 3347, 13.6 MB4588 × 33474.97 MB870.999
Moscow 2025-11-20 058064 × 6048, 26.0 MB8064 × 60485.0 MB640.997
Parks Mall at Arlington Atrium (2024)5712 × 4284, 13.6 MB5712 × 42844.85 MB910.999
BorNE.DOMB-LEPA.v-022268 × 4032, 4.8 MB2268 × 40324.37 MB961.000
20230806 191612 August 2023 in Białystok4032 × 3024, 1.4 MB4032 × 30241.38 MB891.000
Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins4032 × 3024, 4.4 MB4032 × 30244.24 MB951.000
Operação Lais de Guia GLO 2023 (53316687826)4032 × 3024, 1.7 MB4032 × 30241.65 MB921.000
Aulangon näkötorni heinäkuussa 20232268 × 4032, 2.8 MB2268 × 40322.54 MB941.000
Buca metrosu temel atma töreni 024032 × 3024, 2.0 MB4032 × 30242.03 MB931.000
39 Harleyford Road3024 × 4032, 4.7 MB3024 × 40324.24 MB931.000
Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 20263731 × 6636, 4.3 MB3731 × 66364.29 MB931.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.

FormatUnder 5MBWidthPixels keptSSIMFile sizeEncode time
JPG6 of 63024 px100%0.9992.54 MB1.1 s
WebP6 of 63024 px100%0.9972.15 MB10.4 s
AVIF6 of 63024 px100%0.9982.38 MB46.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.

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.

Frequently asked questions

My photo is 4 MB. Should I still run it through?

Only if you want its metadata gone. A JPG that already fits is not re-encoded: the tool removes the GPS position, camera details and any hidden extra image, keeps the orientation, and returns the same pixels. All 14 of our photos that started under 5 MB came back smaller, none larger.

Does a 48 MP photo fit in 5 MB at full resolution?

Yes, in our test. The 8064 × 6048, 26 MB original came out at 4996.3 KB with all its pixels, at JPG quality 64 and SSIM 0.997. Very detailed 48 MP or 50 MP shots could need slight scaling; the tool does that automatically.

Will this pass the Canadian passport photo rule?

The size rule, yes: Canada asks for 200 KB to 5 MB, and our phone results ranged from 1383.5 KB to 4996.3 KB. The photo must also meet Canada's framing and background rules, which this tool does not check.

Is compressing to 5 MB slower than to 3 MB?

No, in our test it was faster: a median 1.7 s against 2.2 s at 3 MB on an Apple M2 Mac. Most photos already fitted, and stripping metadata from a JPG is much quicker than decoding and re-encoding it. Large originals still take several seconds, up to 5.8 s here.

More ways to compress

Batch: compress many images at once

Same processing as above, run across a set of files. Pro returns the whole batch as one ZIP. Still entirely in your browser.

Free · up to 20

PRONeed more than 20 at a time?

Pro runs up to 150 images per batch as one ZIP, keeps your brand mark on every export, and lifts the file ceiling to 200 MB.

Unlock with Pro