KB, MB and pixels: why forms reject your photo

"File size must be between 20 KB and 50 KB." "Image must be 200 × 230 pixels." Here's what those numbers mean and how they relate, so you can meet any upload rule.

KB and MB measure the file, not the picture

A kilobyte (KB) is about a thousand bytes of data, and a megabyte (MB) is about a thousand kilobytes. Most upload forms count 1 KB as 1024 bytes and 1 MB as 1024 KB, so a 2 MB limit means 2,097,152 bytes. A typical phone photo is 2–5 MB, which is 2,000–5,000 KB. That's why a 50 KB limit means shrinking the file by around 99%.

Pixels measure the picture

Pixel dimensions, like 200 × 230, describe how many dots wide and tall the image is. A modern phone photo is around 4000 × 3000 pixels. Fewer pixels usually means a smaller file, but the two aren't locked together: the same 600 × 600 photo can be 30 KB or 300 KB depending on compression.

Compression is the third dial

JPEG and WebP files are compressed: they throw away detail your eye is unlikely to notice. A higher quality setting keeps more detail and produces a bigger file. Photos with lots of fine texture, like hair, foliage or noisy low-light shots, need more KB than smooth ones at the same quality and pixel size.

Why photos get rejected

Centimetres, inches and DPI

Some notices give sizes in centimetres, such as 3.5 × 4.5 cm. To turn that into pixels, you need a resolution in dots per inch (DPI). At the common print standard of 300 DPI, 1 cm is about 118 pixels, so 3.5 × 4.5 cm becomes 413 × 531 pixels. Kilobyte Press does this conversion for you when you set Units to cm or mm.

Meeting every rule at once

Enter all of the form's requirements in the tool: width, height, the KB range and the format. It crops to the exact pixels, searches for the highest quality that fits under the maximum, pads the file if it's under the minimum, and tells you when the result meets the requirement before you download it.

More guides