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.

Convert to

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

  1. Choose or drop HEIC or HEIF files. You can add many at once.
  2. Pick JPG (smaller, made for photos) or PNG (no lossy compression, much bigger files). For JPG, set the quality.
  3. Wait until each row shows the new file size. In Chrome, Edge and Firefox, the HEIC decoder loads once at the start.
  4. 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

  1. It first asks your browser to open the photo with its own decoder. In Safari this works straight away.
  2. 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.
  3. 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:

ResultSize× HEIC size
Original HEIC590 KB1×
JPG 90%1.07 MB1.9×
PNG8.45 MB14.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.

Questions

Are my photos uploaded?
No. The photos are read and converted on your device. The HEIC decoder that loads in Chrome, Edge and Firefox also runs in your browser, not on a server.
Why won't my iPhone photos open on my laptop or Android phone?
iPhones save photos as HEIC by default. Many Windows programs, some Android phones and most upload forms only understand JPG and PNG, so a HEIC file won't open or upload.
Should I pick JPG or PNG?
JPG for almost everything: the files are small and accepted everywhere. At 90% quality you can't tell it from the original. PNG avoids lossy compression, but a photo becomes several times bigger.
Are the date and location kept?
No. The JPG or PNG carries no EXIF, so the GPS location is removed too. If you need the capture date kept, set the iPhone camera to Most Compatible so future photos are saved as JPG with their EXIF.
Why is the first photo slow?
In browsers other than Safari, the tool loads a HEIC decoder of about 1.5 MB the first time. After that the browser keeps it. On our laptop an 8.8 megapixel photo took about 0.3 seconds; a slower phone can take a few seconds per photo.
Which library is used, and under what licence?
libheif-js 1.23.5, which contains libheif and libde265 under the LGPL-3.0 licence. It is served as a separate, unmodified file and only loads when your browser can't open HEIC itself. See the licence text.