How to Compress Passport Photos Online
Exact file size limits for the US, UK, India, Canada, and Schengen. Why portals reject your photo, and how to fix it in under two minutes without sending your image anywhere.

You took the photo at home. Good lighting, plain background, neutral expression. You open the government portal, click upload, and get an error. The file is too large. Or the wrong format. Or both.
Passport photo compression sounds like a minor technical task. In practice, it is where a lot of applications get stuck, sometimes for days, because the fix is not obvious and the error message is not helpful. Every country has specific file size limits, specific pixel dimensions, and specific format requirements, and your phone camera is guaranteed to produce a file that violates at least one of them.
This guide covers the actual specifications for the most common application portals, what goes wrong and why, and the fastest way to fix it.
Why Government Portals Are So Strict About File Size
Passport and visa portals run automated biometric validation on every uploaded photo. The system reads the image, measures the face dimensions, checks background color uniformity, and compares the result against its compliance rules, all before a human ever looks at the application.
For that automated check to work correctly, the image needs to be within a specific file size range. Too large and the upload times out or exceeds the server's processing limit. Too small and the image has likely been compressed so aggressively that the facial recognition system cannot extract reliable measurements. This is not bureaucratic pedantry. The file size limit is a direct consequence of the biometric system's requirements.
The other reason for strict limits: these portals process enormous volumes. The US State Department processes millions of passport applications annually. India's Passport Seva portal handles similar volumes. Imposing file size caps keeps storage and bandwidth costs manageable across that scale.
What Your Phone Actually Produces
A typical smartphone photo is between 3MB and 12MB as a JPEG, and between 1.5MB and 6MB as HEIC (the default format on iPhones).
Passport portals want files between 10KB and 500KB in most cases, sometimes as low as 20KB for the strictest systems. The gap between what your camera produces and what the portal accepts is roughly 10x to 100x. Bridging that gap without destroying image quality is the entire challenge.
The HEIC format issue deserves specific mention because it causes more passport photo upload failures than any other single reason. iPhones have defaulted to HEIC since iOS 11 in 2017. Government portals, without exception, want JPEG. The Passport Seva portal in India states explicitly: JPEG only, not PNG, not HEIC. The UK passport photo checker rejects HEIC. US DS-160 visa forms require JPEG. When an iPhone user uploads directly from their camera roll without converting, the upload fails silently or throws a vague format error.
Convert from HEIC to JPEG before doing anything else. The HEIC to JPG converter handles this in the browser with nothing uploaded to a server. That single step resolves the majority of iPhone-related passport photo upload failures.
File Size Requirements by Country
The specifications below reflect current requirements as of 2026 from official government sources. Always verify against the specific portal you are using before submitting, as requirements can change.
United States
US passport photos are 2x2 inches (51x51mm), square format. For digital uploads through the online passport renewal system, the accepted file range is 54KB to 10MB in JPEG format, at minimum 600x600 pixels. For the DS-160 visa application, the limit is tighter: JPEG, minimum 600x600 pixels, maximum 240KB. The DV Lottery requires exactly 600x600 pixels.
Most people are well within these limits if they compress a phone photo to 150-200KB. The DS-160 240KB cap is the one that catches people, particularly with higher-resolution photos that have not been compressed.
United Kingdom
UK passport photos are 35x45mm, portrait orientation. For digital uploads, the UK Government's portal accepts JPEG files between 50KB and 10MB at minimum 600x750 pixels. The background must be light grey or cream, not white. A pure white background is a common rejection reason for UK applications, regardless of file size compliance.
India (Passport Seva)
Since September 2025, India adopted the ICAO Doc 9303 standard. The Passport Seva portal now requires exactly 630x810 pixels (7:9 portrait ratio, not square), JPEG format, and a file size under 250KB with a minimum of approximately 10KB. The face must occupy 80-85% of the photograph, which is a tighter framing than most other countries.
The biggest source of rejection on Passport Seva in 2026 is applicants submitting the old 51x51mm square format. Many studios across India still produce the legacy square dimensions by default. Verify you have a 630x810 pixel file before uploading.
Canada
Canadian passport photos are 50x70mm, the largest standard format in common use. For digital submissions, the portal accepts JPEG files between 240KB and 10MB at minimum resolution. The face must be 31-36mm from chin to crown within the frame.
Schengen (EU visas and national IDs)
Schengen countries use 35x45mm at 300 DPI for printed photos. Digital portals for EU applications typically accept JPEG files under 500KB at minimum 600x750 pixels. Each country's specific visa portal may have tighter limits; the German consulate's online form, for example, enforces stricter checks than the general ETIAS system.
Australia and New Zealand
Both use 35x45mm photos at 300 DPI. Digital submissions accept JPEG between 200KB and 5MB.
The Compression Process: What to Do in Order
Getting a passport photo from your phone's camera to an accepted upload is a four-step process. Do them in this order for the best result.
Step 1: Convert from HEIC if you are on an iPhone
Check the file extension. If it ends in .heic or .HEIC, use the HEIC to JPG converter before anything else. This takes about ten seconds. The resulting JPEG will still be large, but you now have a format the portal will accept.
Step 2: Resize to the correct pixel dimensions
Look up the exact pixel dimensions for your specific portal. Do not guess. The dimensions listed on the portal documentation are the dimensions the automated validator checks against.
For Passport Seva (India): 630x810 pixels. For US DS-160: minimum 600x600, maximum 1200x1200 pixels. For UK digital upload: minimum 600x750 pixels.
Use the resize image tool to set the exact dimensions. Resizing first and compressing second always produces better results than compressing a full-resolution photo, because you are starting the compression step with fewer pixels to pack into the file size budget.
Step 3: Compress to within the required file size range
This is where the specific compression tools become useful. The compress image for passport tool handles the most common passport photo compression use case. For portals with specific KB targets, the size-specific tools give you exact control: compress to 50KB, compress to 100KB, compress to 200KB, compress to 250KB.
A note on minimum file sizes: some portals impose a floor, not just a ceiling. India's Passport Seva has a minimum of around 10KB. If you over-compress, the portal rejects the file as too small. At the compression settings needed to hit most passport photo targets, this is rarely a practical problem, but keep it in mind if your portal specifies both a minimum and a maximum.
Step 4: Verify the output before uploading
Open the compressed file and look at it at 100% zoom on your screen. The face should be clearly recognizable. There should be no visible blocking or blurring around the edges of the face, hairline, or collar. If you see obvious artifacts, the file has been compressed too aggressively for the resolution, and you need either a higher-quality source image or a less aggressive compression target.
One thing to verify specifically: the EXIF metadata. Government portals with biometric validation are reading your image file and running automated checks. While EXIF stripping does not affect biometric validation, it does reduce file size by 10-20%, which gives you more headroom within the KB limit before quality starts degrading. All tools at ImgTweak strip EXIF automatically. If you are using another tool, verify it handles metadata removal. The guide on EXIF data and why it matters explains what is inside that metadata and why removing it for document uploads is always the right call.
Why Passport Photo Quality Matters More Than It Seems
There is a temptation, when trying to hit a small file size, to over-compress and accept whatever quality you get. This creates problems specific to passport photos that do not apply to other images.
Automated biometric validation measures specific facial landmarks: the distance between the pupils, the ratio of face width to face height, the position of the chin, and the crown of the head. These measurements require sufficient image clarity to work reliably. A heavily compressed photo with visible JPEG artifacts around the edges of the face may fail the biometric check even if it passes the file size validation.
USCIS has also tightened rules around AI-altered photos. Any photo with visible retouching, filters, or algorithmic smoothing may be rejected under 2025 rules, even if the image is technically compliant on dimensions and file size. Compress the photo, but do not alter it. Compression at a reasonable quality level (75-85% for JPEG) is not enhancement. It is just making the file smaller. That distinction matters.
The Background Color Issue
This falls outside compression but is the other major cause of passport photo rejection, and it is worth covering because it often gets confused with format or size issues.
The US requires a white or off-white background. The UK requires light grey or cream, not white. India requires plain white. Many Schengen consulates specify a light grey background. Submitting a UK photo with a white background, or a US photo with a grey background, produces a rejection that has nothing to do with file size or format but looks identical to a technical upload failure in terms of the error message you receive.
If your photo passes file size validation but still gets rejected, and you are confident the dimensions are correct, check the background color specification for your specific country and document type.
A Checklist Before You Submit
Format: JPEG only. Not PNG, not HEIC, not WebP. JPEG every time, for every country's portal.
Pixel dimensions: exactly as specified for your portal, not the general country standard. The DS-160 portal and the online passport renewal portal have different dimension requirements even though both are US government applications.
File size: within the stated range. If the portal states 20KB to 500KB, you need to be in that range, not just under the maximum.
Background: the correct color for your specific country and document type. Do not assume white is always correct.
Face coverage: within the stated percentage for your country. Most ICAO-standard countries want 70-80% face coverage. India's Passport Seva now requires 80-85% since the September 2025 update.
Recency: most countries require the photo to be taken within the past 6 months and to represent your current appearance.
If you are compressing a photo that will be used for applications across multiple countries, note that you will need different compressed versions for different portals. The US DS-160 and the Indian Passport Seva portal have incompatible dimension requirements. A single file will not serve both correctly.
For Photos Going to Both Print and Digital
If your passport application requires physical printed photos as well as a digital upload, the two versions need different treatment.
For print: 300 DPI minimum, printed on photo-quality paper. Do not compress the file used for printing below the point where it would print at 300 DPI at the required physical dimensions. A 2x2 inch photo at 300 DPI needs at least 600x600 pixels. Compressing the printed version to 50KB before printing will produce a visibly low-quality print.
For digital upload: compress as described above to hit the portal's file size requirement.
Keep the two files separate. The compressed upload version is not suitable for printing. The full-resolution print version will fail the portal's file size check.
The guide on best image sizes for blogs and websites has a section on DPI and resolution for print versus screen that covers this distinction in more detail if you want the technical background.