JPG vs PNG vs WebP: Which Image Format Should You Use?
Use JPG for photos when you need them to open everywhere, PNG for screenshots, logos, and anything that needs sharp edges or a transparent background, and WebP for images on websites. WebP handles both photo-style and graphic-style images and usually makes smaller files, but some older software and upload forms still reject it.
The choice comes down to four questions. Does the image have to look exactly like the original, or is small invisible loss acceptable? Does it need transparency? Does it move? And will the person or app receiving it be able to open it?
This guide answers each of those questions, gives you a decision table by use case, and explains what goes wrong when you convert between formats, such as blurry text or transparent backgrounds that suddenly turn white or black.
Lossy vs. lossless compression: the core difference
Every format here compresses image data, but in one of two ways.
Lossless compression shrinks the file without throwing anything away. When you open the file, every pixel matches the original exactly. PNG is always lossless. It works best on images with large areas of flat color and repeated patterns, like screenshots, charts, and logos, and it does poorly on photos, where neighboring pixels are rarely identical.
Lossy compression gets much smaller files by permanently discarding detail the eye is unlikely to notice. JPG is always lossy. Most tools let you pick a quality level. Higher quality keeps more detail and makes bigger files, while lower quality produces visible artifacts: blocky patches, smeared color, and faint "ringing" halos around sharp edges. Quality scales are not standardized, so "80" in one app doesn't mean the same thing as "80" in another.
WebP can do either. It has a lossy mode that competes with JPG and a lossless mode that competes with PNG. That flexibility is the main reason it has become the default for many websites.
Why text looks bad in JPG
Lossy formats save the most space by blurring fine detail and storing color at lower resolution than brightness. This technique, called chroma subsampling, is common in JPG and always used in lossy WebP. Photos hide the damage well. Text, thin lines, and hard edges against flat backgrounds don't, which is why a JPG screenshot often has fuzzy letters and smudged red or blue text.
JPG vs. PNG vs. WebP at a glance
| Feature | JPG (JPEG) | PNG | WebP |
|---|---|---|---|
| Compression | Lossy only | Lossless only | Lossy or lossless |
| Transparency | No | Yes, full alpha (smooth, partial transparency) | Yes, in both modes |
| Animation | No | Yes, via APNG, but many apps show only the first frame | Yes |
| Color depth | 8 bits per channel in practice | Up to 16 bits per channel | 8 bits per channel |
| Best at | Photos | Screenshots, logos, graphics, editing masters | Web images of any kind |
| Compatibility | Opens almost everywhere | Opens almost everywhere | All current major browsers; patchier in older software, email, and upload forms |
A few notes on the table:
- Transparency in PNG and WebP means each pixel can be fully or partly see-through. That's what lets a logo with soft, anti-aliased edges sit cleanly on any background color. JPG has no transparency at all.
- Animation used to mean GIF, which is limited to 256 colors per frame. Animated WebP usually looks better and makes smaller files. Animated PNG (APNG) works in modern browsers, but many image viewers and editors treat it as a still image.
- Color depth matters mostly for professional editing. PNG's 16-bit option keeps smooth gradients intact through heavy adjustments, but for final images, 8 bits per channel is the norm.
Which format to use: decision table by use case
| Use case | Best choice | Acceptable alternative | Avoid | Why |
|---|---|---|---|---|
| Photos to share or archive | JPG at high quality | WebP (lossy), or keep the camera original | PNG | JPG makes small files that open everywhere; PNG makes photos huge for no visible gain |
| Screenshots | PNG | Lossless WebP | JPG | Lossless keeps text and UI edges crisp; flat colors compress well |
| Logos and icons | SVG if you have a vector version, otherwise PNG | WebP (lossless) | JPG | Needs transparency and sharp edges |
| Images on web pages | WebP | AVIF with a fallback, or JPG/PNG | PNG for photos | WebP covers photos and graphics with smaller files and wide browser support |
| Whatever your printer asks for, often PDF, TIFF, or maximum-quality JPG | PNG for graphics | WebP, low-quality JPG | Print shops commonly expect specific formats and high resolution; WebP is rarely accepted | |
| Email attachments | JPG for photos, PNG for screenshots | PDF for multi-page documents | WebP | Recipients' email apps and devices may not preview WebP |
| Short animations | Animated WebP (web), GIF (maximum compatibility) | Video file for longer clips | APNG for general sharing | GIF opens everywhere but looks worse; video is far more efficient for long clips |
| Editing master files | PNG, or your editor's native format | TIFF | JPG | Every re-save of a JPG can add loss |
If you remember one rule: photo-like content goes lossy, graphics and text go lossless, and anything leaving your control should be in the most compatible format.
Why file sizes differ: an illustrative example
To see why format choice matters, start with the raw data. Take a photo that is 1,200 × 800 pixels:
- Pixel count: 1,200 × 800 = 960,000 pixels.
- Each pixel stores red, green, and blue at 8 bits (1 byte) each, so 3 bytes per pixel.
- Uncompressed size: 960,000 × 3 = 2,880,000 bytes, about 2.9 MB.
- Adding a transparency channel makes it 4 bytes per pixel: 960,000 × 4 = 3,840,000 bytes, about 3.8 MB.
Compression works on that raw data. The figures below are an illustrative example, not measured results. Real sizes vary widely with image content, dimensions, and encoder settings.
| Format and setting | Illustrative size for this photo | What you see |
|---|---|---|
| Uncompressed | ~2.9 MB | Exact original |
| PNG (lossless) | Roughly 1.5–2 MB | Exact original, still large |
| JPG, medium-high quality | Roughly 150–250 KB | Looks the same at normal viewing size |
| WebP lossy, similar visual quality | Somewhat smaller than the JPG | Looks the same at normal viewing size |
For a screenshot of a mostly white document, the pattern often flips. PNG can be quite small because long runs of identical pixels compress well, while a JPG of the same screenshot may not be much smaller and will have fuzzy text.
Google's WebP documentation reports that lossy WebP files are about 25–34% smaller than comparable JPGs and that lossless WebP files are about 26% smaller than PNGs. Treat those as averages from Google's own comparisons, not a promise for any particular image.
Where WebP and AVIF are (and aren't) supported
WebP works in current versions of Chrome, Edge, Firefox, and Safari, so on the web it's a safe default. Outside the browser, support depends on the app and version. Recent operating systems and major image editors generally open WebP, but older software, some email clients, print services, and website upload forms may reject it or show it as an unknown file. That's why an image you download from a site sometimes won't open in another app.
AVIF is a newer format based on the AV1 video codec. It often compresses even better than WebP, especially for photos, and it supports transparency, animation, and high bit depth. Current versions of the major browsers can display it, but support in desktop software, phone galleries, and upload forms is less consistent than for WebP, and encoding can be noticeably slow. For websites, AVIF works well alongside a fallback: the HTML picture element lets a browser choose AVIF or WebP when it can and fall back to JPG or PNG when it can't. For files you send to other people, AVIF isn't a safe choice yet.
What happens when you convert between formats
Converting changes how the image data is stored, and some of those changes can't be undone.
Re-compression loss
Each time a lossy image is decoded and encoded again, the encoder may discard more detail. Saving a JPG as a JPG, or converting lossy WebP to JPG, can stack one round of loss on another. Damage builds up fastest when you edit, crop, resize, or change the quality setting between saves.
Converting the other way doesn't help. Turning a JPG into a PNG keeps the existing artifacts exactly as they are and usually makes the file several times larger. Lossless formats preserve what you give them. They can't restore what lossy compression already removed.
Transparency turning white or black
JPG can't store transparency, so when you convert a transparent PNG or WebP to JPG, the converter has to fill those areas with something:
- Many tools fill them with white, which looks fine until you place the logo on a dark background and see a white box around it.
- Some tools fill them with black. This usually happens because fully transparent pixels still store hidden color values, often black, and a converter that simply drops the transparency channel reveals them.
- Soft edges cause a subtler problem. Semi-transparent edge pixels get blended with the fill color, leaving a light or dark fringe called a halo.
To avoid all three, keep transparent images in PNG or WebP. If you must produce a JPG, choose a converter that lets you set the background color and match it to wherever the image will appear.
Metadata and color profiles
Depending on the tool, conversion may strip camera metadata (date, camera model, GPS location) and embedded color profiles. Losing location data can be a privacy benefit. Losing a color profile can make colors look duller or shifted, especially for photos edited in a wide-gamut color space.
How to convert images with minimal quality loss
- Start from the best original you have. Convert from the camera file or a lossless master, not from a JPG that has already been compressed and shared.
- Pick the target based on content. Use lossy (JPG or lossy WebP) for photos and lossless (PNG or lossless WebP) for screenshots, text, and logos.
- Resize before compressing. A 4,000-pixel-wide photo shown at 1,200 pixels wastes most of its file size. Shrinking the dimensions often saves more than lowering the quality.
- Set lossy quality deliberately. Start fairly high, compare at 100% zoom, and lower it until you see artifacts, then step back up.
- Handle transparency explicitly. Keep it by using PNG or WebP, or choose a background color before exporting to JPG.
- Check metadata and color. Decide whether to keep or remove location data, and confirm colors still look right after export.
- Keep the original. Save the converted copy under a new name so you can redo it later with different settings.
Quick reference checklist
- Photo for anyone, anywhere: JPG, high quality.
- Screenshot or anything with text: PNG (or lossless WebP for the web).
- Logo or icon: SVG if possible, otherwise PNG.
- Image on a website: WebP, optionally AVIF with a JPG/PNG fallback.
- Print: ask the printer; usually PDF, TIFF, or maximum-quality JPG.
- Email attachment: JPG or PNG, not WebP.
- Transparent image going to JPG: set the background color first.
- Never repeatedly edit and re-save the same JPG. Work from a lossless master.
- Converting JPG to PNG won't improve quality. It just makes the file bigger.
Frequently Asked Questions
Why do images I save from websites download as WebP?
Many websites serve WebP because it makes smaller files and current browsers display it, so the copy you save is in the format the site actually delivered. If another app won't open it, convert it to JPG for photos or PNG for graphics, or open it in a browser or an up-to-date image editor and export it from there.
Is PNG higher quality than JPG?
PNG is lossless, so it never adds compression artifacts, while JPG always discards some detail. For a photo saved at high JPG quality, though, the difference is usually invisible at normal viewing size, and the PNG may be many times larger. PNG's advantage shows up mostly on text, line art, and flat-color graphics.
What JPG quality setting should I use?
There's no universal number, because each app defines its own quality scale. A practical approach is to export at a fairly high setting, zoom to 100%, and lower it step by step until you notice blockiness or halos around edges, then go back one step. Photos meant for archiving or further editing deserve a higher setting than images for a quick message.
Should a logo be SVG or PNG?
If you have the logo as a vector file, SVG is usually the better choice for websites because it stays sharp at any size and is often very small. Use PNG when the destination doesn't accept SVG, such as many profile-picture uploads, older office software, or email signatures, and export it at the largest size it will be displayed.
Is HEIC from my phone the same kind of format as WebP?
HEIC is a different modern format that many phones, especially iPhones, use to store photos compactly. Like WebP and AVIF, it compresses better than JPG but isn't universally supported, particularly on older computers and websites. Many phones can be set to save or share photos as JPG when compatibility matters more than file size.