JPG, PNG, WebP and HEIC: Which Image Format Should You Use?
Image formats trade quality, file size and compatibility. Choosing the right one saves space and avoids files that will not open.
The main formats
| Format | Compression | Transparency | Best for | Support |
|---|---|---|---|---|
| JPG | Lossy | No | Photos, sharing, printing | Everywhere |
| PNG | Lossless | Yes | Graphics, screenshots, logos | Everywhere |
| WebP | Lossy or lossless | Yes | Web images, smaller files | All current browsers; some older software lacks it |
| HEIC | Lossy, efficient | Yes | iPhone photos | Mainly Apple devices |
| AVIF | Lossy or lossless | Yes | Very efficient web images | Modern browsers |
When to convert
- PNG to JPG: to shrink photos and screenshots with many colors. Transparent areas become a solid color.
- JPG to PNG: only when an app requires PNG. It does not recover lost detail.
- WebP to JPG: when software or a service does not accept WebP.
- JPG or PNG to WebP: to make website images smaller.
- HEIC to JPG: to share iPhone photos with devices that cannot open HEIC.
Keep quality when converting
- Always convert from the original file, not from a copy that was already compressed several times.
- Use a quality of 85 to 90 percent for photos. Lower values save little extra space and add visible artifacts.
- Keep the original files. Convert copies for each use.
Our converters
How compression works
Lossless formats such as PNG store the picture so that it can be reconstructed exactly. Lossy formats such as JPG, WebP and HEIC discard detail that people are unlikely to notice, which makes files much smaller. Each time a lossy file is edited and saved again, a little more detail is lost, so the quality of a JPG that has been saved ten times can be visibly worse than the original.
Choosing by task
| Task | Best choice | Why |
|---|---|---|
| Photograph to share or print | JPG | Small, universal and good enough for most uses |
| Screenshot, interface or text | PNG | Sharp edges without compression artifacts |
| Logo with a transparent background | PNG or WebP | Both keep transparency |
| Image for a fast website | WebP | Usually smaller than JPG at similar quality |
| iPhone photo for a Windows or Android user | JPG | HEIC support is limited outside Apple devices |
| Image you will edit repeatedly | PNG, TIFF or the RAW file | Avoids repeated lossy compression |
| Archiving camera originals | RAW | Keeps the most information |
Metadata and color profiles
Image files can carry camera data, location and an embedded color profile. Converting a file may remove the metadata, which helps privacy but also removes copyright fields. The color profile tells programs how to show the colors. Web images are usually in sRGB, and converting to another profile can shift colors slightly.
Common mistakes
- Renaming a file. Changing the extension from .png to .jpg does not convert the file. Use a converter.
- Saving screenshots as JPG. Text and sharp lines become blurry and blotchy.
- Converting a JPG to PNG to improve it. It makes the file bigger and recovers nothing.
- Repeatedly re-saving a JPG. Work from the original each time.
- Forgetting transparency. Converting a transparent PNG to JPG replaces the transparent areas with a solid color.
A note on newer formats
AVIF and JPEG XL are newer formats that can give even smaller files, but support in software is still uneven. For now, JPG and PNG are the safe choices for sharing, and WebP is a good choice for websites.
Try the tool
Image Resizer and ConverterResize photos and convert between JPG, PNG and WebP in your browser. Nothing is uploaded.
About the author. Darkroom Bench is created and maintained by Andrés, a nature photographer from Argentina with two decades in southern Patagonia and more than 50 trips to Antarctica, whose work has received international awards. Read more or follow the photography on Instagram: @yosoytato.