HEIC vs JPG vs PNG vs WebP: which file a form, an editor, or a website wants
Four file types cover nearly every photo you will handle: HEIC from an iPhone, JPG from almost everything else, PNG from screenshots and design tools, and WebP from web pages. They can all hold the same picture. They differ in how they squeeze it into a file, what extra information they can carry, and who can open them.
The short overview on this site lists which PicKept tool to use for each format. This article goes further: what each format does under the hood, and how to read the request in front of you, whether it is an upload form, a print shop, or a website builder.
Two kinds of compression
Every format here compresses. The important question is whether it is lossy or lossless.
Lossy compression throws away detail that is hard to see, such as tiny shifts in color inside a patch of sky. You choose how much to throw away with a quality setting. The file gets much smaller, and the loss is permanent. Saving the same lossy file again throws away a little more.
Lossless compression packs the pixels more tightly without changing any of them. Open the file and every pixel is exactly what was saved. The cost is size. Lossless works very well on flat colors and sharp edges, and badly on the fine noise and texture that every camera photo has.
JPG is always lossy. PNG is always lossless. HEIC and WebP can be either, though the photos you meet are almost always the lossy kind.
HEIC
What it is: the iPhone’s default camera format since iOS 11, built on the HEIF container and HEVC compression.
Good at: storing a camera photo in a small file with good quality. It can also hold depth maps, several images in one file, and extra HDR information.
Weak at: compatibility. Windows needs extra extensions to open it. Many web forms, older Office versions, and printing kiosks still reject .heic or .heif. Web browsers other than Safari generally cannot show it on a page.
Use it for: keeping photos on your phone or Mac. Do not send it to anyone unless you know they use Apple devices. See why iPhone photos are HEIC for the ways to turn it into a JPG.
JPG (also written JPEG)
What it is: the 1990s photo format that everything still understands. .jpg and .jpeg are the same thing.
Good at: camera photos at a reasonable size, and being accepted everywhere: email, Word, Google Docs, school portals, job sites, online marketplaces, and photo printers.
Weak at: sharp text and flat graphics, which pick up faint fuzzy halos called artifacts. It cannot store transparency at all. And it degrades a little each time it is edited and saved again.
Use it for: anything you send to a person or a form when nobody said otherwise. The quality settings guide explains how to pick a number.
PNG
What it is: a lossless format designed for graphics, with full support for transparent backgrounds.
Good at: screenshots, logos, charts, diagrams, scans of text, and any picture you will edit and save several times.
Weak at: camera photos. A PNG of a 12-megapixel photo is often several times the size of a good JPG, and it looks no better to the eye. In one test on this site, a 2.5 MB JPG photo became a 12.8 MB PNG with JPG to PNG. The PNG is not sharper. It just stops further loss.
Use it for: graphics, anything with transparency, and working copies. See transparency and logos for what happens when a transparent PNG becomes a JPG.
WebP
What it is: a format from Google, built for the web. It can be lossy or lossless, can store transparency, and can even be animated.
Good at: making web pages load faster. A lossy WebP is usually smaller than a JPG that looks the same. In the same test above, the photo saved by JPG to WebP at the default setting was about 1.4 MB, compared with about 2 MB as a JPG at 92%.
Weak at: leaving the browser. If you right-click an image on a shopping site and save it, you often get a .webp that an older photo viewer, an email client, or a print shop will not take.
Use it for: images you are putting on your own website. Convert it to JPG with WebP to JPG before you attach it to anything.
Side by side
- Compression: HEIC lossy (usually). JPG lossy. PNG lossless. WebP lossy or lossless.
- Transparency: HEIC can, but camera photos never use it. JPG cannot. PNG can. WebP can.
- Animation: HEIC can hold image sequences. JPG cannot. PNG has a rarely used animated variant (APNG). WebP can.
- Opens everywhere: JPG yes. PNG nearly everywhere. WebP in modern browsers and newer apps. HEIC mostly on Apple devices.
- Typical size for a phone photo: HEIC smallest, then WebP, then JPG, with PNG far behind.
Reading what a form actually wants
“JPG or PNG only, max 5 MB”
This is the most common wording on job sites and government portals. For a photo, give it a JPG. Choosing PNG only makes it more likely you hit the size limit. If the photo is HEIC, convert with HEIC to JPG.
“PNG required” on a profile picture or logo field
Often this is a design tool that wants a transparent background, or a developer who picked PNG to avoid JPG artifacts on small icons. If you are uploading a photo of a person, a PNG made from the JPG will be accepted and will look the same. If you are uploading a logo, use the original PNG export from the designer rather than converting a JPG, because a JPG cannot get its transparent background back.
“Upload high-resolution images” at a print shop
They mean pixels, not format. A JPG at high quality is normal for prints. What matters is enough pixels for the print size. See resizing for forms, the web, and print.
A website builder that asks for “web-optimized images”
Here WebP is the right answer if the builder accepts it, or a JPG that has been resized to the width the page actually shows. A 4,000-pixel-wide photo in a 1,200-pixel-wide banner just slows the page down.
An editor that will not open your file
If an older version of Photoshop, GIMP, or an online editor rejects HEIC or WebP, convert to PNG for editing. That way the edits do not stack JPG loss on top of loss. When you are done, make the final JPG once.
Converting between them does not repair anything
A conversion changes how the picture is stored. It cannot restore detail that was lost earlier. A blurry JPG turned into PNG is a blurry PNG. A tiny WebP thumbnail turned into JPG is a tiny JPG. Going from lossy to lossless only protects the picture from further loss. That is useful before editing, and pointless for a file you are about to send.
Choosing quickly
If you are not sure, the answer is almost always JPG. Pick PNG for graphics, transparency, and editing. Pick WebP for your own web pages. Keep HEIC on the phone. When a destination names a format, give it exactly that, and if it also names a size, see the file-size guide.
Try it: the short format overview. Photos stay in your browser.