You fill in a long form, attach your photo and press submit, and the page answers with a red message: “Invalid image”. It rarely says what is wrong. Upload errors are frustrating because the reasons are hidden, but in practice there are only four or five of them, and you can check each in a minute. Here is the order in which I test them.
1. The file format
Many forms accept only JPG, and some only JPG and PNG. A WebP, HEIC or BMP file will be refused, even if it opens perfectly on your device. HEIC is the default format on many iPhones, and WebP is common when saving from websites. To find out what you have, check the extension and the file details. If the format is not on the accepted list, convert it, using WebP to JPG or PNG to JPG, and try again.
2. The file size
Limits such as 100 KB, 500 KB or 2 MB are common on official forms. A phone photo is usually 3 to 6 MB, so it will be refused without any warning about the cause. Reduce the size by resizing first and then lowering quality a little, as explained in the guide on reducing file size. If the form asks for a minimum size as well as a maximum, do not shrink the file too aggressively, because a file under the minimum will also be rejected.
3. The pixel dimensions
Some forms require exact dimensions, such as 200 x 230 pixels for a photo, or 140 x 60 for a signature. Others set a minimum or maximum width. Check the instruction text next to the upload box, which often hides in small print. The Image Resizer lets you type a custom width and height, and crop to fill, so the proportions stay natural.
4. The aspect ratio
A form may expect a portrait photo and refuse a landscape one, even when the pixel count looks right. Crop to the requested shape before resizing. Use the Image Cropper, set the ratio, place the face in the centre and export.
5. The file name
Some older systems fail on file names with spaces, brackets, accents or unusual characters. If everything else seems correct and the form still refuses the file, rename it to something simple like “photo-2026.jpg”. It sounds trivial and it solves more problems than people expect.
6. A renamed file that is not what it claims
Changing .webp to .jpg in the file name does not convert the file. The inside is still WebP, and a careful system will detect it and refuse. Always convert properly, using a tool, rather than renaming the extension.
7. Browser or connection trouble
If the file is correct and the form still fails, try another browser, disable extensions for the page, or switch from mobile data to Wi-Fi. A weak connection can cut off a large upload halfway, producing a vague error. Also try again later, because government and exam sites often struggle at deadline time.
HEIC photos from an iPhone
If you use an iPhone, your camera may save photos as HEIC, a format that many websites and Windows programs do not accept. You can switch the camera to save as JPG in the camera settings, under Formats, choosing the most compatible option. Existing HEIC files can be shared as JPG by exporting them from the Photos app, or by taking a screenshot in an emergency. Once the camera produces JPG by default, this whole category of error disappears.
A calm order of checks
- Read the requirements again, including the small print.
- Check format, size and dimensions of your file.
- Fix the format first, then dimensions, then size.
- Rename the file with simple characters.
- Try another browser if it still fails.
An example with a strict form
Take an application that demands a photo between 20 and 50 KB, exactly 200 x 230 pixels, in JPG. Your phone photo is 4.5 MB and 3000 x 4000 pixels. You crop to the right shape and resize to 200 x 230, and the result may already be only 15 KB, which is below the minimum. Raising the quality to around 95 percent can bring it into the 20 to 50 KB range, and the form accepts it. Knowing that both a minimum and a maximum exist is the key.
Keep a ready-made set
If you apply for jobs, exams or services regularly, keep a folder with a prepared passport photo and signature at several sizes, with clear names. The hour you spend creating it will save you from last-minute panic on deadline day.
Protect your documents
Forms often ask for identity documents, so use a tool that works on your own device, and delete spare copies afterwards. The tools on this site process files in your browser, and nothing is uploaded to a server while you prepare them.