KB, MB and bytes: what "photo under 50 KB" really means
Updated 11 October 2026
Almost every online application form in India has a line like "photograph should be between 20 KB and 50 KB". It sounds simple, but many applicants get an "invalid file size" error even when their phone says the photo is 49 KB. This guide explains what the units mean, why two devices can report different sizes for the same file, and how to pick a safe target.
Bytes, kilobytes and megabytes
A byte is the basic unit of file size. A single letter in a plain text file takes about one byte. Images are much larger because they store colour information for thousands or millions of pixels.
- 1 KB (kilobyte) = 1000 bytes in the decimal (SI) system, or 1024 bytes in the older binary convention.
- 1 MB (megabyte) = 1000 KB (1,000,000 bytes) in decimal, or 1024 × 1024 = 1,048,576 bytes in binary.
- 1 GB (gigabyte) = 1000 MB in decimal, or 1024 MB in binary.
To remove the confusion, standards bodies introduced separate names for the binary units: KiB (kibibyte, 1024 bytes) and MiB (mebibyte, 1,048,576 bytes). In everyday life, though, most software still writes "KB" for both.
Why your phone and the portal may disagree
Different operating systems use different conventions:
- Windows File Explorer divides by 1024 but labels the result "KB".
- macOS and iOS divide by 1000.
- Android file managers vary by brand and version; many recent ones divide by 1000.
- Exam portals usually check the raw byte count on the server, and you rarely know whether their "50 KB" means 50,000 or 51,200 bytes.
The gap is only about 2.4% at the KB level, but it is exactly enough to cause trouble when your file is sitting right at the limit.
Worked example
Suppose your compressed photo is 50,500 bytes and the notice says "maximum 50 KB".
| Where you check | Calculation | Size shown |
|---|---|---|
| Windows File Explorer | 50,500 ÷ 1024 | 49.3 KB (looks fine) |
| iPhone / Mac | 50,500 ÷ 1000 | 50.5 KB (over the limit) |
| Portal using 50 × 1000 | 50,500 > 50,000 | Rejected |
| Portal using 50 × 1024 | 50,500 < 51,200 | Accepted |
The same file can pass on one portal and fail on another. The fix is simple: aim a little below the limit. For a 50 KB maximum, a target of 45 to 48 KB (that is, under 48,000 bytes) works with either convention. For a minimum, do the reverse: for "at least 20 KB", aim for 22 to 25 KB.
Typical file sizes
These are rough, typical figures to help you judge what you are dealing with. Actual sizes depend on the content of the image.
| File | Typical size |
|---|---|
| Phone camera photo (12 MP, JPEG or HEIC) | 1.5 MB to 5 MB |
| WhatsApp-forwarded photo | 100 KB to 400 KB |
| Passport-style photo, 200 × 230 px, JPEG | 10 KB to 40 KB |
| Signature, 140 × 60 px, JPEG | 3 KB to 15 KB |
| One scanned A4 page as PDF (colour, 300 DPI) | 500 KB to 3 MB |
| One scanned A4 page as PDF (greyscale, compressed) | 80 KB to 300 KB |
How to see the exact byte count
- Windows: right-click the file, choose Properties. The "Size" line shows bytes in brackets.
- Mac: select the file and press Command + I. "Size" shows bytes.
- Android: open the file in your Files app and tap Details or Info.
- This site: our image compressor shows the output size before you download, so you can confirm it is inside the range.
Hitting a target size
If your file is too large, you have two levers: reduce the pixel dimensions, or lower the JPEG quality. Usually you need both. Start by resizing to the dimensions the notice asks for (for example 200 × 230 pixels), then compress. Our presets such as compress to 50 KB and compress to 20 KB do this automatically and stop just under the target. If a file is too small (below a minimum), increase the quality or the pixel dimensions slightly. For exam-specific limits, check our exam-wise size list and always confirm against the official notice.
Questions people ask
- Is 1 KB 1000 bytes or 1024 bytes?
- Both conventions exist. Strictly, 1 KB is 1000 bytes and 1 KiB is 1024 bytes, but Windows and many older programs use KB to mean 1024 bytes.
- My photo shows 49 KB but the form says it is over 50 KB. Why?
- Your device probably divides by 1024 while the portal checks against 50,000 bytes. Compress to around 45 to 48 KB so the file passes under either convention.
- How many KB are in 1 MB?
- 1000 KB in the decimal system or 1024 KB in the binary system. For form uploads, treating 1 MB as 1000 KB is the safer assumption.
- How do I reduce a 2 MB photo to under 50 KB?
- Resize it to the dimensions the form asks for, such as 200 x 230 pixels, then lower the JPEG quality until it is under the limit. A compressor with a target-size option does both steps for you.
- Can a file be too small for a form?
- Yes. Many notices give a minimum, such as 10 KB or 20 KB, to stop blurry uploads. Raise the quality or the dimensions slightly to get above it.