Photographic visual for Png Vs Jpg

Png Vs Jpg

PNG vs JPG, measured

Two formats built for opposite pictures. Rather than repeat the usual rule of thumb, here are four drawn pictures written both ways, with the bytes.

The measurement

Four pictures were drawn for this note, each 1,200 × 800 pixels: a two-colour logo with a transparent surround, an interface screenshot of a table, a three-line chart, and a smooth gradient with fine grain standing in for a photograph. Each was saved as PNG with a standard zlib encoder at its highest setting, and written as JPEG by this site's precision encoder, which gives the same bytes in every browser. Similarity is this site's luma SSIM over the parts of each picture with detail in them (1.000 is identical).

PicturePNGJPG q86, 4:2:0JPG q86, 4:4:4JPG q95, 4:4:4
Logo, transparent surround (on white)16.3 KB18.5 KB · 0.99227.3 KB · 0.99237.8 KB · 0.997
Interface screenshot (table of rows)33.4 KB59.5 KB · 0.99768.7 KB · 0.99790.1 KB · 0.999
Line chart, three series16.1 KB79.3 KB · 0.996107.7 KB · 0.997157.2 KB · 1.000
Photo-like gradient with grain761.3 KB55.0 KB · 0.99283.5 KB · 0.993199.5 KB · 0.996

Measured on 23 October 2026. 1 KB is 1,024 bytes.

What the table says

The rule that follows

If it came off a screen — a logo, a screenshot, a chart, a diagram — expect the PNG to be smaller and sharper, and convert only when something demands a JPG. If it came out of a camera, convert, and expect the file to shrink by an order of magnitude. The converter on this site measures your own file both ways before you save, so you do not have to guess which kind it is.

Questions

Is JPG or PNG better quality?
PNG keeps every pixel exactly; JPG never quite does. Whether the difference is visible depends on the picture: on a photograph at quality 86 it rarely is, on small coloured text it often is.
Which is smaller?
For photographs, JPG by a wide margin — fourteen times smaller in the table above. For logos, screenshots and charts, PNG is often smaller as well as exact.
Can a JPG be transparent?
No. JPEG has no alpha channel, so every transparent pixel becomes a colour when a PNG is converted. That colour is the one decision this site is built around.