When an image under 500 KB helps
- Hero and gallery images for websites
- Photos for rental, real estate and classified listings
- Several photos in one email
For websites, 500 KB is an upper bound rather than a goal: if an image only appears small on the page, a smaller target such as 200 KB means less to download for every visitor.
For email, the limit that counts is the one for the whole message. Gmail allows 25 MB per message for personal accounts, and attachments travel Base64 encoded, which turns every 3 bytes into 4 characters.
How much picture fits in 500 KB
500 KB is 500,000 bytes, or 4,000,000 bits. Spread over a picture, that is 5.33 megapixels at 0.75 bits per pixel, where Wallace's guide puts excellent quality, 8 megapixels at 0.5 bits (good to very good) and 16 megapixels at 0.25 bits (moderate to good).
| Shape | Excellent0.75 bits per pixel | Good0.5 bits per pixel | Moderate0.25 bits per pixel |
|---|---|---|---|
| Square, 1:1 | 2,310 × 2,310 | 2,830 × 2,830 | 4,000 × 4,000 |
| Landscape, 4:3 | 2,670 × 2,000 | 3,270 × 2,450 | 4,620 × 3,470 |
| Landscape, 3:2 | 2,830 × 1,890 | 3,460 × 2,310 | 4,900 × 3,270 |
| Wide, 16:9 | 3,080 × 1,730 | 3,770 × 2,120 | 5,330 × 3,000 |
A 12-megapixel photo (4,032 × 3,024) would get only 0.33 bits per pixel at full size, in the moderate to good band. For 0.5 bits per pixel it has to shrink to about 3,270 × 2,450, 81% of its width and 66% of its pixels.
| Image size | Bits per pixel | Expected quality |
|---|---|---|
| 1,920 × 1,080Full HD, 16:9 | 1.93 | Hard to tell from the original |
| 2,560 × 1,440QHD, 16:9 | 1.09 | Excellent |
| 3,000 × 2,0006 MP, 3:2 | 0.67 | Good to very good |
| 4,032 × 3,02412 MP, 4:3 | 0.33 | Moderate to good |
| 6,000 × 4,00024 MP, 3:2 | 0.17 | Below the rated range, better scaled down |
Quality bands from section 4.5 of Gregory Wallace's paper on the JPEG standard, which rates color images of moderate detail from 0.25 bits per pixel up. The pixel sizes are rounded to tens. The tool measures the real file size, so the result always lands under 500 KB.
500 KB in bytes
The tool counts 500 KB as 500,000 bytes and stays below that. Counted in units of 1,024 bytes, the same file is 488.28 KB or 0.477 MB, so it passes a form that counts either way.
Getting an image under 500 KB
Drop one or more images above. The target is already set to 500 KB. For each image the tool tries JPG qualities from 92 down to 50 at the full pixel size, and only scales the picture down, at quality 75, when even quality 50 is too large. Change the target or switch to WebP and every image is redone.
Need a different limit? One size down is 200 KB, one size up 1 MB. The Compress Image to Target Size tool takes any number. To shrink by quality instead of a fixed size, use the image compressor; for exact pixel dimensions, the image resizer; and to crop to a shape a form asks for, the image cropper.
Sources
- Gmail Help: attachment size limits
- RFC 2045, section 6.8: Base64 content-transfer-encoding
- Gregory K. Wallace: The JPEG Still Picture Compression Standard, section 4.5 (copy hosted by the National University of Singapore)
Frequently asked questions
How much of a 12-megapixel photo survives at 500 KB?
500 KB holds about 8 megapixels at good JPEG quality, for example 3,270 × 2,450 pixels in 4:3 or 2,830 × 2,830 as a square. A 12-megapixel photo has 12,192,768 pixels, 1.5 times as many, so the tool scales it down once quality 50 at full size is still too large. These figures follow Wallace's guide for color photos of moderate detail; quality varies with the content of the picture.
How many 500 KB photos fit in one Gmail message?
Between 37 and 52, depending on how the limit is counted. Gmail allows 25 MB per message for personal accounts. Base64 encoding turns every 3 bytes into 4 characters, so a 500,000-byte photo takes about 666,700 bytes in the message: 37 of those fit into 25,000,000 bytes, 39 into 25 × 1,048,576. Counting the plain files instead gives 50 or 52.
Is 500 KB the same as half a megabyte?
Yes, in decimal units: 500,000 bytes is 0.5 MB. Counted in units of 1,024 bytes it is 488.3 KB or 0.48 MB, which is why a computer may show a smaller number for the same file. The tool stays under 500,000 bytes, so it passes either way.
Are my images uploaded to compress them to 500 KB?
No. Your browser decodes each image, tries different quality settings and sizes, and writes the result on your own device. Nothing is sent to a server.