US VISA · DS-160

DS-160 photo upload error: a complete fix guide

By the Visa Photo 1-Tap developer · Official sources checked

Most DS-160 photo failures come from the file, not your face: a HEIC photo, a rectangle instead of a square, or a file just over 240 kB. This guide covers the full specification, how to convert and compress properly, and what happens if your confirmation page shows an X instead of your photo.

What is the short answer?

Upload a real JPEG that is square, between 600 × 600 and 1200 × 1200 pixels, no larger than 240 kB, in 24-bit sRGB colour, taken in the last six months against a plain white or off-white background, without glasses. If the confirmation page later shows an X where the photo should be, the upload failed: the Department of State says to bring one printed photo that meets the requirements with your confirmation page, and to ask your embassy or consulate how to provide it.

What are the DS-160 digital photo requirements?

ItemDepartment of State requirement
FormatJPEG
Shape and pixelsSquare (height equals width), minimum 600 × 600, maximum 1200 × 1200
File sizeLess than or equal to 240 kB
ColourColour, 24 bits per pixel, sRGB
CompressionCompression ratio less than or equal to 20:1
Head size50%–69% of the image height, chin to top of hair
Eye height56%–69% of the image height, measured from the bottom
Photo contentTaken within 6 months; plain white or off-white background; full face, directly facing the camera; neutral expression, both eyes open; no eyeglasses except rare medical cases

Sources: Department of State Digital Image Requirements, Photo Requirements and Photo Composition Template, checked November 14, 2026.

The US Visa Photo website already has a short DS-160 upload checklist. This page goes further into conversion, compression and what to bring if the upload fails.

Is it a file problem or a photo problem?

Start with what the upload page tells you. If it rejects the file outright, check the four file properties first: format, square shape, pixel range and size. If the file is accepted but the photo is flagged, or you are unsure about it, the problem is the picture itself: background, lighting, pose, glasses or how much of the frame your head fills. The fixes are different. No amount of compression repairs a shadowed background, and retaking a photo will not help if the file is still HEIC.

Check the file you are actually uploading. On an iPhone, open it in Photos and swipe up to see the format, dimensions and size. On a Mac, use Preview’s Tools › Show Inspector. On Windows, right-click the file, choose Properties and open Details. Make sure the upload picker selects that file, not a screenshot of it or an older copy.

How do I convert an iPhone HEIC photo to JPEG?

Recent iPhones save photos in HEIF/HEIC (“High Efficiency”) by default. The DS-160 needs JPEG, and changing the file extension from .heic to .jpg does not convert anything.

How do I make the photo square without distorting it?

Crop, do not stretch. Choose a square crop that leaves your head between 50% and 69% of the height and your eyes between 56% and 69% from the bottom, then resize the square to a size between 600 and 1200 pixels. If your original is too tight to allow that crop, take a new photo from further away. The Department of State’s free photo tool can crop to exactly 600 × 600, but it states that it is for cropping only and does not check quality.

How do I get under 240 kB without wrecking quality?

File size depends mostly on pixel count and JPEG quality. Reduce pixels first and quality second:

  1. Resize before compressing. A 600 × 600 photo has a quarter of the pixels of a 1200 × 1200 one. Exporting at 600–900 pixels at a high quality setting usually lands well under the limit without visible damage.
  2. Compress once, from the original. Each re-save of a JPEG loses detail. If a file is too big, go back to the original and export again at a slightly lower quality, rather than squeezing an already compressed copy.
  3. Do not go too far. The specification also caps the compression ratio at 20:1. By our arithmetic, an uncompressed 24-bit 1200 × 1200 image is 4,320,000 bytes, so 20:1 would mean at least 216,000 bytes. That leaves a narrow window under 240 kB, while a 600 × 600 image (1,080,000 bytes uncompressed) has room from about 54,000 bytes upwards. The Department of State does not explain how it measures the ratio, so treat this as a guide, not a test.
  4. Allow for how kB is counted. The page says 240 kB (kilobytes) without saying whether a kilobyte is 1,000 or 1,024 bytes. Staying at or below 240,000 bytes satisfies both readings.

After exporting, look at the photo at full size. Blocky skin, smeared hair edges or banding in the background are signs of over-compression. Export again from the original with fewer pixels and a higher quality setting.

What does an X on the DS-160 confirmation page mean?

The Department of State’s DS-160 FAQ says an X in the photo box means the photo upload failed. In that case, submit one printed photograph that meets the requirements, along with your DS-160 confirmation page, to the embassy or consulate where you plan to apply, and contact that embassy or consulate for specific instructions. If the confirmation page shows your photo, the upload worked and no separate printed photo is required for that purpose.

For the interview, bring the confirmation page with the application ID barcode in every case. Printed photos must be 2 × 2 inches (51 × 51 mm), in colour, on matte or glossy photo-quality paper. Separately, the Photo Requirements page notes that some embassies and consulates ask visa applicants to bring one photo to the interview anyway, so read your post’s instructions even if your upload succeeded.

What are the glasses, background and recency rules?

One inconsistency to know about: the Photo Requirements page gives the printed head size as “1 inch and 1 3/8 inches (22 mm and 35 mm)”, while the Photo Composition Template and the Photo FAQ say 25–35 mm. One inch is 25.4 mm, so 25–35 mm appears to be the intended figure. For digital images, all pages agree on 50%–69%.

Can an app prepare the DS-160 file?

US Visa Photo is our app for this file, on iPhone and Android. On your phone it crops a portrait to a square, replaces the background with white, keeps the exported JPEG within 240 kB, and shows a checklist of measured values — pixels, head height, eye position, file size and a lighting warning. The preview is free and watermarked; each exported JPEG is a single purchase ($1.99 in the US App Store and US Google Play), with no subscription.

Before you use it: the app replaces the photo’s background automatically. The US State Department says photos must not be digitally enhanced or altered to change your appearance, and its photo examples show, as unacceptable, a background cut-out that changed the outline of the head, face and neck. Edge results vary from photo to photo (hair, ears, shoulders), so check the edges in the preview and follow your own application’s current instructions; if in doubt, retake the photo against a real white wall. The app is independent and not affiliated with any government, and its checklist does not mean the photo will be accepted.

Download on the App StoreGet it on Google Play

Frequently asked questions

Is the DS-160 limit 240,000 bytes or 245,760 bytes?

The Department of State writes “240 kB (kilobytes)” without defining a kilobyte. Keeping the file at or below 240,000 bytes meets either reading.

Can I use a photo taken with my phone?

You may take the photo yourself, although the Department of State recommends a professional photo service. Its FAQ warns that most webcams and mobile phones cannot provide images of sufficient quality and that low-resolution phone photos are not acceptable, so use good light, a steady camera and the main rear camera.

Do I need a printed photo if the upload worked?

If the confirmation page shows your photo, the DS-160 FAQ says no separate printed photo is required for the upload. Some embassies and consulates still ask applicants to bring one photo to the interview, so check your post’s instructions.

Can I wear glasses in a DS-160 photo?

No. Eyeglasses have not been allowed in new visa photos since November 1, 2016, except in rare medical cases with a signed medical statement.

Sources and review

Written by the Visa Photo 1-Tap developer. Official pages were checked on . Requirements can change; the linked official instructions and your embassy or consulate take precedence.