Your images are processed in your browser — Cloud HD (Pro, opt-in) is the only exception

Compress image to 2MB

“Maximum file size: 2 MB” is a line you will meet under many upload buttons. Bring a full-size photo under it without giving away more detail than you have to.

The tool below is set to 2MB as a JPEG. Drop a photo in; it shows the size it reached and the new pixel size if it had to change it.

Free, no signupWorks offlineNo upload, ever
📸
Drop an image to startTap to choose an image
PNG, JPG, WebP, AVIF, HEIC, BMP, SVG, GIF, TIFF
Target size · 2 MB
Pro tools Pro
Platform
Pro
Presets limit your photo’s longest side and keep its shape — nothing is cropped, so the result matches the named size only when your photo already has that shape.
ProUnlocks one-click platform presets for Instagram, LinkedIn, X, YouTube, WhatsApp, and more.See Pro plans
Responsive set
Pro
Also export as
Pro
Your Format choice is always saved. These add more copies of the same image — one per format, at each width you tick above and only at those widths — bundled in a single ZIP. Tick no width and the extra formats come at your original size.
With Pro, 1 image → up to 17 files · A width larger than your original is never upscaled, so those collapse into one file.
ProPro unlocks responsive image sets and multi-format export, packaged in a single ZIP.See Pro plans
Rename pattern
Pro
Saved presets
Pro
ProPro unlocks saved presets — bundle your responsive set, format, watermark, codec and rename template into one named profile you apply with a single click.See Pro plans
Free foreverOffline-readyImages never uploaded
Why MiniPx

Built for people who care how images travel.

100%On-device
This compressor never uploads.
Every byte processed in your browser. No copy, no trace. Cloud HD — the Pro-only option on 7 AI tools — is the one exception on the site.
50–90%Smaller
Honest compression.
Multi-pass encoding that respects your image. No silent quality cliffs.
5Files per batch
No quota. No credits. No watermark.
Five files a batch on the free tier, unlimited batches — Pro lifts the cap. Your device is the only real ceiling for compression, because your device does the work; only Pro Cloud HD runs are metered.
8Formats
Native to every modern format.
PNG · JPG · WebP · AVIF · BMP · SVG · GIF · TIFF
MiniPx
Settings
Mode
Format
Compression
Custom quality
65%
TinyMax
Max width
Privacy
EXIF data always removed
Every output drops GPS location, device info & timestamps
More tools
Everything stays on your device.
Runs in
Your browser, on your device
Upload
None — nothing is uploaded
Signup
Not needed
Watermark
None added by MiniPx
Limits
No quota. Batch tools take 5 files at a time on Free; Pro lifts the cap
Output
A file saved straight from your browser

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.

Measured results for 2 MB
FileBeforeAfter, on this pageUnder 2 MB?
12 MP phone photo4032 × 3024 px · 3.73 MB4032 × 3024 px · 1.85 MBYes
Portrait / headshot3264 × 4653 px · 2.25 MB3264 × 4653 px · 1.83 MBYes
Scanned handwritten page3349 × 4281 px · 2.17 MB3349 × 4281 px · 1.71 MBYes
Scanned signature2041 × 617 px · 109.1 KB2041 × 617 px · 102.1 KBYes
Screenshot (PNG)1280 × 800 px · 88.1 KB1280 × 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:

PhotoPixels2,000,000 × 8 ÷ pixels
12 MP, 4000 × 300012,000,0001.33 bits per pixel
24 MP, 6000 × 400024,000,0000.67 bits per pixel
48 MP, 8000 × 600048,000,0000.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:

PhotoFile sizeA 2,000 KB file is
Canada visa & passport photoup to 4096 KBunder the cap
Singapore visa photoup to 8192 KBunder the cap
Australia visa & passport photo50–1024 KBover the cap
Germany passport photo50–1024 KBover 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.

How it works

  1. Check the limit and the format: Confirm the form says 2MB and which file types it accepts. Many official photo specifications set a different cap.
  2. Resize first if the photo will be shown small: Fewer pixels leave more bytes per pixel, so the same 2MB holds more quality.
  3. Drop the photo in: The tool is set to JPEG and 2MB. It lowers quality at full size first and only reduces the pixel size if the lowest quality still misses — and tells you when it does.
  4. Download the JPEG: Check the byte count shown, then save and upload.

Frequently asked questions

Photo ko 2 MB me kaise kare?
Use the compressor at the top of this page: it is already set to a 2 MB target. Drop your photo in, let it compress, and check the size shown next to the result before you download. If it is still too big, lower the quality or the width and run it again.
Is 2MB 2,000,000 or 2,097,152 bytes?
This page aims under 2,000,000 bytes. A system using binary units allows 2,097,152 for the same "2MB", so a file under 2,000,000 fits either way.
Can a 48-megapixel photo fit in 2MB?
By arithmetic it gets 0.33 bits per pixel at that size, a quarter of a 12-megapixel photo's budget. The tool lowers quality first; if that is not enough it reduces the pixel size and tells you.
Is 2MB small enough for a visa photo?
It depends on the specification. In our records Australia caps the photo at 1024 KB and Germany at 1024 KB, so 2MB is too large there; Canada's cap is 4096 KB. Most also fix the pixel size, which matters more.
Will compressing to 2MB lower the resolution?
Only if it must. The tool changes the pixel size only when the lowest JPEG quality still misses 2MB, and shows the new size when it does.
Why is my file far under 2MB?
A 2MB target is a ceiling, not a size the file has to reach. A photo with a modest pixel count can fit at a high quality and still land well under the cap — check that the form sets no minimum above it.
Is the photo uploaded anywhere?
No. It is compressed in your browser and stays on your device.

All Image Tools

AI Tools

Compress for Platform

Solutions by use case