Updated · how we check
Compress an image to 2 MB
To get an image under 2 MB, PixelFit aims at 2,000,000 bytes or less, so forms counting a megabyte as 1,000,000 or 1,048,576 bytes both accept it. A full 12 MP phone photo fits without resizing at quality 58 by our estimate (extrapolated from encodes up to 3,000 px); at quality 75 it would be about 3,432 × 2,574 (extrapolated) pixels.
Under 2 MB
JPG · under 2 MB (at most 2,000,000 bytes) · original pixel size · white background
PixelFit aims at 2,000,000 bytes or less, so the file passes whether the form counts 1 MB as 1,000,000 or 1,048,576 bytes.
Fit, background and padding white background
Saving presets is part of Pro.
The result appears here: the exact byte count, pixel size and quality, the size before and after, a preview and a download button.
The batch kit (one ZIP for up to 500 photos, several photos merged into one PDF) is part of Pro.
What 2 MB means in bytes
2 MB is 2,097,152 bytes when a megabyte is 1024 × 1024 bytes and 2,000,000 bytes when it is 1000 × 1000. For megabyte limits PixelFit aims at 2,000,000 bytes or less (2 × 1,000,000), which passes both readings, and also the 2,048,000 bytes a server gets when it counts 2,048 KB of 1000 bytes. The exact byte count is printed, so you can compare it with the form.
The safety margin costs 97,152 bytes, 5 % of the binary reading. For a 4:3 photo at quality 75 that is the difference between 3,525 × 2,643 (extrapolated) and 3,432 × 2,574 (extrapolated) pixels, so playing safe loses little.
Largest pixel size that fits 2 MB
The biggest image of each kind, in its own aspect ratio, that stays at or below 2,000,000 bytes.
| Image | JPG q60 | JPG q75 | JPG q90 | WebP q75 |
|---|---|---|---|---|
| Head-and-shoulders portrait | 5,863 × 7,322* | 4,653 × 5,811* | 3,246 × 4,054* | over 7,158 × 8,940 |
| Outdoor landscape (12 MP phone photo) | 3,993 × 2,994* | 3,432 × 2,574* | 2,619 × 1,964 | 3,817 × 2,862* |
| Scanned typed document page | 5,879 × 7,387* | 4,728 × 5,941* | 3,185 × 4,002* | over 7,136 × 8,967 |
| Handwritten letter with signature | 8,210 × 6,749* | 6,527 × 5,366* | 4,373 × 3,595* | over 8,823 × 7,253 |
A 12 MP phone photo at 2 MB
Our 12 MP landscape sample (4032 × 3024) is about 4.15 MB at quality 90 and 1.89 MB at quality 58, under 2 MB (extrapolated from encodes up to 3,000 px). Here the tool keeps every pixel and only lowers quality (it starts at 92); a noisier photo may still need a small resize.
JPEG quality for fixed pixel sizes under 2 MB
When a form fixes the pixels, only quality can move. Highest quality (of 100) that keeps each size at or under 2,000,000 bytes:
| Pixel size | Measured on | JPG | WebP |
|---|---|---|---|
| 1080 × 1080 (square social post) | landscape photo | quality 95+ (640 KB) | quality 95+ (596 KB) |
| 1920 × 1080 (Full HD frame) | landscape photo | quality 95+ (1.09 MB) | quality 95+ (1.01 MB) |
| 2480 × 3508 (A4 page at 300 DPI) | scanned typed page | quality 94 (1.89 MB) | quality 95+ (1.45 MB) |
| 3000 × 4000 (12 MP portrait frame) | portrait photo | quality 91 (1.89 MB) | quality 95+ (1.86 MB) |
| 4032 × 3024 (12 MP phone photo) | landscape photo | quality 58 (1.89 MB) | quality 66 (1.9 MB) |
| 6000 × 4000 (24 MP camera photo) | landscape photo | no: fewer pixels needed | no: fewer pixels needed |
JPG, WebP or PNG at 2 MB
At quality 75, WebP holds 3,817 × 2,862 (extrapolated) of the landscape photo in 2 MB, JPG 3,432 × 2,574 (extrapolated): 24 % more pixels. A moderate gain at 2 MB. Many portals accept only JPG/JPEG, so this page starts in JPG.
A full-colour PNG is lossless, so its size follows the content. In 2 MB it holds a flat graphic of more than 9,561 × 6,692 pixels but a photo of only 1,153 × 864, against 3,432 × 2,574 (extrapolated) as a quality-75 JPG. Reducing a PNG to a palette of up to 256 colours (PixelFit does this when a PNG must shrink) helps graphics far more than photos.
2 MB is a quality decision
With 2,000,000 bytes, a 4:3 photo at quality 90 can be 2,619 × 1,964 and a lossless PNG photo 1,153 × 864. A full 12 MP frame fits at quality 58 (extrapolated); a 24 MP camera photo (6000 × 4000) needs scaling down (extrapolated).
How to compress an image to 2 MB
-
Open the tool above
It is preset to 2 MB (2,000,000 bytes or less), JPG output.
-
Add your image
Drop, paste or pick it; a PNG, WebP or (where the browser opens it) HEIC file becomes a JPG under 2 MB.
-
Pixel size: only if asked
On auto, a 12 MP photo keeps all its pixels; quality goes to about 58 by our estimate.
-
Download and check
name-2mb.jpg comes with its byte count, pixels and quality.
Forms that ask for 2 MB
Upload specs in our dataset with exactly 2 MB. Verify with the official notice before you submit.
Sources
- Measured by PixelFit with sharp 0.35.5 / libvips 8.18.7 on 31 October 2026.
- Sample images, Wikimedia Commons, checked 31 October 2026: landscape (CC0 1.0) commons.wikimedia.org/w/index.php?curid=154070378; portrait commons.wikimedia.org/w/index.php?curid=23956389; typed page commons.wikimedia.org/w/index.php?curid=194775753; handwritten letter commons.wikimedia.org/w/index.php?curid=90423615; flag commons.wikimedia.org/w/index.php?curid=361734 (public domain).
- Binary prefixes, NIST, checked 31 October 2026: physics.nist.gov/cuu/Units/binary.html
Frequently asked questions
How do I compress an image to 2 MB?
Drop it into the tool here, preset to 2 MB. It searches JPEG quality (at most 8 encodes per pixel size), then scales pixels down if needed, until the file is 2,000,000 bytes or less. By our estimate (extrapolated), a 12 MP photo fits with all its 4032 × 3024 pixels at quality 58.
How do I compress an image to less than 2 MB without losing quality?
Give up pixels before quality: at quality 75, 2 MB holds 3,432 × 2,574 (extrapolated) of a photo and 4,653 × 5,811 (extrapolated) of a portrait; quality 90 at 3,432 × 2,574 costs 63 % more bytes.
Is 2 MB 2,000,000 or 2,097,152 bytes?
Both readings exist: 2,097,152 bytes (1 MB = 1024 × 1024) or 2,000,000 bytes (1 MB = 1000 × 1000). PixelFit aims at 2,000,000 bytes or less, which passes both.
Can I compress a PNG to 2 MB?
Yes, but a full-colour PNG photo stays big: about 1,153 × 864 pixels in 2 MB, versus more than 9,561 × 6,692 for a flat graphic. As a JPG the photo reaches 3,432 × 2,574 (extrapolated).
Does a phone photo fit 2 MB without resizing?
Yes, at a lower quality: our 12 MP sample is 4.15 MB at quality 90 and fits 2,000,000 bytes at quality 58 (1.89 MB) (extrapolated).
Related
Nearby file sizes
- Compress to 1.5 MB photo ≈ 2,918 × 2,188
- Compress to 1 MB photo ≈ 2,322 × 1,741
- Compress to 900 KB photo ≈ 2,191 × 1,643
- Compress to 3 MB photo ≈ 4,315 × 3,236
- Compress to 4 MB photo ≈ 5,076 × 3,807
- Compress to 5 MB photo ≈ 5,758 × 4,318
More ways to hit 2 MB
- JPG to PDF under 2 MB One image as a PDF
- Image resizer with KB target Any size, pixels and format
Pixel sizes that fit 2 MB
- A4 (210×297 mm) about 1.88 MB as a quality-75 JPG
- 8×12 inch print about 1.87 MB as a quality-75 JPG
- US Letter (8.5×11 in) about 1.83 MB as a quality-75 JPG
- 3840×2160 (4K UHD) about 1.8 MB as a quality-75 JPG