Dexaloop

Dexaloop › Guides › PDFs and documents

How to resize a photo for an online application

By Dexaloop · Updated 27 October 2026 · Checked against the sources listed below

To resize a photo for an online application, do three things in order: crop it to the shape the form asks for, scale it to the pixel size it asks for, then save it as a JPEG at a quality that lands inside the file size limit. Most rejections come from mixing these up, for example changing the dpi and expecting the pixel size to change, or compressing so hard to hit a KB limit that the face goes blocky. This guide explains each unit and works through two real sets of rules: the US State Department's digital visa photo and the UK's digital passport photo.

Pixels, inches and dpi

A digital photo is a grid of pixels. A phone photo might be 3,024 pixels wide and 4,032 tall. That grid is the only size a website can measure.

Inches and millimeters describe a print. The link between the two is dpi (dots per inch, also called ppi): pixels = inches x dpi. A 2 x 2 inch print at 300 dpi needs 600 x 600 pixels. The same 600 x 600 file printed at 150 dpi would come out 4 x 4 inches.

So when an online form gives a size in inches, it is really describing proportions, and the pixel rule is the one that counts. When it gives pixels, ignore dpi. Changing the dpi field in an image editor without resampling only rewrites a label; the file is the same grid.

File size in KB

File size is a separate thing again. Two photos with the same pixel size can be very different in KB, because JPEG compression throws away detail it thinks you will not notice. A higher quality setting keeps more detail and makes a bigger file. A lower setting makes a smaller file and, pushed too far, visible blocks and smudged edges.

The two levers are therefore:

  • Fewer pixels make a smaller file at the same quality.
  • Lower JPEG quality makes a smaller file at the same pixel size.

Use pixels first to meet the size rule, then fine tune with quality to meet the KB rule.

Aspect ratio: crop before you scale

Aspect ratio is width divided by height. A phone photo at 3,024 x 4,032 is 3:4. A square is 1:1. If you squeeze a 3:4 photo into a square box without cropping, the face is stretched sideways. Always crop to the target shape first, then scale down. Scaling keeps the shape; cropping changes it.

Real example 1: US visa digital photo

The US Department of State publishes these rules for digital visa photos:

RuleState Department wording
Shape"square aspect ratio (the height must be equal to the width)"
PixelsMinimum 600 x 600, maximum 1200 x 1200
FormatJPEG, in color, 24 bits per pixel, sRGB
File size"less than or equal to 240 kB"
Compression"less than or equal to 20:1"
Head sizeBetween 50% and 69% of the image's total height, chin to top of hair

The printed version of the same photo is "exactly 2 x 2 inches (51 x 51 mm)," which at 300 dpi is the 600 x 600 minimum.

The compression rule hides a useful fact. An uncompressed 24-bit image uses 3 bytes per pixel. At 600 x 600 that is 600 x 600 x 3 = 1,080,000 bytes. A 20:1 ratio means the JPEG must be at least 1,080,000 / 20 = 54,000 bytes, about 54 kB. At 1200 x 1200 the raw size is 4,320,000 bytes, so the minimum is 216,000 bytes, about 216 kB, leaving a narrow window up to 240 kB. In plain terms: a 600 x 600 file can be anywhere from about 54 to 240 kB, which is easy to hit, while a 1200 x 1200 file must be squeezed into about 216 to 240 kB. Choosing a size near the minimum gives you far more room.

Steps for a phone photo (3,024 x 4,032):

  1. Crop to a square, 3,024 x 3,024, with the face centered.
  2. Check the head: in a 600 pixel tall image it must be 300 to 414 pixels tall (50% to 69%). Adjust the crop until it is.
  3. Scale to 600 x 600.
  4. Save as JPEG. Check the file size. If it is over 240 kB, lower the quality a step and save again. If it is under about 54 kB, raise the quality.

Real example 2: UK digital passport photo

GOV.UK says a digital passport photo must be "at least 600 pixels wide and 750 pixels tall" and "at least 50KB and no more than 10MB." Those are minimums only. The page sets no fixed shape and no maximum pixel size, and the file size range is generous.

The printed UK photo does have a fixed shape: "45 millimetres (mm) high by 35mm wide," with the head from crown to chin "between 29mm and 34mm high." 35 by 45 is 7:9. If you are preparing both a digital and a printed photo, make each one to its own rules rather than assuming one file fits both.

For the digital upload, GOV.UK says "Do not crop your photo - it will be done for you," so the job is mainly to keep the photo at least 600 pixels wide and 750 tall. The real risk with UK rules is going too small: a heavily compressed file under 50KB will fail even though its pixels are fine.

Side by side

US visa (digital)UK passport (digital)
ShapeSquare, 1:1No fixed shape stated; minimums only
Pixel limits600 to 1200 each sideAt least 600 wide, 750 tall
File sizeUp to 240 kB50KB to 10MB
Format statedJPEGNot stated on the digital photo page

Common mistakes

  • Changing dpi instead of pixels. A 3,024 pixel photo set to 72 dpi is still 3,024 pixels.
  • Stretching instead of cropping. Faces end up too wide or too thin.
  • Over-compressing. Hitting a KB limit at very low quality can cause a rejection for a blurry or blocky face.
  • Enlarging a small image. Scaling up adds pixels but no detail.
  • Screenshotting the photo. A screenshot captures your screen's pixels, not the original, and often adds borders.
  • Reusing one file without checking. Shapes and limits differ between forms, so check each form's own rules before you reuse a file.
  • Trusting old rules. Photo rules change. Read the official page on the day you apply.

Every application sets its own numbers, so read the form's photo rules first, note the shape, pixel range and KB range, and then size the photo to fit. The exact size photo tool below crops and scales to a pixel size you choose.

Make an exact size photo: pdf.dexaloop.com/exact-size-photo/. Free, no sign-up, and it runs on your device.

Questions

Does changing the dpi make my photo bigger or sharper?

No. The dpi setting only tells a printer how many pixels to place in each inch. The number of pixels, which is what an upload form checks, stays the same unless you resample the image.

My photo is too small in KB. How do I make it bigger?

Save it at a higher JPEG quality, or use more pixels if the form allows it. Do not enlarge a tiny image to pass a minimum, because the result will be blurry and may be rejected.

Is a kB 1,000 bytes or 1,024 bytes?

Forms differ, and many do not say. If you aim a little below the stated maximum, for example 230 kB for a 240 kB limit, the file passes under either reading.

Can I use the same file for a US visa and a UK passport?

Possibly, but check each form's own rules first. The US visa photo must be square, 600 to 1200 pixels a side and no more than 240 kB. GOV.UK sets only minimums for a digital passport photo: 600 pixels wide, 750 tall and 50KB. A 1200 x 1200 JPEG between 50KB and 240 kB meets both sets of numbers, but each form also has rules about the photo itself, such as head size, so read both pages.

Should I save as PNG to keep quality?

Only if the form accepts it. The US visa rules require a JPEG. A PNG of a photo is also usually far larger than a JPEG of the same image.

Sources

This guide is general information, not legal, tax or financial advice. Rules change; check the official source for your own case. Found a mistake? Email support@dexaloop.com.

Related tools

More pdfs and documents guides