Skip to content
YardMaths Image

PNG vs JPG vs WebP: which image format fits photos, logos, screenshots and web pages

Updated ยท 4 min read

Three formats cover almost every picture you will save or upload. Choose wrong and a logo gets smudgy edges, a photo turns into a giant file, or a form refuses what you send. The rule fits in one line; the rest of this page gives the reasons and the exceptions.

When you have picked, switch with Convert Image in your browser. The picture stays on your device.

The short answer

  • A photo for email, a form, a chat or social media: JPG.
  • A logo, a screenshot, text or anything with sharp edges: PNG.
  • Anything with see-through areas: PNG, or WebP if the place you use it accepts that.
  • A website you control, where small files matter: WebP, with a JPG or PNG fallback.
  • A logo or icon that exists as a vector drawing: SVG, which scales to any size.

MDN gives the reason for the split: use lossless formats for screenshots, diagrams, logos and line art, because blur and colored fringes around text are very visible there, and lossy is fine for photographs.

The three at a glance

FormatCompressionTransparencyBest forWeak spot
JPGLossyNonePhotosSharp edges and text can look smeared.
PNGLosslessFullLogos, screenshots, transparencyPhotos can become large files.
WebPLossy or losslessYesWeb images, photos and graphicsSome apps and forms still reject it.

File size: what Google measured

Google says lossy WebP files are 25 to 34 percent smaller than comparable JPEGs at the same SSIM quality score, and lossless WebP files are 26 percent smaller than PNGs. It adds that lossless WebP needs 22 percent more bytes to carry transparency, and that lossy WebP with transparency is typically three times smaller than PNG.

These are Google's own comparisons. Your pictures will land somewhere around them, not exactly on them. MDN quotes a similar range for lossy WebP against JPEG: about 25 to 35 percent.

Where each format lets you down

  • JPG: every save of a lossy file compresses it again, so edit from the original and export once. It has no transparency at all.
  • PNG: it keeps every pixel, which is why photos in PNG get large. Converting a JPG to PNG does not bring back detail the JPG already lost; the PNG just stores the damaged picture exactly.
  • WebP: Google lists support in Chrome, Edge 18 and later, Firefox 65 and later, and Safari 14 and later, but MDN still advises a JPEG or PNG fallback for sites. Some desktop software and upload forms do not accept it.
  • Search: Google Search accepts BMP, GIF, JPEG, PNG, WebP, SVG and AVIF in image tags, so WebP is not a ranking handicap.

Switch formats in your browser

  1. Open Convert Image and choose your picture, or drop it on the box.
  2. Choose the target: JPG for photos, PNG for graphics and transparency, WebP for websites.
  3. For JPG or WebP, adjust the quality and compare the result size with the original.
  4. Download the converted file. The original is not changed.
  5. Still too big? Resize it first: fewer pixels usually means a smaller file.

Need a logo that is on a white background to become see-through? That is a different job: Make Image Transparent removes a color; changing format alone will not.

What about AVIF, GIF and SVG?

  • AVIF: MDN says lossy AVIF is around 50 percent smaller than JPEG, with transparency and animation, but support is less complete, so offer a fallback.
  • GIF: limited to 256 colors and on-off transparency. MDN suggests PNG for stills and WebP, AVIF or APNG for animation.
  • SVG: a vector format, ideal for icons and diagrams that must stay sharp at any size, and not suited to photographs.

Questions people also ask

Is WebP better than PNG?

For file size, usually: Google measures lossless WebP at 26 percent smaller than PNG. For compatibility, PNG still wins, since more apps, forms and older programs open it. Both keep transparency.

Should I use PNG or JPG for a logo?

PNG, or SVG if you have the vector file. A logo has sharp edges and flat colors, which JPG tends to smear, and PNG keeps a transparent background when you need one.

Which image format is best for a photo I email or upload to a form?

JPG. It is made for photographs and opens almost everywhere. If a form limits file size, resize the photo first, then lower the JPG quality a little.

Does converting a JPG to PNG improve the quality?

No. PNG stores exactly what it is given, including the compression damage already in the JPG, so the file gets bigger and the picture does not get better.

Is WebP supported everywhere now?

In current browsers, largely yes: Google lists Chrome, Edge 18 and later, Firefox 65 and later and Safari 14 and later. Some desktop software and upload forms still reject it, so check where the file is going.

Sources

Updated . Written for YardMaths Image: free picture tools that run in your browser.