The form has a red box on it. Something like “the file you selected exceeds the maximum size” or “image resolution is below the minimum required”. Your photo looks perfect. Your phone says it is 3.8 MB and 4032 by 3024 pixels, which sounds like plenty, and the application disagrees.
Digital passport photo requirements are a different problem from the physical ones. Nothing about your face, your background or your glasses is at issue here. This is arithmetic and file formats, and the failures are mechanical: too many bytes, too few pixels, the wrong shape, the wrong colour profile, or a rotation flag buried in the file’s metadata that your phone respects and the government’s checker does not.
The reassuring part is that mechanical problems have mechanical fixes, and you almost never need to reshoot. In most cases the file you already have contains everything the application needs. It just needs to be resized, re-encoded or re-saved before it goes in.
This post covers the specs I can state with confidence, the two dominant error messages and exactly how to clear each one, the quiet failure modes like colour space and EXIF orientation, and a worked example that takes a 1.2 MB file down to a tight kilobyte cap without wrecking it.
Standing caveat first, because it matters more here than anywhere: digital specs are revised more often than print sizes, and they differ between a country’s passport service and its visa service. Read the limits printed on the actual form you are filling in, and confirm against the official government page for that application. If a figure below disagrees with what your form says, your form is right.
The short answer
For US online submission, the image must be square, JPEG, at least 600x600 pixels and no more than 1200x1200 pixels, under the size cap shown on the form (10 MB for the passport photo upload), and taken within the last six months. For the UK, at least 600 pixels wide by 750 pixels high, JPEG, between 50 KB and 10 MB. Use plain sRGB colour, not CMYK and not greyscale. Upload the original camera file cropped to the required shape, never a screenshot and never a scan of a print. If the upload fails on size, reduce pixel dimensions first and JPEG quality second. If it fails on resolution, recrop from the original rather than upscaling. Check your application’s own stated limits before submitting, since these change.
What the major systems ask for
| Application | Minimum pixels | Maximum pixels | File size | Format | Notes |
|---|---|---|---|---|---|
| US passport, online photo upload | 600 x 600 | 1200 x 1200 | Up to 10 MB | JPEG | Must be square. Colour. Taken within 6 months |
| US visa, online application upload | 600 x 600 | 1200 x 1200 | Historically capped in the low hundreds of KB | JPEG | Square. The tight cap is why a photo can pass a passport upload and fail a visa upload. Verify the current figure on the form |
| UK passport, digital | 600 x 750 | Not published as a hard cap | 50 KB to 10 MB | JPEG | Stated as minimum width and height rather than a fixed ratio |
| Schengen visa | Mostly print-based | n/a | n/a | n/a | Each member state’s portal sets its own digital rules where one exists |
| Canada | Varies by stream | Varies | Varies | JPEG | Print size is 50 x 70 mm. Digital rules differ between application types |
| India, online portals | Commonly square | Commonly square | Often capped in the tens to hundreds of KB | JPEG | Figures differ between passport, visa and e-visa portals. Check the specific portal |
| General ICAO-aligned target | 600 x 600 or larger | n/a | n/a | JPEG, sRGB | Underlying standards are ICAO Doc 9303 and ISO/IEC 19794-5 |
I have deliberately left blanks and ranges where I do not have a figure I would stake a submission on. Where a row says “verify” or “varies”, that is not laziness, it is the honest state of the published information, and filling it with a confident number would be worse than useless to you. If you need physical sizes rather than upload specs, the reference in passport and visa photo sizes by country is the better page.
Error one: file too large
This is the most common upload failure and the easiest to fix badly.
A modern phone photo is large for two reasons at once: it has a lot of pixels, and it is saved at high JPEG quality. A 12-megapixel shot is 4032x3024, which is 12.19 million pixels, and at typical quality settings that lands somewhere between 2 and 5 MB. Against a 240 KB cap, that is roughly ten to twenty times too big.
The instinct is to reach for a compressor and crank the quality down until the number goes green. Do not start there. Order of operations matters, because the two levers do different damage.
- Crop first, to the required shape. Cropping a 4032x3024 photo to a square around the head might leave you at 2400x2400, which is 5.76 million pixels, less than half of what you started with. File size falls roughly in proportion.
- Resize to the target dimensions. Take that 2400x2400 down to 600x600. Pixel count drops from 5,760,000 to 360,000, a factor of 16. File size drops steeply, usually by a similar order.
- Only now adjust JPEG quality. Start at 90 and step down in fives. Somewhere between 75 and 85 you will normally clear a 240 KB cap on a 600x600 image with no visible degradation.
- Re-check the dimensions after saving. Some tools quietly resample when they re-encode.
- Stop as soon as you are under the limit. There is no prize for being far under it, and every additional step down costs detail.
Doing it in the other order, quality first, is how people end up with a 1200x1200 image at quality 40 that meets the size cap and looks like a fax. The Image Compressor handles the last stage on your own device without uploading the file anywhere, which for an identity document is worth caring about.
Rough numbers so you know what to expect
An uncompressed 600x600 RGB image is 600 x 600 x 3 bytes = 1,080,000 bytes, just over 1 MB. JPEG at quality 90 typically brings a portrait like that to somewhere around 100 to 160 KB, and quality 80 to roughly 60 to 100 KB. Those are approximations that vary with how much detail is in the picture, and a plain background compresses far better than a busy one, which is a small bonus of doing the background properly in the first place.
Error two: resolution too low
The mirror image of the first problem, and a harder one, because you cannot create detail that was never captured.
It usually happens for one of four reasons. You cropped very tightly into a photo taken from across the room. You used a photo someone sent you through a messaging app, which downscaled it on the way. You took a screenshot. Or you used an old picture from a low-resolution camera.
The right fix is almost always to go back to the original file and recrop less aggressively, or to reshoot from closer. Shooting closer and cropping lightly beats shooting far away and cropping heavily, for the simple reason that pixels spent on your face are pixels the checker can use.
- Find the original camera file, not the copy in a chat thread or a cloud album that may have been re-encoded.
- Check its true dimensions. On a phone, the photo details screen shows them. On a desktop, the file properties do.
- Recrop to the required shape, keeping as much of the original resolution as the crop allows.
- If the crop still lands below the minimum, reshoot. Move the camera closer rather than zooming digitally, because digital zoom is a crop performed in the camera.
- Only if a reshoot is genuinely impossible, consider upscaling, and go in with realistic expectations.
On upscaling: an image upscaler can raise the pixel count and will get you past a numeric minimum. What they cannot do is recover detail that was never recorded. The result may pass a dimension check and still fail a sharpness or quality check, because an upscaled face has soft, slightly synthetic edges around the eyes and hairline. I would treat it as a last resort for a photo that cannot be retaken, not as a routine step.
The trap between the two errors
Here is the part most guides skip. Clearing both errors is not the same as passing.
Automated photo checks do more than count pixels. They locate the face, find the eye centres, measure head height, assess whether the background is uniform, and look at sharpness and exposure. Heavy JPEG compression interferes with several of those at once. It creates blocky 8x8 artefacts, smears fine gradients, and puts ringing around high-contrast edges, which is exactly where the eye and hairline boundaries live.
So a file squeezed to quality 35 to fit a cap may sail through the upload and then be refused later by a human or a quality check, with a message about clarity rather than size. That is a worse outcome than an instant error, because you have lost days.
Which is why the order in the walkthrough above matters. Reduce pixel count aggressively, reduce quality gently. If you cannot fit under a cap at quality 75 or above, your image probably has more pixels than it needs, not too much quality.
EXIF orientation, the sideways upload
This one is genuinely baffling when it happens, and it is more common than people expect.
Your phone’s camera sensor has a fixed orientation. When you turn the phone, the sensor does not turn with it. So the camera writes the image data in the sensor’s native orientation and adds an EXIF tag, Orientation, that tells software how to rotate the picture for display. Value 1 means no rotation, 6 means rotate 90 degrees clockwise, 8 means 90 counter-clockwise, 3 means 180.
Your phone gallery honours that tag, so the photo looks correct to you. Some upload checkers, image libraries and older backend systems read the raw pixel data and ignore the tag entirely. Result: you upload a portrait and the government’s system sees it lying on its side. Depending on the system you get a rotated preview, a face-detection failure, or a rejection that mentions the head position rather than the rotation.
The fix is to bake the rotation into the pixels and then remove the tag:
- Open the file and inspect the metadata. An EXIF Viewer will show you the Orientation value directly, and if it is anything other than 1, you have found your problem.
- Rotate the image so it appears upright, using a tool that rewrites the pixel data rather than just flipping the tag. Rotate Image does this.
- Re-save as JPEG.
- Strip the metadata with an EXIF removal tool, which also clears the GPS coordinates of wherever you took the photo. Sending a government form the exact coordinates of your kitchen is not a disaster, but there is no reason to do it.
- Re-check the file opens the right way up in more than one program. A desktop image viewer and a browser are a good pair, since they sometimes disagree.
Where the tool saves you the round trip
If the previous three sections read like a lot of steps, that is because doing this by hand is a lot of steps. Crop to shape, resize to exact pixels, fix orientation, re-encode under a byte cap, verify.
The Passport Photo Maker exists to collapse that into one pass. You pick the country and application type, it applies the crop and head-position spec, and it exports at the pixel dimensions that application expects. Everything happens in your browser on your own machine, which means the photograph of your face is never uploaded to a third-party server, there is no account to create, and there is no watermark or daily limit on the output. For a document you are about to attach to a passport application, keeping the file local is the sensible default rather than a feature. If you already know the exact size you need, the Passport Size Photo Maker does the same job in fewer clicks.
Colour space, bit depth and greyscale
Most people never think about colour profiles, and most of the time that is fine, because phone cameras produce sRGB by default.
Where it goes wrong is after editing. Some desktop editors will happily save in Adobe RGB, ProPhoto RGB or, if the file has been anywhere near a print workflow, CMYK. A checker expecting plain sRGB may reject the file outright, or accept it and render the skin tones noticeably off, which then looks like a lighting problem you did not have.
Greyscale is a related trap. Passport photos must be in colour. A black and white conversion, or a file saved with a single channel, fails. So does anything with an alpha channel that a converter has flattened onto black. If your background looks perfect on your screen and arrives grey or dark in a preview, suspect transparency.
Practical rule: export as a standard JPEG in sRGB with no embedded exotic profile, and if your editor offers “convert to sRGB” on export, take it. The US digital spec also references 24-bit colour, which is what a normal RGB JPEG already is.
Screenshots, scans and photos of photos
Three closely related ways to destroy an image, in descending order of severity.
A screenshot captures whatever your display is showing, at your display’s pixel density, then saves it as a new file. You lose the camera’s resolution, you gain a second round of compression, and on many phones you also get the wrong aspect ratio and any interface elements that were on screen. It almost always lands below the pixel minimum.
Scanning a printed photo is better but still a downgrade. You are digitising an image that has already been through a print process, so you inherit the printer’s dot pattern, the paper’s texture and any colour shift the lab introduced. Scan at 600 dpi or higher if you must do it, and expect a softer result than the original file. Use this only when the original digital file is genuinely gone.
Photographing a printed photo with your phone is the worst of the three. You add glare, keystone distortion from the angle, your own shadow, and often a moiré pattern from the print’s halftone dots interacting with the sensor grid.
If you have a good print but no file, and you also need more prints, the reverse route is easier than you think, and our post on printing passport photos at home covers laying out a sheet from a single good digital file.
A worked example: 1.2 MB down to under 240 KB
Say Lena is filling in a US visa application and her photo upload keeps failing on size. Her file is 1200x1200 pixels and 1,180 KB, exported at JPEG quality 95 from her laptop. The form’s cap is 240 KB.
Step one, dimensions. She is at the maximum allowed size, and the minimum is 600x600. Halving each side takes the pixel count from 1200 x 1200 = 1,440,000 down to 600 x 600 = 360,000, a quarter of the data. Her file drops to roughly 300 KB. Still over, but close.
Step two, quality. She re-exports the 600x600 image at quality 85 instead of 95. On a portrait with a plain background, that typically lands somewhere near 110 to 140 KB. Call it 125 KB. Comfortably inside the cap with room to spare.
Step three, verification. She confirms the file is still exactly 600x600, still JPEG, still sRGB, and still square. She opens it at 100% and checks the eyes and the hairline for compression mush. They look clean, because she cut pixels before she cut quality.
Total loss of quality that a human would notice: essentially none. Total time: about four minutes. Had she gone the other way and pushed quality down to 30 at full 1200x1200 size, she would have hit the same 125 KB with a visibly degraded face and a real chance of a later refusal.
The six-month rule and how the date is judged
Almost every authority requires a photo taken within the last six months. What surprises people is how it is assessed.
Reviewers are not reading your EXIF timestamp and comparing it to a calendar. They are comparing the photo to your appearance and to your previous document. The rule that actually bites is the current likeness rule: the photo must look like you now. A photo taken five months ago, before you grew a beard or changed your hair colour substantially, can be refused despite being inside the window. A photo taken seven months ago that looks exactly like you may never be questioned.
I would not treat that as licence to submit an old photo. I would treat it as a reason not to relax because you are technically within six months. If you have changed, reshoot.
One practical consequence: do not edit the EXIF date to make a photo look recent. It achieves nothing, since the date is not what is being checked, and misrepresenting information on a passport application is a serious matter in every country I am aware of.
Where the real problems start
Compressing before resizing. Covered above and worth repeating, because it is the single most common self-inflicted wound in this whole area.
Uploading a HEIC file. Modern iPhones default to HEIC, and most government forms want JPEG. Converting is easy, but the failure message is often just “unsupported file”, which does not tell you that.
Wrong aspect ratio. A US upload must be square. A photo that is 600x800 will be refused even though both numbers exceed 600.
Padding to reach a minimum. Adding white bars to make an image 600x600 does technically hit the dimension, and it also puts the head in the wrong position and changes the background geometry. Recrop instead.
Editing the face. Skin smoothing, blemish removal, teeth whitening and any beauty filter can be read as an altered image. Adjust exposure and crop, and leave your face alone.
Using a photo from social media. Every platform re-encodes and downscales. The file you download back is not the file you uploaded.
A perfect photo saved from an email preview rather than the attachment. Preview panes often serve a reduced-size copy. Download the actual attachment.
Forgetting the browser tab. Some upload forms time out and silently discard a large file mid-transfer, producing an error that reads like a format problem. If a compliant file fails twice, try a different browser before you start editing it further.
Frequently asked questions
What pixel size does a digital passport photo need to be?
For US online submission the image must be square, at least 600x600 pixels and no more than 1200x1200 pixels, in JPEG format. The UK asks for at least 600 pixels wide by 750 pixels high. Other countries publish their own minimums, so check the official page for your application type, because these figures are revised from time to time.
What file size should a passport photo be?
It depends entirely on the system you are uploading to. US passport photo uploads allow files up to 10 MB, while the UK asks for between 50 KB and 10 MB. Some visa applications apply far tighter caps measured in hundreds of kilobytes. Always read the limit on the form you are actually filling in rather than assuming a general number.
Why did my passport photo upload fail?
The two most common causes are a file that exceeds the size cap and an image below the minimum pixel dimensions. After those come wrong aspect ratio, a file that is not JPEG, an unusual colour profile such as CMYK or greyscale, and EXIF orientation data that makes the photo appear rotated to the checker even though it looks correct on your phone.
Why does my photo upload sideways or rotated?
Digital cameras and phones often record the picture in one orientation and store a separate EXIF tag telling software how to rotate it for display. Your phone honours that tag, and some upload checkers ignore it, so the image arrives on its side. Re-saving the file with the rotation applied, or stripping EXIF data entirely, fixes it.
Can I use a screenshot of my passport photo?
No. A screenshot is a re-photograph of a screen, captured at your display’s resolution rather than the camera’s, re-compressed a second time, and often the wrong aspect ratio. It typically falls below the pixel minimum and loses the fine facial detail an automated check relies on. Always upload the original camera file, cropped from the original.
How recent does a digital passport photo have to be?
Most authorities require a photo taken within the last six months, and also require it to be a true current likeness. Reviewers judge that on appearance rather than by reading file metadata, so a technically recent photo that no longer looks like you can still be refused. If your appearance has changed noticeably, take a new one.
What to do with this
Work from the original camera file, crop to shape, resize to the target pixels, then and only then reach for quality. That sequence solves the overwhelming majority of upload failures, and it does it without touching anything a reviewer will judge.
Keep a copy of the full-resolution crop as well as the compressed upload. If the form comes back asking for something different, you want the good file to hand rather than a 125 KB export you have to rebuild from. Producing both from the same source in the passport photo tool takes one extra click and saves the rebuild entirely.
And check the numbers on the form in front of you against the official government page for your country and your exact application type before you submit. Digital specs get revised, visa portals and passport services often apply different limits for the same country, and the page run by the authority issuing your document is the only one that decides.