Compress passport photo files by cropping to a square first, because every government portal rejects a rectangle, then re-encoding the image as a JPEG and lowering the quality until the file lands inside your portal's exact KB window. The US visa wants a 600 to 1200 pixel square under 240 KB. India's visa wants a 350 to 1000 pixel square at 10 to 300 KB.
Every one of these forms runs two separate checks that have nothing to do with each other. Shape and pixel dimensions have to sit inside a specific range, almost always an exact square, and the passport photo file size has to land inside a KB window that says nothing about how sharp the photo looks. A phone photo off the camera fails both at once: it is a four to six megabyte rectangle facing a limit measured in tens or low hundreds of kilobytes, and the portal bounces the whole upload without telling you which check you missed. My broader guide to compressing images for uploads and forms covers the general version of this problem; this page is the government portal version, with the exact numbers.
Why do passport and visa photo uploads get rejected?
A passport or visa photo gets rejected for one of two reasons: the pixel dimensions and shape fall outside the portal's range, or the file size falls outside its KB window. Both checks run automatically, before a human ever looks at the photo, so a sharp, well lit headshot uploaded at the wrong file size fails exactly as fast as a blurry one in the wrong shape.
Neither check cares about the other. The right pixel count at 400 KB fails on size. A perfect 200 KB file that is still rectangular fails on shape. The portal does not average the two or give partial credit, and it rarely tells you which rule you broke, which is why the same photo can bounce three times while you guess at what changed.
The reason phone photos fail so hard is that the camera is not built for this. It saves four to six megabytes at a quality far above what any screen shows, in whatever aspect ratio you framed, because it does not know you are about to feed it to a form that wants a 600 pixel square under a quarter of a megabyte. Getting from that file to a passing one is two edits, crop then compress, and most tools only do the second.
What size does your portal actually want?
Each portal publishes an exact spec, and the specs disagree on almost every number, which is why "roughly passport sized" is not a real target. The two most common examples, the US visa DS-160 upload and India's online visa portal, do not overlap: a file built for one can fail the other on pixels, on KB, or on both.
US and India visa photo requirements at a glance
| Spec | US visa (DS-160) | US passport | India visa |
|---|---|---|---|
| Format | JPEG | JPEG upload | JPEG |
| Shape | Square, 1:1 | 2 by 2 inch print | Square, equal sides |
| Min pixels | 600 x 600 | High resolution | 350 x 350 |
| File size | 240 KB or under | No stated cap | 10 to 300 KB |
The US visa image must be a square JPEG between 600 x 600 and 1200 x 1200 pixels, 240 KB or smaller, in 24 bit sRGB color, with the JPEG compression ratio held at 20 to 1 or lower, per the U.S. Department of State digital image requirements. India's visa portal wants a square JPEG, 10 to 300 KB, with equal height and width, per the India Visa Online instructions, and its own upload document pins the pixel range at 350 x 350 minimum to 1000 x 1000 maximum in the India Visa photo upload PDF.
The US passport is a different form again, and the difference trips people who assume it matches the visa. A passport photo is a physical 2 by 2 inch color print, and for online renewal the State Department passport photo page says to upload the original, unedited file and specifically not to stretch or compress it. Reusing a visa ready photo for a passport application, or the reverse, is one of the fastest ways to fail a photo requirement twice on the same trip.
How to compress passport photo files to a KB limit
Once the crop is a square inside the pixel range, hitting the KB cap is the fast part: export as JPEG, then pull the quality down while you watch the output size, and stop the moment the file clears the line. Because a cropped 600 x 600 photo holds so few pixels, it usually clears 240 KB at the default quality of 80 without any further work.
The one pass version
- Crop the photo to a square in your phone or computer editor, and resize it to a target inside the range, 600 x 600 is a safe middle for the US visa.
- Open the free compressor built to hit a small KB target and drop the square JPEG in, leaving the output format on JPEG. Both portals reject PNG or WebP outright, whatever the file size.
- Read the output size on the card. A 600 x 600 crop at quality 80 usually lands well under 240 KB in one pass, because most of a file's weight comes from pixel count, not the quality slider.
- If it is still over, step the quality down and recheck the output size each time until it clears your cap, under 240 KB for the US visa or inside 10 to 300 KB for India.
Watch the floor as well as the ceiling
India's window has a bottom, 10 KB, and an already small crop can slip under it if you keep dragging the quality down after the file has cleared the top. Undershooting the minimum fails the upload exactly as surely as going over the maximum. If you land at 6 or 7 KB, back the quality up a few steps rather than resizing the image smaller; a slightly larger file is the easier fix. For the general mechanics of hitting any exact KB number, including a command line route for a batch of ID photos, see the guide to reducing a file to an exact size in KB. If you prefer a desktop editor that previews the size as you drag, Photoshop's Save for Web workflow shows the output KB live.
How do you crop and resize to the right pixel dimensions first?
Crop to a square before you touch compression, because neither portal accepts a rectangle no matter how good the resulting file size is. The passport photo pixel size is a separate, earlier decision from the file size, and getting it wrong means the file size work was wasted.
Use your phone's or computer's built in crop tool, or the free official photo tool your government portal offers; the State Department, for example, provides one that crops and resizes an image to exactly 600 x 600 pixels for the visa upload. Set the crop to an exact pixel target inside the allowed range: 600 x 600 is the US visa minimum, 1000 x 1000 the India maximum.
This tool does not crop or resize images yet, that capability is on the roadmap and not shipped, so this step happens before the photo ever reaches it. That is the honest split of labor: the shape and dimension half is an editor or a portal tool, and the compress to KB half is where a dedicated compressor earns its place. People searching for how to compress passport size photo files are usually stuck on the second half, having already cropped, and that is the half this page solves.
Why does cropping first beat compressing harder?
Cropping first beats compressing harder because dimensions drive file weight far more than the quality slider does, and the arithmetic is dramatic. A typical phone photo is 4000 by 3000 pixels, twelve million of them. Crop to a square on the shorter side and you have 3000 by 3000, nine million pixels, a quarter of the frame gone before you touch a slider. Resize that square down to the US visa's 600 x 600 minimum and you land at 360,000 pixels, about 3 percent of the original twelve million, a 97 percent cut in raw pixel count before compression even starts.
That is why a cropped, correctly sized photo routinely clears 240 KB near the default quality of 80, while the same photo left uncropped would need compression so harsh to hit the cap that the face would visibly break up. You are not fighting the KB limit with quality loss; you are removing the pixels that made the file heavy in the first place.
| Stage | Dimensions | Pixels | Share of original |
|---|---|---|---|
| Original | 4000 x 3000 | 12,000,000 | 100 percent |
| Square crop | 3000 x 3000 | 9,000,000 | 75 percent |
| Resized | 600 x 600 | 360,000 | 3 percent |
How do you verify color profile, format, and dimensions?
Check four things before you submit: JPEG format, a square crop inside the pixel range, a file size inside the KB window, and the right color profile. The first three are obvious once you know the spec. The fourth catches people who got everything else right.
The US visa calls for 24 bit sRGB color. Most cameras save that way by default, but a photo edited or exported through certain phone apps can carry a wide gamut Display P3 profile instead, the color space Apple devices use, and the DS-160 system can reject that even when the pixels, shape, and file size all pass, per the State Department's sRGB requirement. Convert the profile to sRGB before you upload if you edited on a phone. The same page caps the JPEG compression ratio at 20 to 1 against the raw pixel data, a limit that ordinary encoding at any reasonable quality stays well inside, so hitting it is rare unless a tool was set to an extreme.
What mistakes cause an instant rejection?
The most common mistake is reusing one file for every application. The US visa's 240 KB, 600 to 1200 pixel square and India's 10 to 300 KB, 350 to 1000 pixel square do not line up, so a file that passes one fails the other on pixels, KB, or both. Confusing the passport rule with the visa rule is the second: the passport forbids editing the online renewal upload, while the visa expects a crop and a compress.
Uploading anything short of a perfect square is the third; both portals reject a rectangle outright, and a near square that is off by a few pixels still counts as a rectangle. Compressing below the minimum is the fourth, easy to hit on an already small crop. And digitally altering the photo to change your appearance is the fifth: the US visa forbids it, and acceptance past that point is at the consulate's discretion, not something compression can fix. Match every visa photo requirement in the portal's own document rather than a summary you found elsewhere, because the numbers move between portals and between the passport and the visa.
When should you not compress the photo at all?
Skip compression entirely for a US passport renewed online. That form is not the visa: it asks for the original, unedited photo, states no KB limit, and tells you directly not to stretch or compress the image to make it fit, per the State Department passport photo instructions. Running that file through any compressor, including this one, works against the instructions rather than with them.
Compression is the right move for the visa upload, which has a real cap to hit. It is the wrong move for a passport renewal that wants the file exactly as the camera produced it. When you are not sure which form you are on, read the portal's own upload rules before you edit anything; the presence or absence of a stated KB limit tells you immediately whether compression is part of the job.