By the jpgtopdf team · 29 November 2026
Three different measurements
- File size (KB, MB) is how much storage the file takes. It is what the "maximum 50 KB" limit checks.
- Dimensions (pixels) is how many dots wide and tall the image is, for example 200 × 230. It decides how much detail the picture can hold.
- DPI (dots per inch) is a note inside the file saying how big the image should be when printed. On a screen it does nothing at all.
You can change each of these without changing the others, which is exactly why forms list them separately.
KB and MB
A kilobyte (KB) is about a thousand bytes; a megabyte (MB) is about a thousand KB. Strictly, computers often count 1 MB as 1,024 KB while storage makers count 1,000, so a file shown as "1 MB" on one device can be slightly more or less on another. Upload forms are not always clear which they mean.
Practical rule: stay comfortably inside the range. If the form says 20–50 KB, aim for about 30–45 KB. If it says under 1 MB, aim for 900 KB or less.
A file can be too small, too. Some exam forms set a minimum (often 10 or 20 KB) to block blank or tiny images. If yours is under the minimum, save it at a higher quality, or use a tool that can increase or reduce image size in KB to a target.
Pixels (dimensions)
Every digital image is a grid of pixels. A photo of 200 × 230 pixels is 200 dots wide and 230 tall. More pixels means more detail, and usually a bigger file.
When a form asks for exact dimensions, it wants the grid to be that size. Resizing changes the pixel count; cropping cuts some away. If the shape (aspect ratio) of your photo differs from what the form wants, crop first, then resize, or the face gets stretched.
DPI: only matters on paper
DPI links pixels to physical size when printing. The maths is simple:
pixels = inches × DPI, and one inch is 25.4 mm.
So a passport photo of 35 × 45 mm at 300 DPI needs 413 × 531 pixels (35 ÷ 25.4 × 300 ≈ 413; 45 ÷ 25.4 × 300 ≈ 531). The same 413 × 531 image saved with "72 DPI" in its settings has exactly the same pixels; it would simply print larger and blurrier.
That is why changing only the DPI number does not change the file size or how the image looks on screen. Some forms still check the DPI value stored in the file, though, so if one insists on "300 DPI", set it with a DPI converter, which writes the number without spoiling the picture.
How the three fit together
- More pixels → more detail → usually a bigger file.
- Same pixels, lower JPG quality → smaller file, slightly softer image.
- Same pixels, different DPI → same file, different printed size.
So to hit a KB range you mainly adjust JPG quality (and pixels if needed); to hit dimensions you resize and crop; to hit DPI you set the DPI value.
Worked example: "Photo: JPG, 200 × 230 px, 20–50 KB"
- Take a well-lit photo against a plain light wall.
- Crop it to a 200:230 shape with the face centred.
- Resize to exactly 200 × 230 pixels.
- Save as JPG and check the size. A 200 × 230 JPG is often only 10–25 KB, so you may need to raise the quality to get above 20 KB.
- Open the final file and check the face is sharp.
Our passport size photo maker and signature resize tools do these steps together, on your device.
Common mistakes
- Squeezing a phone photo straight down to 20 KB: 4000 × 3000 pixels into 20 KB turns faces into mush. Reduce the pixels first, then the quality.
- Stretching instead of cropping: forcing a square photo into a tall shape distorts the face.
- Changing only DPI to shrink the file: it will not; DPI is just a label for printing.
- Uploading HEIC from an iPhone when the form says JPG: convert it first.
More on keeping documents small and readable: why is my PDF so big? and JPG vs PNG vs PDF.