Fairsize

The 20:1 compression rule, explained.

Updated 22 October 2026. Every number links to its official source below.

The short answer

The State Department says the compression ratio of a US visa photo should be 20:1 or less. A 24-bit colour image takes 3 bytes per pixel before compression, so a 600 × 600 photo is 1,080,000 bytes raw and must still be at least 54,000 bytes as a JPEG. Squeezing a photo far below the 240 kB limit can make it fail.

What the rule says

The digital image requirements list "Compression ratio should be less than or equal to 20:1" next to the other file rules: square, 600 to 1200 pixels, JPEG, 240 kB or less, colour at 24 bits per pixel.

The page gives the ratio, not a byte figure. The byte figures below are our arithmetic. The same page fixes the colour depth at 24 bits (3 bytes) per pixel, which sets the uncompressed size.

The arithmetic

Uncompressed size = width × height × 3 bytes. Divide by 20 to get the smallest file that keeps the ratio at 20:1 or less.

Photo sizeUncompressedSmallest file at 20:1Largest file allowed
600 × 600 px1,080,000 bytes54,000 bytes (54 KB)240 kB
800 × 800 px1,920,000 bytes96,000 bytes (96 KB)240 kB
1000 × 1000 px3,000,000 bytes150,000 bytes (150 KB)240 kB
1200 × 1200 px4,320,000 bytes216,000 bytes (216 KB)240 kB

At 1200 × 1200 the window between the floor and the limit is only 24 KB wide. At 600 × 600 it runs from 54 KB to 240 KB, which is why 600 × 600 is the easiest size to hit.

What it means in practice

  • Don't run a visa photo through a generic "compress to 20 KB" tool. It will be far below the floor.
  • If a portal rejects a file that is under 240 kB, check the ratio before anything else.
  • Our US visa photo tool searches for a JPEG quality that lands between the floor and 240 kB for the size it makes, and shows both numbers in its checks.

Official sources

Rules change. If the official page differs from this summary, follow the official page, and tell us so we can fix it.

Questions

Does the 20:1 rule apply to the DV lottery photo?

The DV section of the same page lists a JPEG of 600 × 600 pixels at 240 kB or less. It doesn't repeat the ratio, so we don't state that it applies. Staying above 54 KB at 600 × 600 is a safe choice either way.

Why 3 bytes per pixel?

The page asks for colour at 24 bits per pixel, and 24 bits is 3 bytes: one each for red, green and blue.