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 site | JPG |
| Email or message a photo | JPG |
| Keep a logo or graphic with a transparent background | PNG |
| Save a screenshot with sharp text | PNG |
| Make images load fast on your own website | WebP |
| Save space on an iPhone | HEIC (convert to JPG before sharing) |
| Print a photo | JPG 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
| JPG | PNG | WebP | HEIC | |
|---|---|---|---|---|
| Best for | Photos | Logos, screenshots | Websites | iPhone storage |
| File size for a photo | Small | Very large | Smallest | Very small |
| Transparency | No | Yes | Yes | Yes |
| Quality loss | Yes (adjustable) | None | Optional | Yes (small) |
| Accepted by forms | Almost always | Sometimes | Rarely | Rarely |
Does converting lose quality?
- To PNG: no further loss, but the file gets bigger, and any detail already lost can't be brought back.
- To JPG or lossy WebP: a small amount of detail is lost. At high quality settings you won't see the difference on a screen.
- Transparency: converting a transparent PNG to JPG fills the transparent area with a solid colour, because JPG can't store transparency.