Files never leave your device

Pixels to KB: Why There's No Fixed Conversion

Updated · PixKB

"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.

40 KB – 61 KB

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, dimensionsJPEG q60q75q85q95PNG
Portrait, 413 × 53127.0 KB34.6 KB45.9 KB82.6 KB340.9 KB
Cat fur, 413 × 53121.9 KB28.5 KB38.1 KB68.6 KB309.3 KB
Coffee cup, 413 × 53128.1 KB37.0 KB50.0 KB90.8 KB373.9 KB
Portrait, 600 × 60038.0 KB48.9 KB65.7 KB120.1 KB529.3 KB
Cat fur, 600 × 60031.5 KB40.8 KB54.4 KB98.3 KB461.3 KB
Coffee cup, 600 × 60041.9 KB55.5 KB75.4 KB139.0 KB604.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:

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 "350 × 467 px, under 20 KB" for the Pakistan passport photo. Work in this order:

  1. 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).
  2. Save as JPEG, unless the form insists on PNG.
  3. If the form fixes the pixel size, keep it and lower the quality. Going below the required dimensions causes "invalid dimensions" errors. If the form sets no pixel size, a smaller picture at good quality looks better than a full-size one squeezed to very low quality.
  4. 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 this for you, entirely in your browser: it searches quality settings until the real file lands just under your target, and if quality alone would look blocky, it finds the largest pixel size that fits at good quality. To keep an exact pixel size, resize first and tap Keep editing this result, or use a form preset.

The other direction: what pixel size fits a KB limit

We compressed five real full-size photos to common limits with PixKB and recorded the pixel size it chose. The busier the picture, the fewer pixels fit:

Photo10 KB20 KB50 KB100 KB200 KB
Portrait, plain wall (26 MP)251×376 px386×579 px676×1013 px1040×1559 px1581×2372 px
Indoor selfie (24 MP)202×303 px321×481 px606×909 px997×1496 px1584×2377 px
Busy street market (24 MP)144×216 px240×360 px373×559 px515×773 px800×1200 px
Group photo outdoors (24 MP)216×144 px348×232 px599×400 px868×579 px1379×920 px
Clear sky, little detail (12 MP)846×1127 px1208×1610 px1860×2480 px2490×3320 px3024×4032 px

Test photos: free-to-use Unsplash photos (12–26 megapixels; Unsplash re-encodes its downloads); PixKB Exact KB, "At or under target", desktop Chromium on our test server, October 2026. Pixel sizes are what the tool chose to fit, and can differ slightly between browsers; bytes are exact. Sizes in decimal KB (1 KB = 1,000 bytes).

So "how many pixels is 50 KB?" has a range for an answer: about 210,000 pixels for a busy street scene (373×559) and 685,000 for a portrait against a plain wall (676×1013).

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. PixKB's tools handle this for you: a maximum of 50 KB means at most 50,000 bytes, and a minimum means at least 51,200 bytes, so the file passes either way.

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 file to about a quarter. If a form requires specific dimensions, keep them and lower the JPEG quality instead.

How many pixels is 50 KB?

It depends on the picture. In our tests on real photos, 50 KB held about 210,000 pixels for a busy street scene (373×559) and about 685,000 for a portrait on a plain wall (676×1013). At a fixed quality, the earlier table gives 413×531 or 600×600 as typical 50 KB sizes.

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.

Related