DEV Community

zjch022
zjch022

Posted on

How to Convert HEIC to JPG for Online Forms That Reject HEIC Uploads (Free)

You filled out the whole form — name, address, ID number, three pages of details — then picked your iPhone photo, hit upload, and got this: "Invalid file type. Please upload a JPG or PNG." Your photo is fine. The problem is the format: your iPhone saved it as HEIC, and most online forms still only accept JPG or PNG.

This happens everywhere: job application portals, insurance claim forms, school enrollment pages, government service sites, rental applications. The form builders rarely update their accepted-formats list, so the fix is on your side — convert the photo to JPG before uploading. Here is the fastest way to do it without installing anything.

Why forms reject HEIC

HEIC is Apple's default iPhone photo format since iOS 11. It stores the same quality as JPG at roughly half the file size, which is great for your phone's storage. But browser file inputs and server-side validators were mostly written for JPG, PNG, and sometimes PDF. When a form checks the file extension or MIME type and sees .heic or image/heic, it rejects the upload — even though the photo itself is perfectly good.

Two workarounds do not actually work. Renaming photo.heic to photo.jpg only changes the name; the file contents are still HEIC, and the upload will either fail again or produce a broken image on the other end. And taking a screenshot of the photo to force a JPG loses resolution and bakes in whatever was on your screen. A real conversion is the only reliable fix.

Step 1: Check what the form actually accepts

Before converting, look at the upload field's hint text — it usually says something like "Accepted formats: JPG, PNG (max 10 MB)". Convert to the first format listed. JPG is the safe default: it is accepted everywhere, and it keeps file sizes small enough for upload limits. If the form accepts PNG too, JPG is still the better choice for photos, because PNG files of the same photo are typically several times larger and can trip the size cap.

Also note the size limit. If your iPhone photo is 4–6 MB as HEIC, the JPG version at full quality can be 8–12 MB. That matters on forms capped at 5 MB or 10 MB. Converting with a quality setting around 85% usually lands well under the cap with no visible difference.

Step 2: Convert HEIC to JPG in your browser

The quickest path for a one-off form upload is to convert HEIC to JPG for online forms right in your browser. The conversion runs locally on your device, so your photo is never uploaded to a server — which matters when the form photo is an ID document, a payslip, or anything with personal details in it. Select the HEIC photo, convert, and download the JPG. Full disclosure: I'm the developer of FileOnTap, and I built it for exactly this kind of moment — a form that wants JPG, a phone that gives you HEIC, and no time to install software.

If you have several photos for the same form, convert them one at a time and check each download before moving on. Batch-converting is faster, but a single mislabeled file — passport-back.jpg saved where passport-front.jpg should be — can mean starting the whole form over.

Step 3: Verify the JPG before you upload

Do not attach the converted file blind. Open it and check three things:

  1. It actually opens as JPG — the file should end in .jpg and preview normally in your file manager or Photos app.
  2. Orientation — phone photos sometimes come out sideways after conversion. If yours did, rotate it before uploading; some form previews will not let you fix it afterward.
  3. File size — confirm it is under the form's stated limit. If it is over, re-convert at a slightly lower quality setting rather than cropping the photo.

Then upload the JPG, wait for the form's own preview or confirmation tick, and only then hit submit. If the form shows a thumbnail of your photo, you know the conversion worked end to end.

Stop it happening next time

If you regularly upload iPhone photos to forms, consider switching your camera format to Most Compatible (Settings → Camera → Formats). New photos will save as JPG, and forms will accept them directly. The trade-off is larger files eating more storage. A middle path that works well: keep HEIC on for everyday photos, and convert in your browser only when a form demands JPG. That way you get HEIC's storage savings without ever staring at an "invalid file type" error again.

Top comments (0)