How to prepare a photo for online forms: KB limits, pixels and DPI explained

What upload rules really mean, and how to reach an exact size without ruining a photo.

Exam registrations, job portals, visa systems and university applications frequently require a photo with very specific properties: "JPG, maximum 200 KB, 600 by 800 pixels, 300 DPI". A phone photo usually fails all of these at once. The rules look technical, yet each one measures something simple.

Three separate measurements

The confusion usually comes from treating three different properties as if they were one.

  • File size, measured in KB or MB, is how much storage the file occupies. It depends on the dimensions, the format and the compression.
  • Pixel dimensions, such as 600 by 800, are how many dots the picture contains across and down.
  • DPI or PPI is a printing instruction that says how many of those dots should fit into an inch of paper.

They are related but not interchangeable. You can change the DPI value of a picture without changing a single pixel, and its file size will stay practically the same. You can also reduce file size without touching the dimensions by increasing the compression.

What DPI really does

A 1200 by 1800 pixel photo printed at 300 DPI measures 4 by 6 inches, or about 10 by 15 cm. The same file printed at 150 DPI measures 8 by 12 inches. The picture on screen does not change, because screens ignore this number and simply show pixels.

To work out the required pixels for a printed size, multiply inches by DPI. For a 3.5 by 4.5 cm passport-style photo at 300 DPI:

  • 3.5 cm is about 1.38 inches, and 1.38 × 300 gives about 413 pixels.
  • 4.5 cm is about 1.77 inches, and 1.77 × 300 gives about 531 pixels.

So when a form asks for 300 DPI, what it normally needs is enough pixels at the correct proportions. If the form states both pixels and DPI, set the pixels first and then the DPI value.

Follow this order

The order of operations decides the quality of the result.

  • Start from the original photo, not from a copy sent through a messaging app.
  • Crop to the required proportion first. If the form asks for 600 by 800, that is a 3:4 ratio.
  • Resize to the exact pixel dimensions.
  • Set the DPI value if the form mentions it.
  • Compress last, lowering the quality only as far as needed to get below the limit.

Cropping before resizing matters. If you force a 4:3 landscape photo into a 3:4 box without cropping, faces become visibly stretched, and an automated check or a human reviewer may reject it.

Hitting a file size limit

If the file is still too large after resizing, reduce the quality in small steps. A portrait at 600 by 800 pixels often fits under 100-150 KB with little visible loss. A very low limit such as 50 KB is also reachable, but check faces closely, because this is where compression shows.

Some forms also set a minimum, such as "between 100 KB and 200 KB". If your image is too small, raise the quality, or export slightly larger dimensions if the form allows that. Do not pad the file with meaningless data; check the rules and adjust the picture itself.

Remember that KB limits are not always counted the same way. Some systems treat 1 KB as 1000 bytes, others as 1024. If you are close to a limit, leave a margin of a few kilobytes.

Portrait rules that software cannot check

Many institutions publish requirements that go beyond file properties. Common examples are:

  • A plain, light background without patterns or shadows.
  • A neutral expression with both eyes open and visible.
  • A recent photo, sometimes taken within the last six months.
  • No heavy retouching or filters.
  • Head size within a defined proportion of the frame.

Read the official announcement for your application, since these rules differ and can change between years. An image that meets the technical specification can still be rejected for failing them. Avoid improving a photo for an official use by smoothing skin or replacing the face, as this can make an identity photo invalid.

Scanned signatures and documents

The same steps apply to scanned signatures, diplomas and identity pages. For signatures, crop tightly, make the background white and keep good contrast between ink and paper. PNG is useful for a signature made of sharp lines, unless the form demands JPG.

Before you press upload

  • Open the final file and look at it at full size.
  • Confirm its dimensions and size in the file properties.
  • Make sure the extension matches the required type, as .jpg and .jpeg are usually equivalent but other types are not.
  • Keep a copy in a clearly named folder, because many applications need the same photo again.

Many upload systems will not tell you exactly why a file failed. Going through these measurements one by one is the quickest way to find the problem.

Tools mentioned in this guide