Basics explained

KB, pixels and DPI explained: why your photo upload gets rejected

Three numbers decide whether an upload is accepted. Once you understand them, the error messages start to make sense.

By the PicoToolX team · Updated 26 November 2026

Online forms throw around terms like "20 KB to 50 KB", "200 × 230 pixels" and "300 DPI" as though everyone knows exactly what they mean. Most people do not, and that is fine. Here is a plain explanation, with examples of how the three numbers relate.

Pixels: the size of the picture

A digital image is a grid of tiny coloured squares called pixels. "200 × 230 pixels" means 200 squares across and 230 down. A phone photo is usually around 4000 × 3000 pixels, about twelve million in total, which is why it looks sharp even when you zoom in.

When a form asks for specific pixels, it wants the image resized to that grid. Getting it exactly right matters, because many portals reject anything that is even one pixel off.

KB and MB: how heavy the file is

File size measures storage. 1 MB is 1024 KB, and 1 KB is 1024 bytes. File size depends on two things:

That is why a 200 × 230 photo can be 12 KB at low quality or 70 KB at maximum quality. For a "20–50 KB" requirement you want a quality setting that lands in the middle of that range. Too low and faces look blocky; too high and the portal refuses the file.

A minimum size, such as 20 KB, exists because a photo that small usually means it has been over-compressed into a smudge. If your file is under the minimum, increase the quality. Do not add pixels.

DPI: a printing instruction stored in the file

DPI (dots per inch) tells a printer how many pixels to place in each inch of paper. A 600 × 600 pixel image at 300 DPI prints as a 2-inch square, and at 600 DPI it prints as a 1-inch square. The pixels are the same. Only the printed size changes.

On a screen, DPI makes no visible difference. Some portals, notably the UTIITSL PAN portal, still read the DPI value stored in the file and reject the image if it does not match. Phone photos usually say 72 DPI. Tools such as the PAN photo crop tool write the required DPI into the file for you.

Putting it together: an example

A form asks for: photo 3.5 × 4.5 cm, 200 × 230 pixels, 20–50 KB, JPG. The steps are:

  1. Crop the photo to a tall shape that matches 200:230.
  2. Resize it to exactly 200 × 230 pixels.
  3. Save it as JPG with a quality setting that gives roughly 30–40 KB.
  4. Upload that file without opening and re-saving it in another app.

The Image Resizer handles steps 1 and 2, and the Image Compressor handles step 3 with a target-KB mode. The Passport Size Photo Maker has exam presets that do all of it at once.

Quick answers

Why does my 45 KB photo show as 46 KB on the portal?

Some systems count 1 KB as 1000 bytes instead of 1024. Aim a few KB below the limit to be safe.

Can I convert a PNG to JPG just by renaming it?

No. Renaming changes the label, not the format, and many portals detect this. Save it as a real JPG, for example with the Image Compressor.

The portal wants 300 DPI. Do I need a scanner?

No. DPI is just a value in the file. Set it with a tool that writes DPI. The pixel size is what really determines quality.