KB vs pixels: what KB, MB, pixels and DPI mean for a photo upload
By Umair Tahir · Updated 16 October 2026
Online forms describe pictures in two different ways, and mixing them up is the reason many uploads fail. One is the file size, measured in KB or MB. The other is the picture size, measured in pixels. A third word, DPI, appears on some instructions and matters much less than people think.
KB and MB measure the file
A kilobyte (KB) and a megabyte (MB) measure how much storage a file takes. One MB is about 1,000 KB. When FPSC says “less than 30 KB” or NTS says “5 MB”, they are talking about this number and nothing else.
Strictly, some software counts 1,000 bytes as a KB and some counts 1,024. For a 30 KB limit the difference is under 1 KB, but it can matter when a file sits exactly on the line. The resizer on this site stops a little below each limit so the file passes under either way of counting.
How many KB is a photo?
It depends on where the photo came from. A photo straight from a phone camera is thousands of KB; the same picture after a trip through WhatsApp is a hundred or so; a passport crop made for a form is a few dozen. These are typical ranges, not fixed numbers, because the file size also depends on how much detail is in the picture, which is explained in the next section.
| Picture | Typical size | Against a 30 KB limit |
|---|---|---|
| Phone camera photo, 12 megapixel JPG | 2 to 5 MB (2,000 to 5,000 KB) | About 100 times too large |
| iPhone photo saved as HEIC | 1 to 3 MB | Too large, and most portals do not read HEIC |
| Photo received on WhatsApp | 50 to 150 KB | 2 to 5 times too large, and already blurred once |
| Phone screenshot (PNG) | 200 KB to 1 MB | Wrong format: PNG does not compress a face well |
| Scanned A4 page, colour, 300 dpi | 1 to 3 MB | Needs a PDF or image compressor |
| Passport crop, 413 × 531 px, JPG at good quality | 40 to 80 KB | Close; one more step of compression |
| Small photo, 300 × 300 px, JPG | 20 to 40 KB | Fits most limits as it is |
The other way round, what each common limit leaves room for, when the picture is a head and shoulders photo against a plain background:
| Limit | What fits |
|---|---|
| 10 KB | A face at roughly 250 to 400 pixels wide, or a signature. Fine on the form, not for printing. |
| 20 KB | The full 413 × 531 passport size at a moderate JPG quality. Sharp at the size a form displays it. |
| 25 KB | The same, with a little more quality to spare; a CNIC front is possible if cropped tightly to the card. |
| 30 KB | Passport size at good quality; a cleanly photographed CNIC stays readable. |
| 50 KB | Passport size at high quality, or a 600 × 600 photo at moderate quality. |
| 100 KB and above | Any form photo at full quality; the limit stops mattering and the picture rules take over. |
Pixels measure the picture
A digital picture is a grid of coloured dots called pixels. “413 × 531 pixels” means 413 dots across and 531 dots down. More pixels mean more detail, and also a larger file.
A phone camera takes pictures of around 4,000 × 3,000 pixels. A photo on a form is shown at the size of a postage stamp, so it needs only a few hundred pixels each way. Reducing the pixels is the main way a picture is brought down from megabytes to kilobytes.
Why two files with the same pixels differ in KB
A JPG file is compressed. When it is saved, a quality setting decides how much fine detail is thrown away to save space. Two things then decide the file size:
- The quality setting. Lower quality gives a smaller file and, if pushed too far, a blocky picture.
- What is in the picture. A plain wall compresses to almost nothing. Hair, patterned cloth and printed text take much more space.
This is why a form may state a file size and no pixel size at all. FPSC, PPSC, ASF and the Pak Navy form each give a KB limit and no pixel size. Any pixel size is acceptable as long as the file fits and the picture is clear.
DPI matters for printing, not for uploading
DPI means dots per inch. It tells a printer how large to print a picture. It does not change the pixels in the file or the size of the file. A picture of 413 × 531 pixels is the same upload whether it is labelled 72 DPI or 300 DPI.
DPI is useful for one calculation. A passport photo is 35 × 45 mm. Printed at 300 DPI, that is 413 × 531 pixels, which is why you will see that pair of numbers on many photo studio files.
How to check your file
- Windows: right-click the file and choose Properties for the size in KB. The Details tab shows the pixels.
- Android: open the photo in the gallery and choose Details or Info.
- iPhone: open the photo and tap the info button to see the size and the pixels.
What to do with a limit
- Find out whether the form gives a KB limit, a pixel size, or both.
- If it gives only KB, crop the picture to a sensible shape and let the pixels fall wherever they need to.
- If it gives pixels as well, the picture must match those pixels exactly and also fit the KB limit.
- Always check the result with your own eyes before uploading.
Each form page on this site quotes the official wording, so you can see which kind of limit you are dealing with before you start.
Official sources
The rules on this page are quoted from these documents. Rules change, so open the current version before you apply.
- Guidelines for Online Application Submission at FPSC (updated 9 September 2025) · checked 16 November 2026
- PPSC Online Application Procedure (official PDF) · checked 16 November 2026
- PPSC Photograph Guidelines (official PDF) · checked 16 November 2026
- NTS Candidate Portal Manual (official PDF) · checked 16 November 2026
- Guidelines for Online Registration in ASF (official PDF) · checked 16 November 2026
- Join Pakistan Navy online registration form · checked 2 October 2026