Skip to main content

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

Every image is saved in a format, and the format decides how big the file is, whether it can have a see-through background, and where it will open. Choosing the right one is usually simple, once you know what each is for.

The short answer

  • A photo for a form, an email or a chat: JPG.
  • A logo, a signature, a screenshot or anything with text: PNG.
  • A cut-out on a see-through background: PNG, or WebP for a website.
  • Images on your own website: WebP.

JPG

JPG (also written JPEG: they are the same format) was made for photos. It leaves out fine detail the eye barely notices, which makes photos small. Every website, form, phone and computer opens it, which is why forms ask for it.

JPG has two limits. It can't store transparent areas: they turn white. And sharp edges, such as text and thin lines, get a soft blur around them. Saving a JPG again and again adds a little loss each time.

PNG

PNG is lossless: it keeps every pixel exactly. That makes it the best choice for screenshots, logos, signatures, drawings and text, which stay crisp. It can store transparency, so a logo or a cut-out can sit on any background.

The cost is size. A photo saved as PNG is often several times larger than the same photo as JPG. Converting a JPG to PNG can't bring back detail the JPG already left out; it only makes the file bigger.

WebP

WebP is a newer format made for the web. It can work like JPG (lossy, small photos) or like PNG (transparency), and its files are usually smaller than both. ChobiKit measured a portrait at 20 KB: about 360 by 480 pixels as a JPG, but about 550 by 740 as a WebP.

Browsers open WebP, but some older programs and many application forms don't accept it yet. Use it where you know it's accepted, especially on websites, where smaller images make pages load faster.

HEIC and AVIF

  • HEIC is how iPhones save photos. It is small and good, but many websites, forms and Windows apps can't open it. Convert it to JPG before you upload.
  • AVIF makes very small files on modern websites, but not every app or form accepts it yet.

Lossy and lossless, in one line

Lossy formats (JPG, and WebP as ChobiKit saves it) trade invisible detail for a small file; lossless formats (PNG) keep everything and pay for it in size. For a photo, lossy is almost always right. For text, lines and signatures, lossless is.

Converting between formats

The image converter opens JPG, PNG, WebP, HEIC and AVIF and saves as JPG, PNG or WebP, in your browser. There are pages for the common jobs: PNG to JPG, JPG to PNG, JPG to WebP, WebP to JPG and AVIF to JPG.

Converting also writes a fresh file from the pixels alone, so hidden details such as where a photo was taken don't go with it.

Tools