Your iPhone photo looks fine, the size is right, and the portal still says “invalid file format”. The file is almost certainly HEIC.
What HEIC is and why forms refuse it
Since iOS 11, iPhones shoot in HEIC by default — a newer format that stores roughly the same picture in about half the space of a JPG. It is genuinely better technology, and it is supported by almost nothing outside Apple’s ecosystem.
Government and exam portals were built to accept JPG. Their upload validators check the actual file signature, so a HEIC file is refused no matter what you name it. Renaming IMG_4021.HEIC to photo.jpg changes nothing.
Fix 1 — stop the problem at the camera
The permanent fix, and the one to do first:
- Open Settings.
- Tap Camera, then Formats.
- Choose Most Compatible.
Every photo you take from now on is a JPG. Photos already in your library stay HEIC, so you still need one of the next two options for those.
Fix 2 — let iOS convert on the way out
iOS converts HEIC to JPG automatically when sharing to apps that cannot read it. Open the photo in Photos, tap Share, and choose Mail — then email it to yourself. The attachment arrives as a JPG.
You can also check Settings → Photos → Transfer to Mac or PC and set it to Automatic, which converts on transfer.
Fix 3 — convert in the browser
On an iPhone or Mac, Safari can decode HEIC in-page, so the convert to JPG tool handles the file directly and gives you a JPG at whatever size your form needs, in one step. Nothing is uploaded.
On Windows or Android this usually will not work, because those browsers cannot read HEIC at all. Use Fix 2 from the phone instead.
After converting, check the size
HEIC files are small; the JPG you get out will typically be larger, sometimes twice the size. That often pushes you over a form’s ceiling, so run the converted file through reduce image size in KB before uploading. The converter can do both at once if you tick the file size option.
Same problem, other formats
- WebP — what you get when you save an image from many websites. Portals reject it the same way.
- AVIF — newer still, increasingly common on the web, equally unsupported by application forms.
- PNG — widely accepted for documents but often refused for photographs, and much larger than the equivalent JPG.
All three convert through the same tool.
Frequently asked questions
How do I convert HEIC to JPG on iPhone?
Open the photo in Photos, tap Share and choose Mail, then send it to yourself — the attachment arrives as JPG. To stop it happening again, set Settings, Camera, Formats to Most Compatible.
Why will my iPhone photo not upload to a form?
It is almost certainly a HEIC file. Application portals check the file contents and only accept JPG, so a HEIC is rejected regardless of what the filename says.
Can I rename a HEIC file to .jpg?
No. The extension is not what gets checked. The file has to be genuinely converted.
Does converting HEIC to JPG lose quality?
Slightly, once. Both formats are lossy, so re-encoding discards a little detail — imperceptible on a photograph at normal quality settings.