- Resources
- Image formats compared: JPG, PNG, WebP, AVIF, HEIC and more
Comparison · Updated
Image formats compared: JPG, PNG, WebP, AVIF, HEIC and more
Use JPEG for photos that must open anywhere, PNG for screenshots and graphics with sharp edges or transparency, and WebP or AVIF for smaller images on websites. HEIC is the iPhone's space-saving photo format, but outside Apple devices it often needs converting to JPG first.
Format features side by side
Lossy formats drop detail to save space, which suits photos. Lossless formats keep every pixel, which suits screenshots, text and logos. Bit depth sets how many shades each colour channel can hold: 8 bits gives 256 levels per channel, and HDR images need 10 bits or more.
| Format | Compression | Transparency | Animation | Bit depth / HDR |
|---|---|---|---|---|
| JPEG (.jpg) | Lossy | No | No | 8-bit per channel |
| PNG | Lossless | Full alpha | No (APNG variant does) | 1–16 bits depending on mode |
| WebP | Lossy or lossless | Yes | Yes | 8-bit |
| AVIF | Lossy or lossless | Yes | Yes | 8, 10 or 12-bit; HDR and wide gamut |
| HEIC / HEIF | Lossy (HEVC-based) | Not used in camera photos | Rarely used | 8-bit; 10-bit on some devices |
| GIF | Lossless, but only 256 colours | One fully transparent colour | Yes | 8-bit palette |
| TIFF | Lossless (LZW, PackBits) or JPEG | Possible, rarely used | Multi-page files | 1–8 bits per MDN; supports CMYK |
| SVG | Vector (shapes, not pixels) | Yes | Via CSS or script | Not applicable |
Browser support
JPEG, PNG, GIF and SVG work in every browser. WebP and AVIF now reach almost every visitor, but older Safari versions only had partial support, so sites often serve a JPEG or PNG fallback with the HTML picture element, which is what MDN recommends.
| Format | Global support | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|---|
| JPEG, PNG, GIF, SVG | All browsers | All | All | All | All |
| WebP | 97.32% | 32 | 65 | 16.0 (macOS), 14 (iOS) | 18 |
| AVIF | 96.71% | 85 | 93 | 16.4 (macOS), 16.0 (iOS) | 121 |
| HEIC / HEIF | 15.26% | No | No | 17.0 | No |
| TIFF | Safari only | No | No | Yes | No |
How much smaller than JPEG?
File size depends heavily on the picture and the encoder setting, so treat these as published averages, not guarantees. A flat graphic can be smaller as PNG than as JPEG, while a detailed photo saved as PNG is usually several times larger than the JPEG.
| Format | Size compared with | Reported result | Source |
|---|---|---|---|
| Lossy WebP | JPEG at equal SSIM quality | 25–34% smaller | Google WebP documentation |
| Lossless WebP | PNG | 26% smaller | Google WebP documentation |
| Lossy WebP with transparency | PNG | Typically 3× smaller | Google WebP documentation |
| AVIF | JPEG / WebP | 60% / 35% smaller (Imgix figures) | web.dev |
| HEIC | JPEG at the same visual quality | About 2× compression on average | Apple, WWDC 2017 session 513 |
HEIC vs JPG: the iPhone question
iPhones from the iPhone 7 on, running iOS 11 or later, save photos as HEIC when Settings > Camera > Formats is set to High Efficiency, the default. Apple says HEVC-based images average about twice the compression of JPEG at the same visual quality, so a library of HEIC photos takes roughly half the space.
The cost is compatibility. Among browsers only Safari 17 and later shows HEIC; Windows needs Microsoft's HEIF Image Extensions plus HEVC Video Extensions from the Microsoft Store; Android decodes HEIF from Android 9, though Google marks it as optional for device makers. Apple's own conversion helps: when you AirDrop, message or email a photo to a device that cannot read HEIC, or import over USB to a PC, the photo may be converted to JPEG automatically. Turning on Keep Originals in Settings > Apps > Photos stops that conversion.
To stop making HEIC altogether, choose Most Compatible in Settings > Camera > Formats; new photos are then JPEG and new videos H.264. To convert photos you already have, open them in a converter and save as JPEG. Recast's Convert images does this in bulk on your computer: it saves JPEG at quality 90, turns each photo upright using its orientation tag, and removes GPS location by default. JPEG is 8-bit, so any HDR range in the original is not kept.
| HEIC | JPG | |
|---|---|---|
| Size at the same quality | About half (Apple's average) | About twice the HEIC size |
| Opens in all browsers | No (Safari 17+ only) | Yes |
| Opens on Windows | With HEIF and HEVC extensions | Yes |
| Opens on Android | Android 9+ (device optional) | Yes |
| Bit depth | 8 or 10-bit | 8-bit |
| iPhone setting | High Efficiency (default) | Most Compatible |
Which format should I use?
Recast saves JPEG, PNG, WebP (lossy or lossless), AVIF, TIFF, GIF, ICO and ICNS. It reads HEIC, HEIF, SVG, PSD and JPEG XL but does not save them, so it is a way out of those formats rather than into them.
| Job | Format | Why |
|---|---|---|
| Photo to email or share with anyone | JPEG | Opens on every device and app |
| Screenshot, text, diagram | PNG (or lossless WebP) | Keeps sharp edges and exact colours |
| Logo with transparent background | SVG, or PNG if you only have pixels | Scales cleanly; PNG has full alpha |
| Website photos | AVIF or WebP with a JPEG fallback | Smallest files; MDN's recommendation |
| Short animation | Animated WebP or AVIF | MDN notes GIF performs worse |
| Print or archive master | TIFF or PNG | Lossless; TIFF also holds CMYK |
| iPhone photos to a Windows PC | Convert HEIC to JPEG | Opens without extensions |
Do it with Recast
These tools run on your computer, so nothing is uploaded.
Frequently asked questions
Is HEIC better quality than JPG?
At the same file size, yes, because HEIC compresses about twice as well on average (Apple). At the same quality, HEIC is roughly half the size. Converting HEIC to JPG keeps the picture but makes a bigger file.
Should I use WebP or AVIF on my website?
Both are supported by about 97% of browsers in use. AVIF is usually smaller; WebP is faster to encode. Serving AVIF with a JPEG or WebP fallback covers almost everyone.
Why is my PNG photo so large?
PNG is lossless, so it stores every pixel of a detailed photo. Save photos as JPEG, WebP or AVIF instead and keep PNG for screenshots and graphics.
Can Recast convert images to HEIC?
No. Recast reads HEIC and HEIF and converts them to JPEG, PNG, WebP, AVIF, TIFF or GIF, but it does not save HEIC.
Sources
Checked on 2 Dec 2026. Platforms change their limits; their own pages are the final word.
- MDN: Image file type and format guide
- caniuse: WebP image format
- caniuse: AVIF image format
- caniuse: HEIF/HEIC image format
- Google for Developers: An image format for the web (WebP)
- web.dev: Deploying AVIF for more responsive websites
- Apple WWDC 2017: High Efficiency Image File Format
- Apple: Using HEIF or HEVC media on Apple devices
- Android: supported media formats
- Microsoft Q&A: How to open HEIC files