Every figure on this page was read off the issuing authority's own page on 2026-08-14.Each row links to the source it came from. Where an authority does not publish a figure we say so instead of estimating one.
Getting the pixel dimensions right is the part everyone knows about. The part that actually blocks submissions is the file size: almost every government upload form also caps how many kilobytes it will accept, those caps were set for the form's own plumbing rather than for image quality, and a modern phone photo overshoots them by a factor of ten or more. Worse, the forms rarely tell you which rule you broke — you get a generic failure, and the natural response is to shrink the picture, which breaks the pixel rule instead. This page lists what each major portal allows, explains why the numbers are so small, and shows the order of operations that satisfies both constraints at once.
The short answer
Most passport and visa portals want a JPEG somewhere between a few tens of kilobytes and a few hundred. The US visa form is the tightest of the ones below and the one most people meet first; the UK is the outlier in the other direction, and is the only one here where a phone photo will usually pass untouched. Every figure in the table links to the page it was read from.
| Portal | File cap | Pixel spec | Format | Hit the cap |
|---|---|---|---|---|
| US DS-160 (visa) travel.state.gov | 240 KB | 600 × 600 – 1200 × 1200 px square | JPEG | Compress to the cap |
| India Passport Seva passportindia.gov.in | Check the form | This portal does not publish its upload specification in a form we can cite, and the figures circulating elsewhere all trace back to other photo tools rather than to the issuing ministry. Read the cap off the upload form itself. | Compress to any figure | |
| India OCI ociservices.gov.in | 200 KB | 200 × 200 – 900 × 900 px square | JPEG | Compress to the cap |
| China COVA (visa) visaforchina.cn | 40–120 KB | 354 × 472 px exactly | JPEG | Compress into the range |
| UK Visas & Immigration gov.uk | 50 KB – 10 MB | 600 × 750 px minimum | JPEG | Rarely needed |
Read the file cap and the pixel spec as two independent rules. A file can be small enough and still be rejected for being the wrong shape, and a correctly-shaped photo is rejected just as fast for being a few kilobytes too big. Almost every failed upload is one of those two, not both.
Already have the crop right?
Set the exact KB figure your portal asks for and let the compressor bisect JPEG quality until it lands just under it. The pixel dimensions stay where you put them.
Both tools run entirely in your browser. Your photo is never uploaded to either one.Why the caps are so small
A few hundred kilobytes sounds like a limit from another era, and in a sense it is — but it is not a judgement about how good the photo needs to be. These caps size the form, not the picture. An immigration system accepts millions of applications from every kind of connection in the world, stores each photo for decades, and replicates it between systems that were not designed together. A small, predictable ceiling per file is what makes that tractable.
The reassuring part is that the ceiling is not actually restrictive at the dimensions these portals ask for. A passport photo is a small, evenly-lit image of one face against a plain background — close to the easiest thing a JPEG encoder will ever be given. At the pixel sizes in the table above, a good-quality export lands comfortably inside most of these caps without any visible loss. The reason your file is too big is almost never the crop. It is that a phone camera wrote a 12-megapixel image with full sensor metadata, and nothing has yet thrown away the parts the portal does not need.
What actually happens when you go over
Nobody looks at it. The size check runs in the form, before your application reaches a queue, and the failure comes back as a validation error rather than as a decision. That is genuinely good news — an oversized file is not a black mark, it is a form that would not submit — but it does mean the message you get is written by the upload widget rather than by a person, and it is usually unhelpful.
The common failure modes are worth naming, because the error text often does not distinguish between them:
- Too large. The most common one, and the easiest to fix without touching the crop.
- Too small. Less well known and genuinely surprising. Some portals set a floor as well as a ceiling, so a file compressed too aggressively is rejected for the opposite reason. If you have been compressing harder and harder and it still fails, this is why.
- Wrong dimensions. Fixed by resizing, not by compressing — and shrinking the pixels to fix a size error is exactly how people land here.
- Wrong format. Every portal in the table wants JPEG. A phone that saves HEIC, or a file renamed from
.pngto.jpgwithout being re-encoded, fails before any other check runs. - Not square, when square is required. A rule that trips up anyone reusing a printed 35 × 45 mm photo for a portal that wants a square frame.
That HEIC case deserves a note of its own, because it is now the most common one on iPhones and it does not look like a problem: the file previews normally and the name may even end in .jpg. If your photo came off a recent iPhone, convert it to JPG before anything else.
Resizing and compressing are not the same operation
This is the distinction the whole page turns on, and it is why so many people bounce between tools. Resizing changes how many pixels the image has. Compressing changes how many bytes those pixels are stored in. The portal checks both, separately, with different rules — and only one of them is allowed to move.
The pixel dimensions are fixed by the specification. The byte count is yours to spend. So the operation you want is: set the dimensions exactly, then reduce quality until the file fits, and never the other way round. Shrinking a correctly-sized photo to save kilobytes trades a rule you must satisfy for one you already had room on.
Order matters for a second reason too. Compressing first and resizing afterwards wastes the effort — the resize re-encodes the image anyway, from data you have already degraded, so you pay the quality cost twice and end up with an unpredictable final size. Crop and resize first. Compress last. Check the number once, at the end.
The practical rule: the pixel spec is a constraint, the file size is a budget. Spend the whole budget. A file that lands just under the cap looks better than one at a third of it, and both pass identically.
Start from the crop instead
Pick your country's preset, place the head inside the guide band, and export at the exact pixel size the portal expects. Then bring it under the cap.
Both tools run entirely in your browser. Your photo is never uploaded to either one.A worked example: iPhone photo to a US visa upload
This is the most common route, and each step has a number you can check against your own file. A standard 12-megapixel iPhone photo is 4032 × 3024 pixels and lands somewhere around 2–4 MB as a HEIC, or rather more as a JPEG — call it an order of magnitude over the DS-160 cap before anything has been done to it.
- Convert, if it is a HEIC. Nothing downstream works until the file is a real JPEG. The pixel dimensions do not change; the size usually goes up, which is fine and temporary.
- Crop to square. The US form requires equal height and width, so a 4032 × 3024 photo has to lose a strip off the sides — it cannot be squashed. This is the step that decides where the head sits, and it is the one worth spending time on.
- Resize to the target. Take it to the smallest size the portal accepts — 600 × 600 – 1200 × 1200 px is the accepted range, and the bottom of it leaves the most byte budget per pixel. Dropping from 12 megapixels to that does the overwhelming majority of the size reduction on its own, before any quality is traded away.
- Compress to the cap. Now set the byte target and let quality bisection find the highest quality that fits. At these dimensions a passport photo has plenty of headroom, so the result generally sits at a quality level you cannot distinguish from the original by eye.
- Check both numbers once. Dimensions square and inside the accepted range, file under the cap, extension
.jpg. Then upload.
Two details about that last step. Resizo reads 1 KB as 1 000 bytes, not 1 024, and aims just under the figure you type — upload forms disagree about which they mean, and the decimal reading is the only one that clears both. And the compressor only shrinks the pixel dimensions if quality alone cannot reach the target, which for a passport photo essentially never happens; the frame the portal expects stays intact.
If your portal is not in the table
Most are not, and the list above is deliberately short: it covers only the portals whose own pages we could open and read. The approach that works for the rest is the same one that produced this table.
- Find the figure on the form itself, not in a search result. Upload widgets usually state their limits in the help text beside the file picker, and that text is the rule that will actually be enforced.
- Check for a floor as well as a ceiling. It is the constraint people forget, and the one that makes further compression counterproductive.
- Note the format and whether square is required, before you crop rather than after.
- Treat any figure you find on a photo-tool site — including a wrong one on this one — as a hint to verify, not as the specification.
That last point is why one row in the table above is deliberately blank rather than filled with the number that circulates everywhere else. We could not open a government page stating it, so we do not state it either. An applicant who trusts a plausible-looking figure and has their form rejected is worse off than one who was told to go and look.
Frequently Asked Questions
What file size does a US visa photo need to be?
The DS-160 form accepts a JPEG of 240 KB or less, at 600 × 600 – 1200 × 1200 px in a square aspect ratio. Those are two separate rules and both are enforced: a file inside the cap is still rejected if it is not square, and a correctly-shaped photo is rejected if it is a kilobyte over.
Why does my passport photo get rejected even though it is small enough?
Almost always the pixel dimensions or the format, not the bytes. The size check and the dimension check are separate, and the error message usually does not say which one failed. Confirm the width and height first, confirm the file is genuinely a JPEG second, and only then look at the file size.
Can a passport photo be too small in file size?
Yes, and it catches people out. Some portals set a minimum as well as a maximum, so compressing harder makes the problem worse rather than better. If repeated compression is not fixing a rejected upload, check whether the portal publishes a floor.
Should I resize or compress my passport photo first?
Resize first, compress last. The pixel dimensions are fixed by the portal's specification and the file size is the part you have freedom over, so set the dimensions exactly and then spend the remaining byte budget on quality. Compressing first wastes the effort, because resizing re-encodes the image again afterwards.
Does reducing the file size make my passport photo blurry?
Not at the sizes these portals ask for. A passport photo is one evenly-lit face on a plain background, which is close to the easiest thing a JPEG encoder can be given, so the quality level needed to fit these caps is usually indistinguishable from the original. Blurring comes from shrinking the pixel dimensions too far, which is a different operation.
Is 1 KB 1000 or 1024 bytes for a passport photo upload?
Upload forms disagree, which is why Resizo reads 1 KB as 1 000 bytes and aims just under the figure you enter. That is the stricter of the two readings, so a file that passes on the decimal interpretation also passes on the binary one. Aiming for the binary reading would be the gamble.
My iPhone photo will not upload at all. Why?
Recent iPhones save HEIC rather than JPEG, and no portal in this list accepts it. The file previews normally and may even have a .jpg name if something renamed it, which is what makes this confusing — renaming does not re-encode. Convert it to JPG first, then crop, resize and compress.
Do these limits ever change?
Yes, which is the reason every row here links to the authority's own page and carries the date it was read. Treat the linked page as the specification and this one as a convenience. If you find a figure here that no longer matches the form in front of you, the form wins.
Does Resizo upload my passport photo to a server?
No. Both the passport photo resizer and the compressor run entirely in your browser through the Canvas API, so the image never leaves your device. That matters more for this file than for most — a passport photo is a government-grade biometric of your face, attached to an application that also carries your name and address.
In short
The pixel dimensions are a constraint you have to match exactly, and the file size is a budget you should spend nearly all of. Set the frame first, compress second, and check both numbers once at the end rather than guessing which one the form objected to.
And when a portal does not publish its limit, read it off the form rather than off a search result. The cost of a wrong number here is not a bad-looking photo — it is a rejected application and another appointment.
Hit the exact figure your portal asks for
Type the cap, and quality bisection finds the highest quality that fits underneath it — without moving the pixel dimensions the portal expects. Free, no signup, nothing leaves your browser.
Open Compress to Target Size