Compress Image to 2MB — Free, Fast & Private
A 2 MB cap is not tied to one exam or one government; it is simply a round number that a great many upload forms, help desks, job portals and community sites settle on. When a photo is over it, the form refuses it and you are left looking for the smallest change that gets it through. This page makes that change — and the sections below explain how much a 2 MB file can hold, where the official photo specifications we track sit relative to it, and why 2 MB is sometimes the wrong target.
What fits in 2 MB — measured on this page
We dropped five real files on the compressor above and kept what it handed back. 5 of 5 came out under 2 MB.
| File | Before | After, on this page | Under 2 MB? |
|---|---|---|---|
| 12 MP phone photo | 4032 × 3024 px · 3.73 MB | 4032 × 3024 px · 1.85 MB | Yes |
| Portrait / headshot | 3264 × 4653 px · 2.25 MB | 3264 × 4653 px · 1.83 MB | Yes |
| Scanned handwritten page | 3349 × 4281 px · 2.17 MB | 3349 × 4281 px · 1.71 MB | Yes |
| Scanned signature | 2041 × 617 px · 109.1 KB | 2041 × 617 px · 102.1 KB | Yes |
| Screenshot (PNG) | 1280 × 800 px · 88.1 KB | 1280 × 800 px · 108.8 KB — larger than the original (PNG made into JPG) | Yes |
Measured 2026-10-06 in Chromium 145.0.7632.6 with this page’s own settings. The photos are public-domain and CC0 files from Wikimedia Commons; the screenshot is our own. Sizes read as the tool shows them (1 KB = 1,024 bytes); the target itself is 2,000,000 bytes, which is under 2 MB on either reading.
How much photo fits in 2,000,000 bytes
The honest way to judge a file-size limit is per pixel. An uncompressed colour pixel takes 24 bits. Spread 2,000,000 bytes across photos from three common sensor sizes and the budget per pixel works out like this:
| Photo | Pixels | 2,000,000 × 8 ÷ pixels |
|---|---|---|
| 12 MP, 4000 × 3000 | 12,000,000 | 1.33 bits per pixel |
| 24 MP, 6000 × 4000 | 24,000,000 | 0.67 bits per pixel |
| 48 MP, 8000 × 6000 | 48,000,000 | 0.33 bits per pixel |
Each step up the table doubles the pixel count and so halves the budget for each pixel. A 12-megapixel photo gets 1.33 bits per pixel inside 2 MB; a 48-megapixel photo gets a quarter of that, 0.33. That is the whole reason a high-resolution photo is harder to bring under the same cap: the compressor has to describe four times as many pixels with the same number of bytes. How real photographs actually came out on this page is in the measured table above.
Quality first, pixels only if needed
The compressor tries to keep every pixel. It holds the photo at its full size and lowers JPEG quality, looking for the highest quality that still fits under 2,000,000 bytes. Only when its lowest quality setting still misses does it reduce the pixel dimensions — and then it tells you so and shows the new width and height. It does not promise to keep full resolution, because for a very large photo at this target it sometimes cannot.
If the photo is going somewhere that will display it smaller anyway — a profile, a listing, a web page — you lose nothing by resizing it to that size first. Fewer pixels means more bits for each one, so the same 2 MB holds the picture at a higher quality.
Where 2MB is enough, and where it is too much
Official photo specifications usually set their own limit, and it is rarely exactly 2 MB. Here is where four of the ones we track sit against a 2,000 KB file:
| Photo | File size | A 2,000 KB file is |
|---|---|---|
| Canada visa & passport photo | up to 4096 KB | under the cap |
| Singapore visa photo | up to 8192 KB | under the cap |
| Australia visa & passport photo | 50–1024 KB | over the cap |
| Germany passport photo | 50–1024 KB | over the cap |
For Canada and Singapore, whose caps are 4096 KB and 8192 KB, a 2 MB file sits under the limit — but file size is not what those specifications are really about. Each fixes a pixel size too: Canada’s passport frame is 50×70 mm, which is 591×827 pixels at 300 DPI, and Singapore’s e-Service upload is 400 × 514 pixels. Even with no compression at all, 591 × 827 × 3 bytes is 1,466,271 bytes, already under 2,000,000; a photo cropped to either frame meets 2 MB before the compressor does anything. For Australia (50–1024 KB) and Germany (50–1024 KB), a 2 MB file is over the cap; use the 1MB page or the visa photo compressor, and note that both also set a floor at the other end. None of this tells you a portal will accept a file — only what the file measures against the figures we hold.
The one record that does stop at 2MB
One specification we track ends close to this page’s target: a Japanese passport application made from abroad, through an embassy or consulate, at 20–2048 KB. The record’s note is worth reading in full: “Applying from abroad, MOFA accepts jpg, jpeg, bmp and png and 20 KB to 2 MB. The upload is recompressed, so a file near the top of that range can still be refused after compression.” Two lessons follow. First, 2048 KB written in binary units is 2,097,152 bytes, and this page’s 2,000,000-byte target sits under it in either reading. Second, landing just under a ceiling is not the same as landing safely under it when the receiving system re-encodes what you send. If a form warns about recompression, or you simply want headroom, aim lower — the 1MB page is a step down — and keep the floor in mind: from abroad it is 20 KB.
The same record shows how much a location can change the rule. Applying from inside Japan, the cap is 600 KB instead — covered on the 600KB page. A file-size line is only ever true for one form, one route and one year; check the one in front of you.
Two things that make a 2MB file fail
Which megabyte. This page counts 1 MB as 1,000,000 bytes, so it aims under 2,000,000. A system that counts in binary units allows 2,097,152 bytes for “2 MB”. Aiming at the smaller figure satisfies both readings, so you do not have to know which one the form uses.
The wrong format. Plenty of forms that say “2 MB” also say “JPG only”. An iPhone photo saved as HEIC can be refused whatever its size; this tool reads HEIC and writes a real JPEG. JPEG has no transparency, so a PNG with a transparent background will come out with a solid one.
Everything happens in your browser. The photo is never uploaded to a server while it is being compressed.
