Guide

JPG vs PNG (and WebP, AVIF, GIF, SVG): which image format to use

Every common image format compared in plain language: quality, file size, transparency and where each one works, plus a one-line rule for photos, screenshots, logos, websites and print.

The short rule: use JPG for photos, PNG for screenshots, text and anything that needs a transparent background, SVG for logos and icons, and WebP or AVIF for images on websites. JPG makes small files by discarding detail you mostly can't see; PNG keeps every pixel, so it's bigger but perfectly sharp.

The formats side by side

FormatCompressionTransparencyBest forWorks in
JPG / JPEGLossyNoPhotos, email, social media, printingEverything
PNGLosslessYesScreenshots, text, logos, graphics, cut-outsEverything
WebPLossy or losslessYesWebsite imagesAll current browsers; many but not all apps
AVIFLossy or losslessYesWebsite images (smallest files)Current Chrome, Edge, Firefox and Safari; few other apps
GIFLossless, 256 coloursOn/off onlyShort simple animationsEverything
SVGVector (not pixels)YesLogos, icons, diagrams at any sizeBrowsers, design apps
HEICLossyYesiPhone camera photosApple devices; limited elsewhere

JPG vs PNG

JPG (also written JPEG) is built for photographs. It splits the image into small blocks and stores a simplified version of each, which is why photos shrink to a fraction of their size. Push the quality too low and you see the cost: blurry edges, blocky skies and smudged text. Editing and re-saving a JPG again and again wears it down (see our re-save test).

PNG stores every pixel exactly, like a ZIP file for images. Screenshots, charts and text stay razor sharp, and PNG can be partly transparent, which JPG can't. The price is size: in our test the same iPhone photo was 13.8 MB as PNG and 2.5 MB as an 85% JPG.

You haveUseWhy
A photo from a camera or phoneJPGMuch smaller, and the difference isn't visible
A screenshot, chart or scanned textPNGText and lines stay crisp
A logo or cut-out on a transparent backgroundPNG (or SVG)JPG can't be transparent
A photo for a websiteWebP or AVIFSmaller than JPG at the same quality
An image for printJPG at high quality, or PNGAccepted everywhere, full resolution
An image for an AI assistantPNG for screenshots, JPG for photosEvery assistant reads both

Converting doesn't add quality back: a JPG saved as PNG keeps its JPG blur, it just stops losing more. Convert with PNG to JPG or JPG to PNG.

WebP and AVIF: the formats for websites

WebP (from Google) and AVIF (from the Alliance for Open Media) do the jobs of both JPG and PNG in smaller files: lossy for photos, lossless for graphics, and transparency for both. In our tests WebP photos were 30–47% smaller than JPG at the same quality setting, and AVIF is usually smaller still. Faster pages help visitors and search rankings, which is why most image CDNs now serve these formats automatically.

The catch is outside the browser. Some photo editors, office apps, printers and upload forms still don't accept WebP or AVIF. If someone can't open an image you sent, convert it: WebP to JPG, WebP to PNG or AVIF to JPG. To make your own site lighter, go the other way with JPG to WebP or PNG to WebP.

GIF, SVG and HEIC

What we measured

We converted real files in Chrome with the image converter (November 2026): two iPhone photos (CC0, from Wikimedia Commons), a screenshot of a web page, and a logo with a transparent background.

FilePNGJPG (85%)WebP (85%)
iPhone photo, 4032 × 302413.8 MB2.5 MB1.9 MB
Web page screenshot, 1440 × 900333.8 KB123.8 KB64.7 KB
Logo with transparency, 512 × 51225.4 KB15.0 KB, background turned white9.2 KB, transparency kept

Re-saving a JPG. We also saved two photos as JPG 20 times in a row with libjpeg, the JPEG library most apps use, and compared each copy with the original. Without edits, almost all of the loss happened on the first save: the river photo scored 36.3 dB against the original after one save and 36.25 dB after twenty (PSNR, a standard measure where higher means closer to the original), and the file size didn't change at all. With a tiny edit before each save, it dropped to 33.1 dB after ten rounds. The busy river scene held up better than a studio portrait, which slid from 39.9 to 37.0 dB over twenty plain re-saves.

The practical rule: re-saving a JPG once more won't ruin it, but don't use a JPG as your working copy. Edit from the original, or keep a PNG while you're still editing, and export a JPG at the end.

Make any image smaller

  1. Pick the right format from the table above. A screenshot saved as JPG, or a photo saved as PNG, is the most common cause of oversized images.
  2. Resize it to the size it will be shown at. A 4000-pixel-wide photo on a 1200-pixel-wide page is wasted weight: resize image.
  3. Compress it: in our test a 75% JPG looked the same as the original even zoomed to 100%, and was 55–60% smaller. Compress image does this in your browser.

All of these run in your browser with nothing uploaded. Or use the image converter for any format.

Frequently asked questions

Is JPG or PNG better quality?

PNG is lossless, so it keeps every pixel exactly. JPG throws away detail to make files smaller. For photos the difference is invisible at high JPG quality; for screenshots, text and logos PNG looks clearly sharper.

Which is smaller, JPG or PNG?

JPG, nearly always. In our tests an iPhone photo was 13.8 MB as PNG and 2.5 MB as JPG (5.4 times smaller), and even a web-page screenshot was 333.8 KB as PNG against 123.8 KB as JPG. PNG wins on sharpness for text and flat colours, not on size; for small screenshots, WebP beat both.

Is WebP better than JPG and PNG?

For websites, usually yes: in our tests WebP photos were 30–47% smaller than JPG at the same 75% quality, and WebP supports transparency like PNG. Some older apps and printers don't open WebP, so convert to JPG or PNG to share or print.

Is AVIF better than WebP?

AVIF usually compresses photos better than WebP, and every current major browser shows it. It's slower to create and less supported outside browsers, so it's mainly a format for websites.

Does saving a JPG again make it worse every time?

Less than people think. In our test, re-saving the same photo 20 times at 85% quality without changes left it almost exactly as it was after the first save, and the file size didn't change. The loss builds up when you edit between saves: 10 rounds of a small edit plus a save cost noticeably more. Keep an original and edit from it.

Is JPEG the same as JPG?

Yes. They're the same format; .jpg and .jpeg are just two spellings of the file extension.

What format should I use for printing?

A high-quality JPG or a PNG at full resolution (about 300 pixels per inch at the print size). Print shops also accept TIFF and PDF. Avoid WebP and AVIF for printing.

Got a file? Get a link.

Free, no sign-up, and gone in 4 hours.

Upload a file