JPG vs PNG vs WebP: Which Image Format to Use
· 3 min read
Every image you save for a website, an email or an upload form has a format. The three you meet most often are JPG, PNG and WebP. They differ in file size, sharpness, transparency and where they are accepted.
This guide explains what each one is good at and when to pick it. If a file is already in the wrong format, the Image Converter changes it in your browser.
The three formats at a glance
| Format | Compression | Transparency | Animation | Best for |
|---|---|---|---|---|
| JPG | Lossy | No | No | Photos |
| PNG | Lossless | Yes | Rarely | Screenshots, logos, text, diagrams |
| WebP | Lossy or lossless | Yes | Yes | Photos and graphics on the web |
Lossy and lossless
Lossy compression throws away some detail to make the file much smaller. Each time you save an image as JPG, it loses a little more, so edit from the original and save the JPG last.
Lossless compression keeps every pixel exactly as it was. The file is larger, but nothing is lost however often you save it.
JPG
JPG is the most widely accepted format: every device, app and upload form takes it. That makes it the safe choice when you do not know where a file will end up.
Its weakness is sharp edges. Text, thin lines and hard borders pick up blurry smudges, called artefacts, around them. JPG suits photos, where colours blend smoothly, and suits screenshots poorly.
PNG
PNG keeps sharp edges and text crisp, and supports transparent backgrounds, so a logo can sit on any coloured page without a white box around it.
The cost is size. A photo saved as PNG is usually several times larger than the same photo as JPG, so use PNG for screenshots, logos, text and diagrams rather than photos.
WebP and AVIF
WebP was made by Google. It can be lossy or lossless, supports transparency and can be animated, so one format covers most of what JPG and PNG do. In Google's own tests, lossless WebP was about 26% smaller than PNG, and lossy WebP 25–34% smaller than JPG at the same quality.
All current major browsers show WebP. Some older apps and upload forms still reject it, and that is when you convert WebP to JPG or PNG.
AVIF is newer and often smaller still. Current browsers support it, but it is slower to make and fewer other programs accept it. The Image Converter does not make AVIF files.
What happens when you convert
- Transparent areas become white when you convert to JPG, because JPG has no transparency.
- Converting a JPG to PNG makes the file bigger, but it does not bring back detail the JPG already lost.
- An animated GIF becomes a still image of its first frame.
- Most browsers cannot open iPhone HEIC photos; only Safari can. To avoid HEIC, set the iPhone camera to "Most Compatible", which takes JPGs.
Making files smaller
Resizing usually saves the most. A phone photo 4,000 pixels wide, shown 1,200 pixels wide on a page, wastes most of its pixels.
Then lower the quality. For most photos, a JPG or WebP quality of around 75 to 85 looks the same as the original at a fraction of the size.
Many upload forms set a size limit. The Image Compressor can aim for a target such as under 1 MB or under 200 KB, so you do not have to guess the quality setting.
Quick rules
| Situation | Format |
|---|---|
| Photo for a website | WebP, or JPG for the widest support |
| Logo, icon or screenshot | PNG or lossless WebP |
| Needs a transparent background | PNG or WebP |
| Email attachment, or a form that may be old | JPG |
Try it
Use the Image Converter to switch formats, or the Image Compressor to shrink files. Both handle many images at once, give you a ZIP, and run in your browser, so your images are not uploaded.