KB, MB, Pixels and DPI Explained for Online Forms

Upload forms love numbers: 'JPG between 20 KB and 50 KB', '200 × 230 pixels', '300 DPI'. They sound related, but they measure three different things. Once you see which is which, meeting them is easy.

By the jpgtopdf team · 29 November 2026

Three different measurements

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

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"

  1. Take a well-lit photo against a plain light wall.
  2. Crop it to a 200:230 shape with the face centred.
  3. Resize to exactly 200 × 230 pixels.
  4. 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.
  5. 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

More on keeping documents small and readable: why is my PDF so big? and JPG vs PNG vs PDF.

More guides

Download our free appGoogle Play