HEIC photo conversion test: 10 formats measured

We converted iPhone HEIC photos online to 10 formats and measured each file: size, resolution, quality, colors and metadata.

The photos

  • Daylight, ducks on a pond · 3.52 MB HEIC
  • Night, a close-up with lights behind · 1.45 MB HEIC
  • Indoors, a dog on a blanket · 920.9 KB HEIC

All three are 12-megapixel (3024 × 4032) photos taken on an iPhone 12, in the Display P3 color space, with GPS location in their metadata. The photos are private, so this page publishes the measurements, not the files.

Results by format

FormatSize vs HEICResolutionQuality vs originalWhat to know
JPG1.5–2.6×3024 × 4032PSNR 41–48 dB · SSIM 0.989–0.997Saved at the default quality setting, 85 out of 100. The best balance of size and quality for photos.
PDF1.5–2.6×3024 × 4032PSNR 41–48 dB · SSIM 0.989–0.997The same JPG inside a PDF page. The page is the photo’s size at 96 dpi, about 80 × 107 cm.
PNG5.9–14.0×3024 × 4032No lossLossless, but saved with a transparency channel even though the photo has none, which makes it larger.
SVG7.9–18.7×3024 × 4032No lossNot a vector drawing: a PNG stored inside the SVG as Base64 text, about a third larger than the PNG.
BMP10.4–39.7×3024 × 4032No lossUncompressed.
TIFF13.8–53.0×3024 × 4032No lossUncompressed, with a transparency channel.
TGA13.8–53.0×3024 × 4032No lossUncompressed, with a transparency channel.
GIF2.0–5.5×3024 × 4032PSNR 33–37 dB · SSIM 0.931–0.966256 colors at most, so smooth skies and skin show banding.
ICNS0.7–2.2×1024 × 1024 and 6 smaller—For Mac app icons. The photo is fitted into a square with transparent margins.
ICOabout 8 KB48, 32 and 16 px—For favicons. Only small icon sizes are kept.

What stays and what is lost

  • Resolution: every format except the two icon formats kept the full 3024 × 4032 pixels.
  • Location and camera data: GPS location, camera model and the date taken were removed from all 30 files. The new file does not reveal where the photo was taken.
  • Colors: the photos were converted from Display P3 to standard sRGB. Only up to 0.7% of the pixels had colors outside sRGB, so the visible difference is very small.
  • Quality: PNG, SVG, BMP, TIFF and TGA keep every pixel. JPG and PDF lose a little detail that is hard to see (PSNR above 40 dB). GIF loses the most.

Safari or Chrome on iPhone?

We converted the same photos in Safari and in Chrome on the same iPhone. 26 of 30 files were identical byte for byte. The other 4 were icon files whose resized images differed by at most 9 levels out of 255, which you cannot see. Every iPhone browser uses Apple’s WebKit engine, so the results match. 4Dev uses the browser’s own image codecs: HEIC opens only in Safari and other WebKit browsers, and WebP cannot be saved on iPhone.

A bug this test found

The first GIF files used only 28 to 126 of the 256 colors a GIF can hold. When one color covered more than half of the photo, such as a dark night sky, the color reduction kept splitting it into empty groups. Version 1.1.123 fixes this: the night photo improved from 30.5 to 35.9 dB, and GIFs now use all 256 colors. The GIF figures on this page are from the fixed version. The files are larger because they hold more colors.

Every file we measured

Daylight, ducks on a pond
FormatFile sizevs HEICPSNRSSIM
Original HEIC3.52 MB1.0×——
JPG5.24 MB1.5×41.0 dB0.992
PDF5.24 MB1.5×41.0 dB0.992
PNG20.78 MB5.9×No loss1.000
SVG27.70 MB7.9×No loss1.000
BMP36.58 MB10.4×No loss1.000
TIFF48.77 MB13.8×No loss1.000
TGA48.77 MB13.8×No loss1.000
GIF6.96 MB2.0×32.9 dB0.966
ICNS2.43 MB0.7×——
ICO8.7 KB<0.1×——
Night, a close-up with lights behind
FormatFile sizevs HEICPSNRSSIM
Original HEIC1.45 MB1.0×——
JPG2.71 MB1.9×46.1 dB0.989
PDF2.71 MB1.9×46.1 dB0.989
PNG15.51 MB10.7×No loss0.999
SVG20.69 MB14.3×No loss0.999
BMP36.58 MB25.2×No loss0.999
TIFF48.77 MB33.6×No loss0.999
TGA48.77 MB33.6×No loss0.999
GIF4.05 MB2.8×35.9 dB0.931
ICNS1.61 MB1.1×——
ICO7.7 KB<0.1×——
Indoors, a dog on a blanket
FormatFile sizevs HEICPSNRSSIM
Original HEIC920.9 KB1.0×——
JPG2.36 MB2.6×48.4 dB0.997
PDF2.36 MB2.6×48.4 dB0.997
PNG12.92 MB14.0×No loss1.000
SVG17.22 MB18.7×No loss1.000
BMP36.58 MB39.7×No loss1.000
TIFF48.77 MB53.0×No loss1.000
TGA48.77 MB53.0×No loss1.000
GIF5.10 MB5.5×36.5 dB0.955
ICNS2.01 MB2.2×——
ICO8.4 KB<0.1×——

How we measured

The photos were converted on an iPhone with 4Dev.Net 1.1.122, once in Safari and once in Chrome. We compared each result with the original HEIC converted to sRGB using its own color profile. PSNR measures the average pixel difference; above 40 dB the difference is hard to see. SSIM measures how similar the structure is; 1.0 means identical. We used Python with Pillow, pillow-heif and scikit-image.

Tested on