Photofit

Guide

JPG vs PNG vs WebP vs HEIC: which format should you use?

Most of the time the format of a photo doesn't matter, until a website refuses it or a logo ends up with an ugly white box around it. Here's what each format is for, and which one to pick.

The short answer

You want to…Use
Upload a photo to a form, job portal or visa siteJPG
Email or message a photoJPG
Keep a logo or graphic with a transparent backgroundPNG
Save a screenshot with sharp textPNG
Make images load fast on your own websiteWebP
Save space on an iPhoneHEIC (convert to JPG before sharing)
Print a photoJPG at the highest quality

JPG (JPEG)

JPG is the most widely accepted image format in the world. Every phone, computer, browser and website can open it. It uses lossy compression: it throws away detail your eye is unlikely to notice, which is why a JPG photo can be ten times smaller than the same photo saved as PNG.

The trade-off is that every time you edit and re-save a JPG, a little more detail is lost. Sharp edges, such as text in a screenshot, can also get faint smudges around them. For ordinary photos of people and places, JPG is almost always the right choice. JPG and JPEG are exactly the same format; the shorter name comes from older versions of Windows, which only allowed three-letter extensions.

PNG

PNG uses lossless compression: nothing is thrown away, so every pixel is kept exactly. That makes it ideal for logos, icons, diagrams and screenshots, where crisp edges and flat colours matter. PNG also supports transparency, so a logo can sit on any background without a white box around it.

For photos, PNG files are very large. A phone photo saved as PNG can easily be 10–20 MB, which is why upload forms often reject it. If you need a photo under a size limit, convert it with PNG to JPG first.

WebP

WebP is a newer format from Google, designed for websites. It can be lossy like JPG or lossless like PNG, supports transparency, and is usually 25–35% smaller than a JPG of similar quality. All modern browsers display it.

The catch is that many other places still don't accept it. Government forms, older apps and some printing services will refuse a WebP file. If you've saved an image from a website and it won't upload, it's probably WebP: use WebP to JPG. If you run a website and want faster pages, go the other way with JPG to WebP.

HEIC (HEIF)

HEIC is the format iPhones use by default. It stores a photo at roughly half the size of a JPG with the same quality, which saves a lot of storage. The problem is compatibility: Windows, Android, and most websites and forms either can't open HEIC files or won't accept them.

When you share a photo from an iPhone through the normal photo picker, it is often converted to JPG automatically. When you copy files to a computer, it usually isn't. You can convert them with HEIC to JPG, or stop the problem for future photos by going to Settings › Camera › Formats and choosing Most Compatible.

Side-by-side comparison

JPGPNGWebPHEIC
Best forPhotosLogos, screenshotsWebsitesiPhone storage
File size for a photoSmallVery largeSmallestVery small
TransparencyNoYesYesYes
Quality lossYes (adjustable)NoneOptionalYes (small)
Accepted by formsAlmost alwaysSometimesRarelyRarely

Does converting lose quality?

Related tools