Getting a passport photo under a file size limit

Last reviewed 2026-08-29 · AppsOverflow LLC

Do these in order

A file size limit counts bytes. Pixel dimensions are a separate rule with its own minimum, and most passport portals publish that minimum too. So the move almost everyone makes first — shrinking the image — aims at the wrong number and walks into the other failure. The order that works:

  1. Convert to JPEG if the file is a PNG, a HEIC or a TIFF. Identical pixels, a fraction of the bytes.
  2. Lower the JPEG quality in steps, exporting each time from the original rather than re-saving the last export.
  3. Strip the metadata if your exporter offers it. Nothing in the picture changes.
  4. Reduce the pixel dimensions last, and never below the floor the portal states.

The floors worth writing down first: the US visa upload wants a square photo of at least 600 × 600 px, the UK digital route at least 600 × 750 px, and the UK file must sit between 50 KB and 10 MB. That 50 KB is a floor, not a ceiling — compress hard enough and the same form rejects you from the opposite direction.

One error message, four rules

Two files can both be exactly 600 × 600 px and differ twentyfold in size. Pixel dimensions describe how many samples the image holds; bytes describe how much room the encoder needed to store them, which depends on the format, the quality setting and how much detail is in the frame.

Upload forms test both and report one failure at a time, which produces a predictable loop: "file too large", halve the dimensions, upload, "image too small". Before changing anything, note four numbers from the specification — pixel minimum, pixel maximum, byte minimum, byte maximum. Some routes publish all four, most publish two, and where the authority publishes nothing, the form itself is the only authority on that number.

What the authorities publish

These are the digital upload specifications we could verify against the issuing authority. They are not print sizes; pixels, DPI and millimetres relates the two.

RoutePixel minimumPixel maximumFile size
US visa, DS-160600 × 600, square1200 × 1200Not published in the requirements we verified
UK, digital route600 × 750Not published50 KB – 10 MB
Canada, digital1800 × 1200, 3:2 portraitNot published200 KB – 5 MB

The US figures come from the State Department, which asks for a square colour photo of 600 × 600 to 1200 × 1200 px (travel.state.gov). The UK figures are GOV.UK's: at least 600 × 750 px, in a file of 50 KB to 10 MB (GOV.UK). Canada publishes 3:2 portrait at 1800 × 1200 px or more, 200 KB to 5 MB (Canada.ca).

The US band also caps pixels, so with a ceiling of 1200 px per side, "upload a bigger file" is not an option. The DS-160 tool exports inside that band.

The 240 KB figure you have probably read

A 240 KB cap for the DS-160 upload is quoted almost everywhere. We could not confirm it from a primary source, so this site will not repeat it as a rule; the published requirements state the pixel range and colour. If the form you are filling in enforces a byte ceiling, that number is on the form — use its figure, and treat unsourced numbers as guesses.

Quality is the cheapest dial

JPEG is lossy by design, and the top of the quality scale is where bytes are cheapest to give up. The gap between quality 100 and quality 90 is mostly detail no eye resolves in a 35 × 45 mm photograph, and after a format change it is usually the single largest saving available. Below roughly 70 the losses start to show: a flat wall develops faint blocky edges, and hard boundaries such as a jawline or a spectacle frame pick up a halo.

Two habits make this worse than it needs to be. Re-saving the same JPEG re-encodes damage the previous save already did, so return to the original and export once at the quality you want. Editing an already-compressed export does the same, and a crop shifts the 8 × 8 blocks the encoder works in, giving the second pass more work and often a larger, worse file.

Metadata is a smaller but genuinely free saving: a phone photo carries EXIF data, often an embedded thumbnail, sometimes a colour profile of a few dozen kilobytes. Removing them changes no pixel.

A plain wall is a smaller file

JPEG spends its bytes on change. A smooth, evenly lit expanse of one colour costs almost nothing to store; texture, grain and fine gradients cost a great deal. Two photos at identical dimensions and quality can differ enormously in size, and the expensive one is full of detail unrelated to your face.

The biggest source of that detail is sensor noise, which comes from shooting in a dim room. A phone in low light raises its ISO, and the speckle lands everywhere, including across the wall behind you, turning the cheapest area in the frame into the most expensive. Patterned wallpaper, a visible skirting board and a hard-edged shadow do the same on a smaller scale.

So the fastest route to a smaller file is often not a compression setting at all. Shoot again in daylight against a plain, evenly lit wall in a colour the authority allows — background colour rules differ more than people expect, and the UK asks for cream or light grey rather than white. Lighting without shadows covers the setup; shooting on a phone covers framing that leaves room to crop.

Do not blur the background to shrink the file

It works, and it is the wrong kind of fix. Canada publishes a zero-tolerance list naming background replacement, filters and AI tools alongside brightness, contrast, colour and sharpness corrections, and GOV.UK requires the photo be "unaltered by computer software". The rule that broke every AI passport photo tool sets out each authority's wording. Getting the wall clean in the room is allowed. Getting it clean in software is a different act.

The arithmetic on a UK upload

Say a phone produces 3024 × 4032 px at 4.2 MB and the form rejects it. Crop to the printed proportion first, because that crop is required either way: the UK standard is 35 × 45 mm, which is 7:9.

Now test the floor against that shape. At 7:9, a width of 600 px gives a height of 771 px, which clears 750. A height of exactly 750 px gives a width of 583 px, which does not clear 600. The width binds, so 600 × 771 px is the smallest correctly proportioned file that satisfies both figures. Forced to exactly 600 × 750, the photo is a 4:5 rectangle, not the 7:9 the printed standard uses.

Do not drop to that floor immediately. Export at around 1200 × 1543 px at quality 90 and look at the size, then take the quality down before the dimensions. Head height is a proportion of the frame and survives any resize — a UK head of 29–34 mm in a 45 mm frame is 64–76 per cent at every pixel dimension — so head size is neither helped nor hurt by resizing.

The trap at the end is cropping tighter to lose pixels. It reduces the file, and it also enlarges the head as a proportion of the frame, pushing it out of the published range. Crop for the head measurement, then resize. Never the reverse.

When the file is too small

The UK's 50 KB and Canada's 200 KB are floors, and people reach them by over-correcting. A 600 × 750 JPEG at quality 40 can land well under 50 KB, leaving a file that is both too soft for a sharpness check and too small to accept.

Work back up in the same order: raise the quality, then the pixel dimensions, then keep the metadata rather than stripping it. What not to do is pad the file, convert to PNG to inflate it, or add grain — bytes gained that way are noise, and noise is what a sharpness check hunts for.

One more failure gets misread as a size problem. A greyscale JPEG is far smaller than a colour one, and the US visa upload must be in colour. If a photo has lost its colour somewhere, resizing will not rescue it.

Does compressing count as altering?

The line that holds is between changing the file and changing what the photograph shows. Cropping and resizing are what every authority in our verified set asks for, and the ones publishing byte ranges are asking for JPEGs, a format that cannot exist without compression. What they prohibit is different: the State Department instructs applicants not to change the photo using computer software, phone applications or filters, or artificial intelligence, and says it checks photos for AI use. Mexico does not accept retouched photographs, and Ireland's Passport Online upload must not be digitally enhanced.

The practical test is visibility. If a person can see the compression — soft edges, blockiness on the wall, a halo round the jaw — you no longer have a file size question, you have a sharpness one, and sharpness appears on every rejection list.

Before you upload

Check all four numbers, not the one the error mentioned: pixel dimensions inside the stated range, byte size above the floor and below the ceiling, colour rather than greyscale, and head height as a proportion of the frame. Then view the file at full size and apply the visibility test to the wall behind you and the edge of your jaw.

Our photo checker measures head height and eye line in millimetres against the published range for your country and reports resolution, sharpness, exposure, lighting and background; the country tools — UK, US, Canada, DS-160 — export inside each route's stated pixel band. They crop, measure and check, and they do not retouch your face. That is not a promise of acceptance; only the issuing authority decides, and the country pages list what each publishes.

It runs in your browser, with no upload, no account, no watermark and no limit — what actually happens to your photo explains why that matters here. The free-to-download iOS app, Passport Photo: Photo Maker ID, gives one free export before it asks for Pro. The website is the unlimited one.

The office you apply to makes the final decision. This page reports what the authorities publish and links to their pages where we could reach them; it is not legal advice and it is not a guarantee of acceptance.

Do it now

Crop, check and lay out a photo without leaving this tab.

Open a photo

It stays on this device. Nothing is uploaded, and there is no account, watermark or limit.

JPEG, PNG, WebP or HEIC. Drag a file here if you prefer.

The same thing, on your phone

Passport Photo: Photo Maker ID does this on iOS with the phone's own camera and an on-device background tool. It is free to download and the first export is free; after that it asks for Pro. This website has no limit.