JPG, PNG or WebP: which image format should you use?

Almost every image you meet online is a JPG, a PNG or a WebP. They look similar on screen, but they store pictures in very different ways, and the wrong choice shows up later as a blurry logo, a file that is far too large, or an image a website refuses to accept. This guide explains what each format is good at so you can pick the right one, and what converting between them can and cannot do.

The short answer

JPG: the all-purpose photo format

JPG (also written JPEG) uses lossy compression. It throws away fine detail that the human eye barely notices, which makes photographs much smaller than they would be otherwise. At sensible quality settings a photo looks the same as the original at a fraction of the size.

The trade-offs are:

Almost every phone, camera, website, email program and printing service accepts JPG, which is why it is still the default for photos.

PNG: sharp, exact and transparent

PNG uses lossless compression, so the image you save is exactly the image you get back, with no fuzziness around edges. It also supports transparency, which is why logos and icons are usually PNG files.

The cost is size. A photograph saved as PNG is often several times larger than the same photo as a JPG, because photos contain the kind of fine, noisy detail that lossless compression cannot shrink much. PNG shines for screenshots, charts, diagrams, interface graphics and images with large flat areas of color, where it is both sharp and reasonably small.

WebP: smaller files for the web

WebP is a newer format that can work in either mode: lossy for photos or lossless for graphics. It supports transparency and animation too. In practice a WebP image is usually noticeably smaller than a JPG or PNG that looks the same, which is why many websites use it to speed up their pages.

Every current major browser can display WebP. The problem is everything else. Some older editing programs, some email clients, some printing services and some upload forms still do not accept it. If you have ever saved an image from a website and found you could not open or upload it, there is a good chance it was a WebP file.

Which one for which job

What converting can and cannot do

Converting does not improve an image. It only changes how the same picture is stored, and that has consequences worth knowing about:

The general rule: keep your original file, convert a copy, and avoid converting the same image back and forth.

Converting with TypeOrDrop

If you need to switch formats, these tools handle the common cases:

Choose the tool, add your file and download the result. Files are currently limited to 5 MB each, and free use has a daily limit; the pricing page has the current numbers. Uploaded files are deleted automatically, and the Privacy Policy explains how long anything is kept.