HEIC vs JPEG: what changes when you convert, measured
The short answer
HEIC stores a photo of similar quality to a JPEG in a smaller file, and iPhones use it by default. JPEG is bigger but opens everywhere. In our test, six photos came out 1.1 to 1.6 times bigger as JPG than as HEIC, and a lossless PNG copy was 8 to 10 times bigger. Keep HEIC while the photos stay on Apple devices, and convert to JPEG when a website, program or person cannot open it: our image converter does it for free, or set Settings → Camera → Formats → Most Compatible to make the iPhone save JPEG.
If you have ever sent an iPhone photo to someone and heard "it will not open", or been told that a website "does not accept this file type", you have met HEIC. Apple puts the case for it in one sentence:
HEIF and HEVC offer better compression than JPEG and H.264, so they use less storage space on your devices and iCloud Photos, while preserving the same visual quality.
We wanted to know what that saving looks like in practice, and what happens to a photo when you turn it into a JPEG to share it. So we converted HEIC photos with our own converter and measured the files and the colors. This article explains the format, what we found, and the settings that save you the trouble.
What HEIC is
HEIC is a file type for photos. It is a variant of HEIF, the High Efficiency Image File Format, and it stores the picture using HEVC (also called H.265), the same family of compression used for video. Apple made it the default photo format for iPhones and iPads that support it, and the camera setting is called High Efficiency.
JPEG is the format almost everyone knows. It has been the standard for photos since the early 1990s, and every phone, computer, browser, printer and website understands it.
Apple devices are the main source of HEIC files. According to Apple, every iPhone from the iPhone 7 on, many iPad models and Apple Vision Pro can capture photos in HEIF, and on a Mac with macOS Tahoe 26 or later, screenshots are saved as HEIF when the Screenshot app's capture format is set to HDR. So a HEIC file can turn up even from someone who never touched a phone setting.
Inside a HEIC file
A JPEG file is essentially one compressed picture with some metadata segments in front of it. HEIF, standardized as ISO/IEC 23008-12, is a container: a box-structured file in the same family as MP4 video (the ISO Base Media File Format). Nokia's technical overview of HEIF describes how it is organized:
- A brand list at the start. The first box names the "brands" the file follows; a file with the
heicbrand holds HEVC-coded images. Programs that check the content rather than the name look here, which is why renaming a file does not fool them. - Images as items. Each still image is a separate item, and a file can hold any number of them. Bursts, image sequences and the stills of a Live Photo can all live in one container.
- Pictures built from tiles. A "grid" item tells the reader to assemble a large picture from smaller coded images. The documentation of libheif, the most widely used open-source HEIF library, notes that most phone cameras split the photo into tiles of 512 × 512 pixels this way.
- Helpers next to the main picture. A thumbnail can be stored as its own small item, and "auxiliary" images such as an alpha plane (transparency) or a depth map sit beside the main image.
- Edits as instructions. Rotation by 90, 180 or 270 degrees, mirroring and cropping are stored as properties that the reader applies when it shows the picture, instead of being baked into the pixels.
- More than 8 bits. The format allows up to 16 bits per sample, while an ordinary JPEG has 8 bits per color channel.
Each of these explains something you meet when converting. A converter has to decode every tile, put the grid together and apply the rotation before it can write a JPEG. The depth map of a Portrait photo is an auxiliary image, so it has no place in a JPEG and is left behind. A file with several images has to be reduced to one, and our converter uses the first.
Why HEVC compresses better than JPEG
Both formats throw away detail the eye is unlikely to miss, but they go about it with tools a generation apart:
| JPEG (1992) | HEVC inside HEIC (2013) | |
|---|---|---|
| Block size | Fixed blocks of 8 × 8 pixels | Coding units from 64 × 64 down to small blocks, chosen to fit the picture: big for sky, small for detail |
| Prediction | Each block is coded on its own (only the average value is predicted from the previous block) | Each block is first predicted from the pixels around it, in one of 33 directions or two smooth modes, and only the difference is coded |
| Transform | 8 × 8 discrete cosine transform | Transforms from 4 × 4 to 32 × 32 |
| Entropy coding | Huffman codes | CABAC, an adaptive arithmetic coder |
| Clean-up | None in the standard | A deblocking filter and a sample adaptive offset filter smooth block edges and ringing |
Prediction does most of the work on photos: a patch of sky or wall is predicted almost perfectly from its neighbors, so very little data is left to store. The filters are why a heavily compressed HEIC tends to turn soft where an equally small JPEG shows blocks. The cost is more computing to encode and decode.
Licensing is the other difference. HEVC is covered by patent licensing pools, while AVIF puts the royalty-free AV1 codec into the same HEIF container. MDN's guide to image file types describes AVIF as free of the complicated licensing that held back comparable formats and lists it in Chrome 85, Edge 121, Firefox 93 and Safari 16.1 and later. So the container Apple uses for photos is already readable in every major browser; the HEVC inside it is what Chrome, Edge and Firefox do not show.
How much bigger the JPG gets
We made HEIC files of six photos at 960 pixels with macOS, then converted each to a JPG at quality 92, the setting our converter uses by default.
Every JPG was bigger than its HEIC, by 1.09 times for the tulip photo up to 1.63 times for the dog. That fits Apple's claim, and it shows the saving depends on the picture: there is no single "half the size" figure. Phone photos are far bigger than our test pictures, so only the ratios carry over.
A PNG copy, which keeps every pixel, is a different story. Three more HEIC test files of 109, 74 and 63 KB became PNGs of 1,040, 531 and 506 KB, 8 to 10 times the size, against JPGs of 153, 98 and 65 KB. Choose PNG only when you need a lossless copy to edit; for sharing, JPG is the sensible choice. PNG vs JPG vs WebP has our full size tests for those formats.
What that means for a photo library
Turned around, our ratios say a HEIC took 61 to 92% of the space of the matching JPG, a saving of 8 to 39% depending on the photo. Applied to a library, as arithmetic rather than a measurement: if your HEIC photos take 20 GB, converting all of them to JPG at quality 92 would need roughly 22 to 33 GB, and lossless PNG copies 160 to 200 GB. That is the case for converting only the photos you are about to share and keeping the originals as they are, rather than converting a whole library in advance.
Not every converter gets the colors right
A HEIC file has to be decoded before it can become a JPG, and decoders differ. When we chose the decoder for our converter, we compared two free libraries with the pictures macOS itself produces and with the converter that comes with libheif, the widely used open-source HEIF library:
| Decoder | Difference from macOS and libheif | Result |
|---|---|---|
| heic2any (an older, widely used library) | 6 to 10 levels out of 255 | Colors off, and highlights clipped. We did not use it. |
| heic-to (a current build of libheif) | About 0.3 to 1.2 levels out of 255 | Matches. This is what our converter uses. |
On the three HEIC test files, the PNGs our page made differed from libheif's own output by 0.16, 0.41 and 0.28 levels on average, and by at most 18 levels on any single value. An average under one level is invisible. The older library was off by 6 to 10 levels on average and also clipped the highlights, turning the brightest detail plain white.
If a converted photo looks different from the one on your phone, the decoder and the color profile (see below) are the two things to check. Safari opens HEIC by itself, and in other browsers our converter loads heic-to only when a HEIC file is added.
Where HEIC opens, and where it does not
| Where | HEIC | JPEG |
|---|---|---|
| iPhone, iPad and Mac | Yes. Preview and Photos open it, and Photos can export JPEG | Yes |
| Android | Android 10 and later support the format, according to the Android platform documentation; individual apps vary | Yes |
| Windows | Newer versions of Windows 11 open it in Photos; older ones need the HEIF and HEVC extensions from the Microsoft Store, and the HEVC one has been a paid add-on in some regions | Yes |
| Browsers | Safari only; Chrome, Firefox and Edge do not show it on a web page | All |
| Websites and upload forms | Some accept it or convert it; many accept only JPG and PNG | Practically all |
How to get JPEG instead
Make the iPhone save JPEG
Open Settings → Camera → Formats and tap Most Compatible. From then on the camera saves JPEG. Photos take more space, and photos you took earlier stay HEIC.
Let the transfer convert them
When you import photos from an attached iPhone or iPad into Photos, Image Capture or a PC, Apple says they might be converted to JPEG. If you would rather keep HEIC, Apple's page says to open Settings, tap Apps, tap Photos and choose Keep Originals.
Sharing works the same way. Apple's page says that when you send photos by AirDrop, Messages or email and the receiving device does not support the newer formats, they might automatically be shared as JPEG. If a recipient still ends up with a .heic file, convert it yourself.
Convert files you already have
Drop them on our image converter and download JPG files (or PNG for a lossless copy), one by one or as a ZIP. When the JPGs are still too big to send, the image compressor brings them down to a size limit. On a Mac you can also open a photo in Preview or Photos and use File → Export, or skip opening it: in the Finder, Control-click the file, choose Quick Actions, then Convert Image (it may sit under More), and pick JPEG or PNG and a size (Apple's Finder guide uses exactly this HEIC example).
What stays behind when you convert
- A little quality. JPEG is lossy too, so a conversion compresses the picture once more. At quality 92 the difference is hard to see.
- Extras. Our converter uses the first image of a file with several, and the video part of a Live Photo stays in the original.
- The wide color profile. Phone photos are often in Display P3, a wider range of color than ordinary JPGs use. Our converter does not carry that profile over, so very saturated colors can look slightly less vivid in the JPG.
- Metadata. Some converters keep the date, camera details and GPS location, and ours does not. That protects your privacy when you share the file, and it means photo libraries that sort by the date inside the file will not know when the picture was taken. Our EXIF guide explains what is stored in a photo, and how to remove location data covers the privacy side.
Troubleshooting HEIC files
| Problem | Likely cause | What to do |
|---|---|---|
| Windows shows an error or a blank thumbnail | The HEIF or HEVC extension is missing from that copy of Windows | Install both from the Microsoft Store, or convert the file in the browser instead |
| An upload form says the file type is not supported | The site accepts only JPG and PNG | Convert to JPG at quality 92; if the form also has a size limit, compress afterward |
| Our converter skips the file and says it could not load the HEIC decoder | Outside Safari, the decoder (about 3 MB) is fetched from jsDelivr when the first HEIC file is added, and a content blocker, a firewall or a dropped connection stopped it | Allow cdn.jsdelivr.net or try again on a steadier connection; Safari decodes HEIC itself and needs no download |
| Screenshots on a Mac suddenly arrive as HEIC | On macOS Tahoe 26 or later, the Screenshot app's capture format is set to HDR, which saves screenshots in HEIF | Change the capture format back if you do not need HDR, or convert the files you share |
| Photos from a library appear under the wrong date after converting | The JPGs carry no capture date, so the library falls back to the file date | Convert only the copies you share and keep the originals in the library; the metadata viewer shows what a file holds |
Which should you use?
- Keep HEIC while your photos live on Apple devices and in iCloud, and you want the storage savings.
- Use JPEG when you send photos to people on other systems, upload them to websites, print them, or prepare them for software that may not read HEIC.
- Training sets and datasets. Most image-training tools expect JPG or PNG, so convert HEIC photos first. See our guides on preparing an image dataset and on image size and count for LoRA training, and use the image resizer to bring the pictures to one size.
Sizes: six 960-pixel photos saved as HEIC by macOS at quality 80, each converted to JPG at quality 92; and three HEIC test files of our own converted to PNG and to JPG at quality 92 by our converter. Colors: the converter's output compared value by value with what macOS produces and with heif-convert from libheif 1.19.8 on the same files; the averages and largest differences are in levels out of 255. Device and program support comes from Apple's and Android's documentation, linked above.
Convert HEIC, PNG, WebP, GIF, BMP, AVIF and SVG pictures to JPG, PNG or WebP, one at a time or a whole folder. It runs in your browser. Open the Image Converter.
Frequently asked questions
Is HEIC better than JPEG?
For storage, yes: it keeps a similar-looking picture in a smaller file. For compatibility, no: JPEG opens on practically everything, and HEIC does not. "Better" depends on whether the file will stay on Apple devices.
Does HEIC have better quality than JPEG?
At the same file size, HEIC usually looks better, because it compresses more efficiently. Both are lossy formats. If you make a JPEG from a HEIC, the picture is compressed a second time, so use a high quality setting.
Why does my iPhone save photos as HEIC?
Because High Efficiency is the default camera format on iPhones and iPads that support it, in order to save storage. You can change it under Settings → Camera → Formats.
Can I just rename a .heic file to .jpg?
No. Changing the ending does not change what is inside the file. Programs that open files by looking at their content will still see HEIC, and programs that trust the name will fail. The picture has to be converted.
Should I convert HEIC photos before ordering prints?
Yes, unless the print service says it accepts HEIC. Convert at full size and a high quality setting (92 or more), and leave out the compressor, which is meant for upload limits and would cost detail a print can show.
What is the difference between HEIC and AVIF?
Both use the same HEIF container. HEIC stores the picture with HEVC compression, which is covered by patent licensing; AVIF stores it with AV1, which is royalty-free. AVIF opens in current Chrome, Edge, Firefox and Safari, while HEIC shows only in Safari among browsers.
Why does the same HEIC look different on Windows and on my iPhone?
Usually color management. iPhone photos are often in the wide Display P3 color space, and a viewer or converter that ignores the embedded profile shows the colors as if they were ordinary sRGB, which looks slightly off. A decoder that differs from libheif can also shift colors, as our comparison above shows.
How can I tell whether a file is really HEIC, whatever its name says?
Look at its first bytes. Every HEIF file starts with a file-type box, so a hex viewer shows the letters ftyp within the first dozen bytes, followed by brands such as heic or mif1. A real JPEG starts with the bytes FF D8 FF instead. Those bytes say what the file really is, whatever its extension.
Is HEIC the same as HEIF?
Nearly. HEIF is the container format. HEIC is the version of it that uses HEVC compression, which is what Apple devices write. Many people use the two names for the same files.