Skip to main content
Image Tools 7 min read

Passport and Visa Photo Requirements: Pixels, DPI and File Size Limits

Why ID photos fail at the last step: print sizes to pixels, where 50 KB and 100 KB limits come from, why some are ranges not caps, and how to hit one without losing the face.

Written by Faruq Zhao Updated 2026-10-31

An ID photo has to clear two unrelated checks. The first is geometric: print size, aspect ratio, and how much of the frame the head fills. The second is file size: whatever the form says — 50 KB, 100 KB or 240 KB. Perfectly cropped at 512 KB, it won't upload; perfectly small with the face lost in the middle of the frame, it gets rejected just the same.

In practice the second check is what actually stops people: you can measure geometry yourself before uploading, but the size cap is enforced by software that returns one cryptic error line and never tells you which rule you broke.

Two unrelated checks

The requirements list looks long, but it splits into three groups:

  • Geometry: print size, pixel dimensions, aspect ratio, and the head's size and position within the frame.
  • File properties: format (usually JPEG), color mode (24-bit RGB, not CMYK or grayscale), and a size range — note that some systems impose both a floor and a ceiling.
  • Content: natural expression, eyes open, plain light background, glasses no longer allowed in many countries, head coverings only for religious reasons, no shadows, nothing added.

When a system says only "invalid file", the problem is usually the second group. Confirm the file's true type and actual byte count before redoing the crop.

Millimeters, pixels and DPI: how the three relate

A digital photo has no physical size — only a pixel grid and a byte count. Physical size appears only once you decide how densely to lay those pixels on paper, and that density is DPI (dots per inch). The conversion is one formula: pixels = millimeters ÷ 25.4 × DPI.

The same print size at two output densities

Print size At 300 DPI At 600 DPI
35 × 45 mm ≈ 413 × 531 px ≈ 827 × 1063 px
51 × 51 mm (2 × 2 in) ≈ 602 × 602 px ≈ 1205 × 1205 px
33 × 48 mm ≈ 390 × 567 px ≈ 780 × 1134 px

The DPI value stored in a JPEG is a note for the printer, not image data — not one extra pixel comes from it. Two 600 × 600 files, one tagged 72 DPI and one tagged 300 DPI, contain identical information, and an application portal treats them identically. A print shop doesn't: at 72 DPI it spreads those 600 pixels across roughly 21 cm of width, at 300 DPI across about 5.

Re-encoding a JPEG in the browser (which is what browser-based compressors do) drops the EXIF metadata, DPI tag included. The pixels survive; the tag doesn't. For upload-only that's irrelevant — but if you also need a print, that's the reason to keep the original.

Common applications' specs

These are the specs most often cited for major application types. The size column is a rough guide, not a promise: web forms, paper forms and consulates can differ within the same country, and several entries below carry both a floor and a ceiling.

Common ID photo specs (always defer to your application channel's official instructions)

Application Usual print size Typical pixels Typical file size
US visa (DS-160) 51 × 51 mm (2 × 2 in) 600 × 600 px and up, max 1200 × 1200 px JPEG; up to 240 KB
US passport (online renewal) 51 × 51 mm (2 × 2 in) at least 600 × 600 px JPG/PNG/HEIC; official range 54 KB to 10 MB — too small is also rejected
UK passport 35 × 45 mm digital: at least 600 × 750 px official range: 50 KB min, 10 MB max
Schengen visa 35 × 45 mm ≈ 413 × 531 px at 300 DPI varies by consulate; 50 KB and 100 KB caps are common
China visa (digital) print: 33 × 48 mm 354 × 472 px min, 420 × 560 px max typically 40–120 KB, JPEG
India visa (online form) square, 51 × 51 mm (2 × 2 in) square; see the form's own guidance official range: 10–300 KB, JPEG

Print size is only half the geometry. Most systems also specify how big the head must be: US photos want chin to crown at about 25–35 mm, many Schengen countries about 32–36 mm. A photo that's a perfect 35 × 45 mm with the face shrunk small in the middle gets rejected all the same — the per-country head-height table is in the country-by-country comparison.

Digital-photo rules aren't always the print size converted at 300 DPI. The UK specifies a pixel floor; China has its own pixel range. Fill web forms by pixels; take millimeters to the print shop.

Why portals cap at 50 KB or 100 KB

The caps date from when these systems were built: storage was expensive and networks were slow, and a system collecting millions of applications couldn't afford multi-megabyte photos. The limit got copied from system to system and stayed. And 50 KB is actually well chosen even today: with a decent crop, it still holds a recognizable face.

The real trap: not every stated limit is a cap — some are ranges. Crush a photo to 18 KB against a 50 KB floor and it bounces just as hard. Before compressing, work out whether you're facing a ceiling, a floor, or a range:

  • Ceiling only: land just under it, with a little margin — different programs read the same file a few hundred bytes apart.
  • Range: aim for the middle, never hugging the floor.

Hitting the size cap without losing the face

Order beats settings: crop first, compress last, and start over from the original every time.

  • Crop to the required pixel size first. Compressing a 12-megapixel photo down to 50 KB and then cropping throws away most of the quality you just paid for.
  • Pixels are yours to cut; the compressor's job is quality. The site's compressors have a "target size" mode and a "quality" mode; target mode first binary-searches the JPEG quality at full resolution and only steps the resolution down — to at most 80% of the original — if the target still isn't reachable, keeping the largest of all passing results.
  • Faces want JPEG. PNG is lossless; a portrait as PNG won't reach 50 KB without shrinking into mush. "Auto" mode outputs JPEG for photos, keeping PNG only when transparency must survive.
  • Never re-compress an already-compressed file. Keep the master; when a result disappoints, start again from the original.
  • Leave headroom. The tools trim the target 5% automatically — a 50 KB target lands around 47 KB — and tell you plainly whether the target was met.
  • HEIC needs real conversion. Renaming an iPhone .heic to .jpg changes nothing; decode it to JPEG first.

The five-step workflow

  1. Write down four numbers: print size, pixel size, background/color requirements, and the file size range.
  2. Crop to spec: the required aspect ratio and head proportion, exported at the required pixel size.
  3. Export a master at high JPEG quality — this one is for keeps.
  4. Compress to target: open the target-size tool, enter the cap (say 50 or 100, in KB), and confirm the tool reports the target met.
  5. Verify, then upload: check the downloaded file's real byte count and true type — then upload. For printing, take the master, never the compressed copy.

The mistakes that get photos rejected

  • Photographing a print or shooting the screen: reflections, color shifts and moiré — most authorities disallow it outright.
  • A close-up wide-angle selfie: facial proportions distort, and the background never comes out clean.
  • Renaming .heic to .jpg: new name, same bytes.
  • Adding borders, date stamps or watermarks.
  • Over-shrinking "to be safe" when the form actually specifies a floor.
  • Taking the compressed upload copy to the print shop: it was tuned for the portal, not for paper.
  • Borrowing one country's spec for another: a 35 × 45 mm Schengen photo and a 51 × 51 mm US photo are not interchangeable.

FAQ

Is 50 KB enough for an ID photo?

Usually yes, because the cap governs bytes, not how much face survives. Faces compress very kindly under JPEG; a correctly cropped 600 × 600 at ~47 KB passes automated checks. The genuine failure is shrinking the photo to 200 × 200 to make the number — that's real, permanent detail loss.

Does DPI matter at upload?

Almost none. Portals read pixel dimensions and byte count. DPI lives in metadata as a note for printers, and re-encoding usually strips it anyway. It matters to the printing step, not to the web form.

The system says "invalid file" but it's a JPEG — what now?

Check three things: the extension may not match the content (that's what an .heic rename looks like); the file may sit under a pixel or size floor the form never stated; and the color mode may be wrong — RGB required, grayscale or CMYK given.

Can I just resize to the required pixels and upload?

Only if the size lands inside the range after the resize. Downscaling to 600 × 600 usually clears the cap by miles — but detail-heavy photos can still exceed it. Resize, then compress to target, then verify the result once more.

Will my face be unreadable at 50 KB?

Not if you start from a correctly cropped original and let the tool trade resolution and quality in a sane order. The risk isn't compression — it's over-compressing a badly cropped photo, which yields exactly the blurred tiny face that both human and automated checks reject.

Further reading

Faruq Zhao

I build and maintain zztools.org — the tools, the guides, and the reference data behind them. If something on this page is wrong, write to support@zztools.org: it reaches me, not a ticket queue.

Tools used in this guide

Compress Image to 50KB

Compress photos to exactly 50KB free online. Shrink JPG, PNG or WebP to 50KB for form uploads and email attachments — done in your browser, private and instant.

Compress Photo to 50KB

Compress photos to exactly 50KB online for free. Resize and compress JPG, PNG photos to 50KB for web forms, uploads and email — private, processed in your browser, no upload.

Compress Image to 100KB

Compress images to exactly 100KB free online. Shrink JPG, PNG or WebP under 100KB for forms, applications and email attachments — no upload, entirely in your browser.

Compress HEIC to 50KB

Compress iPhone HEIC photos to 50KB free online. For size-limited jobs like form uploads and email attachments. Processed in your browser, never uploaded.

Compress HEIC to 100KB

Compress iPhone HEIC photos to exactly 100KB free online. HEIC becomes JPG while shrinking, for forms, uploads and email attachments. Private — nothing uploaded.

Compress JPEG to 100KB

Compress JPEG to exactly 100KB free online. Shrink JPG photos to 100KB for forms, email and web uploads — processed in your browser, private, no watermark.

Compress PNG to 50KB

Compress PNG to 50KB online for free. Keeps the alpha channel — ideal for fast-loading web optimisation, mobile and AMP pages. Resolution steps down until it fits.

Compress PNG to 100KB

Compress PNG to exactly 100KB online for free. Keeps the alpha channel — ideal for logos, screenshots and UI assets. Processed locally in your browser, no upload.

Compress Image to 20KB

Compress images to exactly 20KB free online. Shrink JPG, PNG or WebP to 20KB for strict upload caps and thumbnails — instant, in-browser, no upload.

Compress PNG to 20KB

Compress PNG to 20KB online for free. Radically lean — ideal for favicons, app icons and chat stickers. Keeps the alpha channel, processed locally in your browser, no upload.

More guides