JPG vs PNG vs WebP: Which Image Format Should You Use?

Open the JPG / PNG / WebP ConverterFree, no sign-up.

JPG, PNG and WebP can all show the same picture, but they store it in different ways, and the wrong choice gives you blurry text, lost transparency or a file several times bigger than it needs to be. The short version: JPG for photos, PNG for screenshots and graphics that need exact pixels, and WebP for websites.

Lossy and lossless, in plain terms

A lossless format stores an image so it can be rebuilt pixel for pixel. PNG is lossless, and so is WebP in its lossless mode.

A lossy format throws away detail your eye is less likely to notice, in exchange for a much smaller file. JPG is lossy, and so is WebP in its lossy mode. A quality setting controls how much is thrown away. Push it too low and you'll see blocky patches in smooth areas like skies, and smudgy halos around text and sharp edges.

Two consequences are worth remembering. Every time you edit and re-save a JPG, it loses a little more. And converting a JPG to PNG doesn't bring lost detail back; it just gives you a bigger file of the same image.

The three formats

JPG: the everyday photo format

JPG (also written JPEG) was standardised in 1992 as ISO/IEC 10918, according to the JPEG committee, and it opens everywhere: every browser, phone, email app, printer and upload form. It's excellent for photographs, where millions of slightly different colours hide the compression. It's poor at text, logos, line drawings and screenshots, where hard edges show artefacts. It has no transparency, so transparent areas have to be filled with a colour, usually white. For photos, a quality setting between about 60 and 85 is usually a good balance.

PNG: exact pixels and transparency

PNG is lossless and supports full transparency through an alpha channel, including soft, partly see-through edges. The current W3C PNG specification also covers animated PNG (APNG). That makes PNG the right choice for logos, icons, screenshots, diagrams, charts and anything with text in it, and it's supported everywhere.

The catch is photos. Because PNG keeps every pixel exactly, a photo saved as PNG is often several times larger than a good JPG of the same picture, with no visible benefit. If someone has sent you a huge PNG photo, converting it to JPG is usually the quickest way to shrink it.

WebP: smaller files, both modes

WebP was developed by Google for the web. It can be lossy or lossless, supports transparency and can be animated. Google's WebP page says lossless WebP files are 26% smaller than PNGs, and lossy WebP files are 25 to 34% smaller than comparable JPGs. Results vary from image to image, but the savings are real.

Browser support is no longer a worry. MDN's image format guide lists WebP support in Chrome, Edge, Firefox, Opera and Safari. Apple added it in Safari 14, released in 2020 with iOS 14 and macOS Big Sur, so only devices stuck on older software can't show it.

Where WebP still falls short is outside the browser. Some upload forms, older desktop software and print services accept only JPG and PNG. If you save a picture from a website and your photo editor won't open it, it's probably WebP, and converting it fixes the problem.

Three more formats you'll meet

  • HEIC is what iPhones use under Apple's High Efficiency camera setting. Many websites and Windows apps can't open it. Convert photos with HEIC to JPG, or switch new photos to JPG under Settings > Camera > Formats > Most Compatible, as Apple explains. There's more in HEIC vs JPG.
  • AVIF compresses even further than WebP and works in current browsers (MDN lists Chrome 85, Firefox 93 and Safari 16.1 onwards), but forms and older apps often reject it. AVIF to JPG fixes that, and AVIF to PNG keeps transparency.
  • SVG isn't made of pixels at all: it describes shapes, so logos and icons stay sharp at any size. When a site wants a normal image, SVG to PNG draws it at the size you pick, with a transparent background.

Side-by-side comparison

FeatureJPGPNGWebP
CompressionLossyLosslessLossy or lossless
TransparencyNoYesYes
AnimationNoOnly as APNGYes
Best forPhotosScreenshots, logos, diagrams, textWebsite images of any kind
Weak atText, sharp edges, repeated re-savingPhotos (large files)Upload forms and older apps
SupportEverywhereEverywhereAll current browsers, patchy elsewhere

Which format to use for which job

  • Photos on your own website: WebP, or JPG if your platform doesn't accept WebP.
  • Photos to email, print or upload to a form: JPG, because it's accepted everywhere.
  • Screenshots, especially with text: PNG. On a website, lossless WebP gives the same sharpness in less space.
  • Logos with a transparent background: PNG, or WebP on the web. Never JPG.
  • Scans and photos for job or government portals: exactly what the form asks for. If it says JPG, a PNG or WebP may be rejected even if it looks the same.
  • Social media: JPG or PNG. The platforms recompress uploads anyway.

Converting and compressing with SAA Tool

To change format, open the JPG / PNG / WebP Converter, drop in a JPG, PNG, WebP, GIF or BMP, choose JPG, PNG or WebP under Convert to, and click Convert Image. It shows the old and new file sizes side by side. JPG and WebP are saved at 92% quality. If your image has transparent areas and you pick JPG, the tool warns you and fills them with white. An animated GIF becomes a single still image.

For batches of up to 30 images with a ZIP download, use the single-purpose converters: JPG to WebP (quality starts at 80%), WebP to JPG, PNG to JPG and JPG to PNG. The two that save JPG let you pick the colour that fills transparent areas.

To make a file smaller, use the Image Compressor. Set the Quality (75% by default), choose JPG or WebP under Save as, and optionally pick a Max width. If the image has transparency, WebP is selected for you so it stays transparent. If the result isn't smaller than your original, the tool says so, and you should keep the original.

All of these run in your browser, so your images aren't uploaded. For dimensions and file size targets, see how to resize and compress images.

Quick answers

Is WebP better than JPG?

For websites, usually yes: smaller files at similar quality, with transparency if you need it. For email attachments, printing and upload forms, JPG is still safer because everything accepts it.

Why did my file get bigger when I converted JPG to PNG?

PNG stores every pixel exactly, including the tiny speckles left by JPG compression. You get the same picture in a larger file, so only convert to PNG when a form or app requires it.

Can a JPG have a transparent background?

No. JPG has no transparency. Save as PNG or WebP instead, and if you need to cut out the background first, see how to remove a background from an image.

Does converting to PNG improve quality?

No. Converting can't add detail that isn't there. It does stop further loss from repeated saving, which helps if you'll edit the image many times, but it won't sharpen anything.

Sources

  1. Google for Developers: An image format for the Web (WebP)
  2. MDN Web Docs: Image file type and format guide
  3. Apple Developer: Safari 14 Release Notes
  4. Apple Support: Using HEIF or HEVC media on Apple devices
  5. JPEG committee: JPEG 1 (ISO/IEC 10918)
  6. W3C: Portable Network Graphics (PNG) Specification (Third Edition)

Spotted a mistake or something out of date? Tell us and we'll fix it.

More guides