HEIC to JPG
iPhone photos in HEIC format often won't open on Windows, Android or in upload forms. Convert them to JPG or PNG here, right on your device.
At 90% you can't tell it from the original.
Your photos are processed on this device and never uploaded to a server.
How to use it
- Choose or drop HEIC or HEIF files. You can add many at once.
- Pick JPG (smaller, made for photos) or PNG (no lossy compression, much bigger files). For JPG, set the quality.
- Wait until each row shows the new file size. In Chrome, Edge and Firefox, the HEIC decoder loads once at the start.
- Download each photo, or all of them in one ZIP file.
What HEIC is
HEIC is a photo in a HEIF container compressed with HEVC (H.265), the codec also used for video. Apple has used it since iOS 11 and macOS High Sierra (2017); on iPhone the setting is called High Efficiency and it is on by default. Apple says its compression is better than JPEG's, so photos take less space on the phone and in iCloud at the same visual quality.
The catch is that not every device can open it. According to caniuse, Safari has displayed HEIC since version 17, while Chrome, Edge and Firefox still do not, because HEVC is complex and expensive to license. So iPhone photos sent as documents, copied to a Windows laptop or uploaded to a form are often rejected.
How this tool works
- It first asks your browser to open the photo with its own decoder. In Safari this works straight away.
- If the browser can't, the tool loads libheif, an open-source HEIF library, as WebAssembly (about 1.5 MB, once) and decodes the photo in the background, so the page doesn't freeze.
- The decoded picture is drawn on a canvas and saved as a JPG at the quality you choose, or as a PNG.
All of this happens on your device. The library is libheif-js 1.23.5, which contains libheif and the libde265 HEVC decoder, both under the LGPL-3.0 licence. It is served as a separate, unmodified file; the licence text is in libheif-js-LICENSE.txt and the source code is at github.com/strukturag/libheif.
Example sizes
We took a landscape photo of 4096×2160 pixels (8.8 megapixels), saved it as HEIC with macOS (590 KB), then converted it with this tool in Chrome:
| Result | Size | × HEIC size |
|---|---|---|
| Original HEIC | 590 KB | 1× |
| JPG 90% | 1.07 MB | 1.9× |
| PNG | 8.45 MB | 14.7× |
The 90% JPG is almost twice the size of the HEIC, because JPG compression is less efficient, and the PNG is nearly 15 times larger because it throws no detail away. For photos, JPG is the right choice; pick PNG only when the place you are sending it to asks for it. On our laptop this photo converted in about 0.3 seconds.
Good to know
- The new file carries no metadata: the date taken, GPS location and camera model are not copied. That is safer for sharing, but gallery apps will sort the photo by file date instead of the date it was taken.
- The photo's rotation is applied to the pixels, so portrait photos stay upright.
- For Live Photos, bursts and other HEIC files with several images, only the main image is converted.
- Photos above 16.7 megapixels are scaled down when the browser refuses a canvas that large, as Safari on iPhone does.
- To make the iPhone camera save JPG directly, open Settings > Camera > Formats and choose Most Compatible.