Pixels to KB: Why There's No Fixed Conversion
"Convert pixels to KB" is one of the most searched questions about image sizes, and it has an awkward honest answer: pixels and kilobytes measure different things. Pixels are how many dots the picture has. Kilobytes are how much storage the file takes after it has been compressed. The same 600 × 600 photo can be 30 KB or 500 KB depending on the format, the compression quality and how much detail is in the picture.
What you can do is estimate the range, and that is usually enough to answer the real question: "will my photo fit under the form's limit?" The estimator below uses sizes we measured, not a made-up formula.
Estimate a JPEG's file size from its pixel dimensions. Runs in your browser.
Want the exact size instead of an estimate? Compress your photo to an exact KB target: it measures the real file as it goes.
What we measured
We resized three real photographs (a portrait, a close-up of a cat's fur, and a coffee cup with smooth tones) to two common form sizes and saved each as JPEG at four quality levels and as PNG. These are the actual file sizes:
| Photo, dimensions | JPEG q60 | q75 | q85 | q95 | PNG |
|---|---|---|---|---|---|
| Portrait, 413 × 531 | 27.0 KB | 34.6 KB | 45.9 KB | 82.6 KB | 340.9 KB |
| Cat fur, 413 × 531 | 21.9 KB | 28.5 KB | 38.1 KB | 68.6 KB | 309.3 KB |
| Coffee cup, 413 × 531 | 28.1 KB | 37.0 KB | 50.0 KB | 90.8 KB | 373.9 KB |
| Portrait, 600 × 600 | 38.0 KB | 48.9 KB | 65.7 KB | 120.1 KB | 529.3 KB |
| Cat fur, 600 × 600 | 31.5 KB | 40.8 KB | 54.4 KB | 98.3 KB | 461.3 KB |
| Coffee cup, 600 × 600 | 41.9 KB | 55.5 KB | 75.4 KB | 139.0 KB | 604.1 KB |
Method: baseline JPEG encoded with libjpeg (Python Pillow), no metadata. Browsers and phone cameras use different encoders, so expect real files to differ by roughly 10–20%. A noisy or very detailed photo (grass, hair, low light) lands at the top of these ranges or above.
Three things stand out:
- Quality matters more than people expect. Going from quality 75 to 95 roughly doubles the file with little visible difference at form-photo sizes.
- PNG is the wrong format for photos. Every PNG above is 7–10× its JPEG. If a form says "under 50 KB" and accepts JPG, a PNG photo almost never fits. (See JPG vs PNG for forms.)
- Content changes the size by a third or more. The smooth coffee cup was the largest here because of its fine background texture. You can't predict a single number from pixels alone.
The rule of thumb
For a typical JPEG photo at medium quality, budget about 0.11–0.17 KB per 1,000 pixels (our measured range at quality 75). Multiply the width by the height, divide by 1,000, and multiply by that range:
600 × 600 = 360,000 pixels → 360 × 0.11 to 360 × 0.17 = about 40–61 KB.
The uncompressed size is easy to calculate exactly: width × height × 3 bytes (one byte each for red, green and blue). 600 × 600 is 1,080,000 bytes, about 1,055 KB. JPEG typically shrinks a photo to 4–6% of that. That's the only "pixels to KB" conversion that is a fixed formula, and no form asks for uncompressed files.
How to hit a form's KB limit
Forms usually state both a pixel size and a KB limit, for example "600 × 600 px, under 240 KB" for the US visa photo, or "3.5 × 4.5 cm, 20–50 KB" for many South Asian exam forms. Work in this order:
- Get the dimensions right first. If the form gives centimetres, convert them with the cm to pixels calculator (3.5 × 4.5 cm is 413 × 531 px at 300 DPI).
- Save as JPEG, unless the form insists on PNG.
- Lower the quality, not the dimensions, to get under the limit. Shrinking the pixel size below what the form asks for causes "invalid dimensions" errors.
- Check the minimum too. Many forms reject files that are too small ("at least 20 KB"). If yours is under, increase the KB size without changing the pixels.
PixKB's exact-KB compressor does steps 2–4 for you: it searches quality settings until the real file lands just under your target, entirely in your browser.
Why "KB to KB converter" isn't a thing either
People also search for a "KB to KB converter" when a form wants a different size than they have. What they need is a compressor (to go down) or a size increaser (to go up). Kilobytes don't convert into other kilobytes; the file has to be re-encoded at a different quality.
One more unit trap: some portals count 1 KB as 1,000 bytes, others as 1,024. A file of 50,500 bytes is "50.5 KB" on one system and "49.3 KB" on another. When a limit is tight, aim a few KB under it.
Frequently asked questions
How many KB is a 600 × 600 pixel image?
As a JPEG at medium quality, typically about 40–61 KB (we measured 41–56 KB on three test photos). At very high quality it can exceed 100 KB, and as a PNG it is often around 450–600 KB.
Is there a formula to convert pixels to KB?
Only for uncompressed images: width × height × 3 bytes. Real JPEG and PNG files are compressed, so their size depends on quality and content. Use an estimate range, or compress to an exact target.
Does reducing pixels reduce KB?
Yes, roughly in proportion to the pixel count: halving both width and height cuts the pixels, and usually the file size, to about a quarter. But if a form requires specific dimensions, lower the JPEG quality instead.
How many pixels is 50 KB?
There's no fixed answer, but at medium JPEG quality a 50 KB budget fits roughly 300,000–450,000 pixels, for example 600 × 600 or 413 × 531 with room to spare.
Why is my small photo still too many KB?
Usually because it's a PNG, it was saved at maximum quality, or it carries large metadata (such as a phone's embedded preview). Re-saving as JPEG at medium quality typically fixes it.