Home › Guides
KB vs MB, pixels and DPI: what form limits really mean
A form says "photo under 20 KB, 200 × 230 pixels, 300 DPI" and suddenly there are three different measurements. Here is what each one means, how they relate, and which one you actually need to fix.
KB and MB: file weight
KB (kilobyte) and MB (megabyte) measure how much storage a file takes, not how big the picture looks. A byte is the basic unit. Roughly:
| Unit | Decimal meaning | Binary meaning |
|---|---|---|
| 1 KB | 1,000 bytes | 1,024 bytes |
| 1 MB | 1,000 KB = 1,000,000 bytes | 1,024 × 1,024 = 1,048,576 bytes |
| 20 KB | 20,000 bytes | 20,480 bytes |
| 50 KB | 50,000 bytes | 51,200 bytes |
A photo straight from a phone camera is often a few MB. That's a hundred or more times bigger than a 20 KB limit, which is why you can't just attach it.
Why 1 KB can be 1,000 or 1,024 bytes
Computers work in powers of two, and 210 = 1,024 is close to 1,000, so for years "kilobyte" was used for 1,024 bytes. Standards bodies later fixed the names: kilo means 1,000, and the binary unit is the kibibyte (KiB), 1,024 bytes. The US National Institute of Standards and Technology (NIST) notes that both meanings are still in use.
Even your own devices disagree. Windows File Explorer counts 1,024 bytes as a "KB", while current iPhones and Macs count 1,000 (Apple says only older versions, such as iOS 10 and earlier, used the binary system). So the same file can show slightly different sizes on your phone and your PC. Upload portals don't say which one they use, and that matters near the limit:
- A file of 20,300 bytes is 20.3 KB at 1,000 bytes per KB, so a 20 KB check that counts that way rejects it.
- The same file is 19.8 KB at 1,024, so a portal that counts that way accepts it.
To be safe both ways, our tool treats your maximum as 1,000 bytes per KB and stops slightly below it. A file it makes for "20 KB" is under 20,000 bytes, so it passes either kind of check.
Why forms limit file size
Recruitment and exam portals collect photos from thousands, sometimes lakhs, of applicants. Small files keep storage and server load manageable, upload faster on slow mobile connections, and are enough to print a photo on an admit card or roll number slip. A passport-sized photo does not need millions of pixels to be recognisable.
Pixels: picture size
Pixels are the dots that make up the image. "200 × 230 pixels" means 200 dots wide and 230 tall. Pixels decide the shape and how much detail the picture can hold.
Pixels and KB are related but not the same thing. Two photos with exactly the same pixel size can have very different file sizes:
- A face on a plain white wall compresses into far fewer bytes than the same face in front of a patterned curtain.
- JPG quality matters. Lower quality throws away fine detail and shrinks the file, without changing the pixel size.
That's why our tool lowers JPG quality first and reduces pixels only if it has to. If you choose a fixed pixel size, it keeps those pixels and changes only quality, unless even the lowest quality is still too big.
DPI: a printing label
DPI (dots per inch) tells a printer how many pixels to fit in each inch of paper. It doesn't change the pixels or the file size on its own. A 413 × 531 px photo is the same file whether it's labelled 72 or 300 DPI; only the printed size changes.
DPI matters when a form gives a size in cm, mm or inches. To convert: pixels = (mm ÷ 25.4) × DPI. At 300 DPI, the usual print standard:
| Printed size | At 300 DPI | Preset in our tool |
|---|---|---|
| 35 × 45 mm (passport) | 413 × 531 px | Passport 35×45 mm |
| 2 × 2 inch | 600 × 600 px | 2×2 inch |
| 3.5 × 4.5 cm | 413 × 531 px | Passport 35×45 mm |
| Signature 140 × 60 px | about 12 × 5 mm if printed | Signature 140×60 px |
For any other size, choose Custom and enter it in cm, mm or inches; the tool converts at 300 DPI.
Which number should you fix first?
- Shape and pixels, if the form gives them. Crop first, then pick a preset or Custom.
- KB limit next. Set the maximum, and the minimum if there is one.
- DPI only if the form gives a printed size; otherwise ignore it.
For a walk-through on mobile, see resizing a photo to 20 KB on your phone. For Pakistani portals, see photo sizes for FPSC, PPSC, NTS and passport forms.
Questions
Is 1 KB 1,000 or 1,024 bytes?
Both are used. Standards define a kilobyte as 1,000 bytes and a kibibyte as 1,024, but many programs still call 1,024 bytes a KB. Since portals don't say which they use, keep your file under the limit counted as 1,000 bytes per KB.
How many KB are in 1 MB?
1,000 KB in decimal units, or 1,024 KB in binary units. Either way, a 1 MB photo is about 50 times bigger than a 20 KB limit.
Does changing DPI reduce file size?
No. DPI is only a printing label. To reduce file size you need to lower JPG quality, crop, or reduce the pixel dimensions.
What is 35 × 45 mm in pixels?
At 300 DPI it is 413 × 531 pixels. A 2 × 2 inch photo at 300 DPI is 600 × 600 pixels.
Sources
- NIST, Prefixes for binary multiples: https://physics.nist.gov/cuu/Units/binary.html
- Apple Support, How storage capacity is measured on Apple devices: https://support.apple.com/en-us/102119