What changes when a JPG becomes a HEIF file? Most conversion guides answer with a file size and a download button, as though the format were a coat of paint. The photo itself sits at the intersection of four decisions: how much quality you’re willing to trade away, how the color is described to whoever opens the file next, which metadata travels with the pixels, and where that file will eventually land.
Get those four right and the conversion is invisible. Get one wrong and the familiar failures appear. Color goes flat in a viewer that ignores profiles. A portrait opens sideways because the rotation was baked in twice or not at all. A listing photo of a house carries the exact coordinates of the front door to everyone who downloads it.
A smaller file is not automatically a better one. The useful question isn’t “how much can I shrink this” but “who opens this next, and what do they need to see correctly.” That framing turns JPG to HEIF from a file-extension change into a short, checkable production step.
Table of Contents
- Quality and Size Settings for Each Goal
- Convert JPG to HEIF and Check the Result
- Compatibility Tradeoffs Before You Switch
- Metadata and GPS Choices Before You Share
- How Long a JPG to HEIF Batch Takes
- Decide Which Format to Keep
Quality and Size Settings for Each Goal
Pick the row that matches what the file is for, then set the encoder to match. The table is a decision aid, not a promise about your particular photograph.
| Goal | Format and setting | Expected size vs JPG | Trade-off |
|---|---|---|---|
| Maximum storage savings | HEIF with HEVC, lossy | About half the size at similar visual quality (indicative) | Savings vary with photo content |
| Archive or editing with no quality loss | HEIF lossless | No fixed ratio, and always larger than lossy HEIF, sometimes larger than the JPG | Slowest encodes and the biggest files |
| Keep wide-gamut Display P3 colors | HEIF with embedded ICC profile | Similar to lossy HEIF | Needs a color-aware viewer |
| Maximum compatibility | Keep the original JPG | 1x baseline | Opens on every device and website |
The about-half figure in that first row traces back to a comparison Apple published, where HEVC-based encoding delivered approximately 2× compression against JPEG at equivalent visual quality. The Nokia history of HEIF reports that comparison alongside the format’s timeline: the first working HEIF draft authored in 2013, the first version completed in 2015, against JPEG’s standardization in 1992. A 23-year gap separates the two milestones, which explains why one format assumes a modern pipeline and the other assumes nothing at all.
Treat the 2× as an indicative average. Real savings move with photo content, encoder choice, chroma format, bit depth, the quality target you set, and whether metadata is included. A flat studio backdrop compresses down hard. Fine foliage at high ISO does not.
Reading the size column honestly
Lossless HEIF is always larger than lossy HEIF, and that’s the point of it. You’re buying back the freedom to re-edit without a second generation of artifacts. An embedded wide-gamut profile only helps in software that reads profiles, so a Display P3 HEIF opened in a viewer that assumes sRGB will look duller than the file deserves.
Name the output correctly, too. HEIF is the container; HEIC is the everyday name for an HEVC-compressed HEIF file, which is the lossy row in the table.
Three rules keep a batch from going wrong:
- Start from the best source you have. Use the original raster or the highest-quality JPG in the folder. Every later step inherits whatever you feed it.
- A higher setting can’t restore detail. Pushing the quality slider to its maximum on an already-compressed JPG gives you a bigger file with the same missing detail, just encoded more politely.
- Judge the test batch on quality and size together. A fixed percentage reduction is a target someone invented, not a measurement of your photos.
Practical rule: if the recipient’s machine might refuse to open HEIF, the right output is a JPG, and no amount of encoder tuning fixes that.
Keep JPG when recipients run older systems or when a portal dictates the format. Choose HEIF for storage when your devices, editors and viewers are all modern and you control who receives the file.
Convert JPG to HEIF and Check the Result
A conversion you can defend runs the same pass every time: copy, decode, orient, describe the color, encode, reopen. Skip a stage and the batch fills up with sideways portraits and washed-out skies.

1. Copy the JPG and decode it to a full-resolution raster. The usual miss is exporting from a preview pane that hands the encoder a downsampled image. You discover it later, when the HEIF is 1024 pixels wide and the original was 6000. Work from a copy so the original stays untouched until the new file passes inspection.
2. Apply EXIF orientation before any crop or resize. Rotation in a JPEG is a flag the viewer applies at open time, not baked pixels. The classic failure is doing both: rotating the image by hand in a viewer and leaving the orientation tag at 6, so the HEIF opens rotated a second time. Bake the orientation in once, then clear the tag.
3. Decide the color description before you encode. If the destination reads ICC profiles, keep the embedded profile intact. If it doesn’t, convert wide-gamut material such as Display P3 to sRGB deliberately, before encoding, instead of letting the encoder drop the profile and hope. Unexpected saturation and hue shifts often appear in apps that assume sRGB after a conversion, and handling the profile decision up front is what prevents them.
4. Encode with an HEVC intra-image encoder inside an ISO/IEC 23008-12 HEIF container. On macOS, Preview’s Export dialog handles this: choose HEIF, set the quality slider, save. On Windows and Linux, libheif’s heif-enc --quality or ImageMagick’s convert will do it where the libheif delegate is present. Set quality from a test export of two or three representative photos, not from one number you reuse forever.
5. Reopen the HEIF and compare it against the JPG. Check dimensions, alpha handling, embedded profile, orientation and metadata side by side. A file that shows up in Finder or Explorer proves only that it exists, nothing more.
Pick the output that matches the destination
One JPG can legitimately produce three different files: an sRGB HEIF for broad compatibility, a wide-gamut HEIF for a color-aware editor, and an sRGB JPG or WebP for web delivery after controlled tone mapping. “Controlled” means gamut-mapping the out-of-range P3 colors into sRGB yourself, so saturated reds and greens compress predictably instead of clipping wherever the encoder decides. Pick the output that matches where the file is going.
Mind what the container cannot add. Baseline JPEG is 8-bit; HEIF can carry higher bit depths, wide gamuts, alpha, lossless coding and integrated EXIF/XMP. Those capabilities belong to the format. A HEIF built from an 8-bit JPG still holds 8-bit data, and the upgrade buys room the source never filled.
If you’d rather watch the pass run on a live file before scripting your own version, this walkthrough is a reasonable reference:
The five-frame acceptance test
Open the HEIF and the original JPG on a color-managed display and compare five crops: foliage, skin tones, small text, a smooth gradient sky and a dark shadow area with fine detail. Each frame exposes a different failure. Foliage and text show ringing around hard edges, skin tones betray a dropped or ignored profile through hue and saturation shifts, the sky bands when the encode runs short, and the shadow crop blocks up first. Pairing each frame with the artifact it reveals beats a full-frame eyeball pass, because you know what you’re looking at the moment something is wrong.
If you want a number, compute SSIM or PSNR against the original JPG for the same crops. I treat the metrics as a sanity check, not a pass mark. Accept the file when framing matches, none of the artifacts show at normal viewing size and the colors match the source. Keep the JPG regardless: heavy HEIF compression adds a second generation of blocking, ringing and banding, and a smaller file is no evidence of equal quality.
Compatibility Tradeoffs Before You Switch
Before you convert a library, answer one question: where will these files be opened? The answer decides the format far more often than compression efficiency does.
| Platform or app | HEIF support | What to do |
|---|---|---|
| iPhone and iPad | Native read and write | Keep HEIF on device and share JPG when needed |
| macOS | Native read and write | Export JPG from Preview or Photos when sending |
| Windows | Needs HEIF Image Extensions in many setups | Install the extension or send JPG |
| Android | Varies by version and device | Test on the target phone or send JPG |
| Safari | Displays HEIF | Safe for viewing in Safari |
| Chrome and Firefox | Inconsistent | Serve JPG or WebP on web pages |
| Email and upload portals | Often rejected | Upload JPG |
The web still runs on the older format in a very literal way. In March 2024, JPEG was used by 77.7% of websites, according to W3Techs usage statistics reported by Digital Information World. Web forms, portals and a great many mail clients are built around that expectation.
Why the same file behaves differently on two machines
Say a photographer finishes a shoot and emails three selects to a client as HEIF attachments. On the photographer’s Mac the images look superb. On the client’s Windows laptop, two show a blank thumbnail and one won’t open in the photo viewer at all. Nothing is wrong with the files. The receiving machine has no decoder for that container.
The fix isn’t a better encoder. It’s a JPG export for anything leaving your own equipment, with HEIF kept as the working copy in your library.
For a closer look at how the container and codec names map onto each other, the HEIF versus HEIC comparison clears up the naming confusion that causes a lot of bad format advice.
Send the format the recipient can open, and keep the format you prefer to archive. Those two decisions don’t need to match.
Ask where the photo will be opened before you choose, not after a folder of files fails to open.
Metadata and GPS Choices Before You Share
A JPG already carries the camera model, capture date, orientation, edit data and, on a phone, GPS coordinates. A JPG to HEIF encode copies those fields unless you explicitly tell the tool to drop them. The new file can identify you exactly as clearly as the old one did.

Decide field by field rather than with a blanket “strip EXIF” instruction, which throws away the useful data along with the risky data.
- Capture date and camera settings. Keep them when the HEIF stays in your catalog. They’re the backbone of sorting, searching and any later question about which lens or ISO produced a frame.
- GPS. Strip it before a public post, a marketplace upload, a job application or a client delivery. A listing photo for a home with location data left on can publish the address the seller wanted kept private.
- Orientation and edit data. Verify the exported file’s orientation flag matches what you see, and be aware that some editors write sidecar-style edit history into the container. If that history mentions a person, a place or a device you don’t want to disclose, it travels with the file.
Sharing multiplies the exposure. The HEIF might stay on your phone, but the JPG fallback you send so other people can open the photo passes through more inboxes, portals and downloads, and any location data inside it goes along for the ride.
Check before every share: open the info panel, confirm location is absent or deliberate, and confirm the capture date and orientation match the shoot.
Changing the container isn’t a privacy step. The check is. If you’re working in the other direction and need to hand someone a universal file, this walkthrough for converting HEIC to JPG covers the export side of the same problem.
How Long a JPG to HEIF Batch Takes
HEIF conversion buys quality and size, not speed. In one codec benchmark, JPEG encoding took about 0.26 ms on a 112-pixel crop, while an x265-based HEVC intra encode took about 172 ms, roughly 660 times longer for that test configuration, as reported in this codec performance analysis. The same source notes a separate benchmark where HEIC was the slowest decoder among the formats tested, with encoding-time spreads as large as 3,100× across codecs and configurations.
Treat both figures as indicative. The gap depends on your hardware, the resolution, the preset and the thread count. A full-size 24-megapixel photo will not finish in a blink, which is why you time a sample before committing a library.
Timing a real folder without guessing
- Keep decode and encode off the interface thread. A frozen window on a laptop or in mobile Safari usually means the encoder is blocking the UI, not that the machine is broken.
- Time ten full-resolution JPGs, divide by ten, and multiply by the number of files in the folder. That estimate is worth more than any published ratio.
- Match the preset to the purpose. Use a faster preset for a storage pass you’ll spot-check, and a slower preset only for keepers you intend to keep long term.
- Don’t delete the JPGs until the sample looks right. A much smaller HEIF that took far longer to write is the normal trade. A folder of unverified files is not a backup.
Decide Which Format to Keep
Convert when storage is the constraint and the photos will live on iPhone, iPad and Mac, where you also control who receives a file. Keep JPG when the next stop is an unknown recipient, a web form, an older Windows PC, an untested Android phone, or a client who asked for JPG by name.
In every case, retain the original JPG. A HEIF export can’t put back detail JPEG already discarded, and some recipients will never open the new container. Use the settings row that matches the situation, check the support column before you send, and keep the working copy in whichever format your own tools handle best. If you’re still weighing which of the two formats belongs in your library, this comparison of HEIC and JPG lays out the trade-offs in plain terms.
One adjacent case is the file that arrives the other way: a HEIC, HEIF or HIF attachment you can’t view. ConvertHEICto reads all three extensions, takes files added by choosing photos or dragging them in, and runs the conversion in your browser on your own device with no upload step and no server copy. That matters when the photo is a signed contract, a medical document or a picture of your child’s classroom.
Verdict: choose HEIF for the archive you control and JPG for the world you can’t inspect.
Make the format decision before the batch runs, not after a folder of files refuses to open in front of a client.
When a HEIC, HEIF or HIF file lands in your inbox and nothing on your machine will open it, ConvertHEICto converts it to JPG or PNG right in the browser, keeping the capture date and camera details, dropping GPS by default, and handling Display P3 properly instead of flattening it. Files ending in .heic, .heif or .hif are all accepted, and every photo is processed on your own device, so nothing is uploaded and no server keeps a copy. Take the folder that failed to open and run it through before you send anything back to a client.