How to Attach a Passport Photo to an Online Application
Most passport, visa and ID applications now ask you to upload the photo online. The upload is where many people get stuck, because the form rejects the file for the wrong size, format or number of KB. This guide shows how to prepare the photo and attach it in six simple steps.
Quick answer
Prepare a JPG photo at the exact pixel size the form asks for, keep the file under the KB limit, save it to your device storage, then upload it and check the preview before you submit. You can create the right size and background free with the Uphoto tool.
Step 1: Read the photo instructions on the form
Find the size in pixels or millimetres, the format (usually JPG), the maximum file size in KB and the background colour. Note the numbers down. Some portals, such as the US and UK passport sites, publish their exact photo rules, so check the official page for your country first.
Step 2: Take or choose a good original photo
Use a sharp, evenly lit photo with a plain background. If you do not have one yet, follow our guide to taking a passport photo at home. Do not use a photo sent through a chat app, because it is often too compressed.
Step 3: Crop it to the exact size and background
Open the Uphoto tool, choose your country, upload the photo and let it crop to the right size and set the correct background. Download the JPG.
Step 4: Check the file size in KB
Look at the file information on your phone or computer. If it is over the limit, lower the JPG quality a little (85 to 90 percent keeps the face clear) instead of shrinking the pixels. If it is under the minimum, start again from a larger original. More detail is in the file size and format guide.
Step 5: Rename the file and save it where you can find it
Use a plain name such as passport-photo-2026.jpg and save it to the phone storage or a folder on the computer, not only in the gallery.
Step 6: Upload and preview before you submit
Choose the file from the file picker, wait for the preview, zoom in to check that the face is not cropped, stretched or rotated, and only then continue. If the form rejects it, try another browser, switch to Wi-Fi or upload from a computer.
Common upload errors and fixes
If the form says the file is too large, reduce the JPG quality slightly. If it says the dimensions are wrong, create a new file from the original at the exact size rather than resizing the exported image. If the preview is sideways, export the photo again and upload the new file. If a HEIC photo from an iPhone fails, export it as JPG first.
Frequently asked questions
What size should the photo be for an online application?
Use the exact size the form states. If it only gives a range, a 600 x 600 pixel square or 413 x 531 pixels (35 x 45 mm at 300 DPI) is a common safe choice. Always read the instructions of your own country's portal.
What file size in KB is allowed?
It depends on the portal. Common limits are 100 KB, 200 KB, 500 KB or 1 MB, and some also set a minimum such as 10 KB or 20 KB. Check the limit on the form and compare it with your file information.
Should I upload JPG or PDF?
Upload JPG unless the form clearly asks for PDF. Uphoto exports both from the same cropped photo.
Why does the form say invalid image?
Usually the format, pixel size, file size or colour mode is wrong, or the phone saved a HEIC file. Export a fresh JPG, save it to your phone storage and choose it from the files app.
Can I upload a photo taken with my phone?
Yes, if it follows the rules for light, background and head position. See how to take a passport photo at home, then crop it to the right size.