PNG vs JPG: we saved the same images both ways and measured the size and the quality

The converter opens on JPEG: drop a PNG photo in to make it smaller, or switch to PNG to keep transparency. Below, what the two formats did to five real images. Nothing is uploaded.

Convert to

Everything runs in your browser. Your images are never sent to a server.

PNG and JPG (JPEG) are both everywhere, but they are good at different pictures. In one line: PNG keeps every pixel exactly and can be transparent; JPEG changes colours slightly in exchange for making photos far smaller. Rather than repeat the usual rules of thumb, we saved two photos, a transparent logo, a text-heavy screenshot and a chart both ways, the same way the converter above does it, and measured the file size and how far the colours moved.

The difference: whether colours change, and whether it can be transparent

PNG is lossless. Saving it changes no pixel, and saving it again and again gives the same picture every time. It can also store transparent and semi-transparent areas, which is why logos and illustrations meant to sit on other backgrounds are PNGs.

JPEG is lossy. It drops fine colour detail the eye does not easily notice, which lets it make photos, where colours shift gradually, much smaller. The cost is that the saved colours are slightly off from the original. How far off depends on the quality you save at: lower quality, smaller file, bigger error. JPEG cannot store transparency at all.

.jpg and .jpeg are the same format. The three-letter spelling dates from systems that allowed only three letters after the dot, and it stuck. The converter on this site names its JPEG files .jpg. Renaming a file's extension does not change what is inside it.

Measured: the same images as PNG and as JPEG

How we measured. As the image converter does, each image was drawn in Chrome (Chromium) and saved as PNG and as JPEG at quality 90, the converter's starting value, and the files were weighed. For the colour error, each saved file was read back and compared with the original pixel by pixel: the difference in red, green and blue on the 0–255 scale, averaged and at its largest. The five images: two photos (both stored as JPEGs to begin with), a logo with a transparent background, a text-heavy page captured in a browser 1170 px wide, and a bar chart. Measured on 29 October 2026; 1 KB here is 1,024 bytes.

ImagePNGJPEG (quality 90)JPEG ÷ PNGJPEG colour error (mean / max)
Photo A (1024 × 684 px)1.39 MB197 KB13.8%0.24 / 14
Photo B (1200 × 630 px)1.05 MB152 KB14.1%0.85 / 19
Transparent logo (500 × 500 px)86 KB13 KB (transparency filled white)15.4%0.25 / 51
Text-heavy screenshot (1170 × 2532 px)715 KB602 KB84.3%2.33 / 121
Bar chart (1200 × 800 px)30 KB30 KB97.1%0.45 / 107

Photos came out far smaller as JPEG. The 1024 × 684 photo was 1.39 MB as PNG and 197 KB as JPEG, so the JPEG was 13.8% of the PNG; the second photo, 14.1%. The colour error averaged 0.24 and 0.85, and was 14 and 19 at worst, too small to pick out by eye. Saving a photo as PNG gets you about seven times the file for a picture that looks the same.

The screenshot and the chart went the other way. The text-heavy screenshot only came down to 84.3% of the PNG as JPEG (715 KB to 602 KB), and the chart to 97.1%, barely smaller at all. Meanwhile the worst colour error was 121 on the screenshot and 107 on the chart, several times the photos'. JPEG struggles with hard edges and leaves a haze of noise around letters and lines. Little saving, dirtier edges: text, diagrams and charts belong in PNG.

A PNG's size also depends on the program that wrote it. The browser's own capture of the same text page was a 457 KB PNG, and the chart 11 KB, both smaller than our re-saved PNGs (715 KB and 30 KB). PNG lets a program choose how hard to compress without changing a single colour, and programs choose differently.

Which to use: JPEG for photos; PNG for text, graphics, logos and transparency

Photos from a camera or phone: JPEG. At quality 90 our photos came to about a seventh of the PNG, with errors you cannot see. To go smaller, lower the quality: at quality 75 the 1024 × 684 photo came down to 115 KB, and the colour error rose to 3.04 on average and 53 at worst.

Text, lines, diagrams and charts: PNG. In our measurements JPEG saved little on them and put noise around the edges. A screenshot that is mostly a photo is the exception and can shrink a lot as JPEG or WebP; we measured real screenshots in why screenshots are so big.

Logos and illustrations with a transparent background: PNG. JPEG cannot hold transparency: in our 500 × 500 logo, all 189,473 transparent pixels (75.8% of the picture) were filled with white. When the converter above writes a JPEG, it fills transparent areas with the colour chosen in Fill transparent areas with, white to begin with. If a background you made transparent has already come out white, this guide shows how to check the file.

If in doubt: photo, JPEG; anything else, PNG. For pictures on the web that should be lighter still, WebP is a third option, and it can be transparent too. The converter above writes PNG, JPEG, WebP and ICO. If the site, app or form you are sending to names a format, use that one.

Converting JPEG to PNG does not bring the quality back

Turning a JPEG into a PNG does not undo what JPEG changed. Our photo, saved as JPEG at quality 90 and then converted to PNG, grew from 197 KB to 1.39 MB, but its colour error against the original stayed at 0.24, exactly the JPEG's. The text screenshot's 602 KB JPEG became a 2.70 MB PNG with all its noise still in place. Converting to PNG makes sense when the file is going to be edited and saved many more times; as a way to improve quality it does nothing.

That is also the reason to keep originals. Every time a JPEG is saved again its colours drift a little further, so for a picture you will crop, rotate and save repeatedly, keep the original, or work in PNG until the last step. How much each save changes, over 20 saves in a row, is measured in does a JPEG lose quality every time you save it?

For printing, the pixel count matters more than the format: our photos at JPEG quality 90 were less than 1 off on average from the PNG. How print size and pixels relate is worked through in image size vs file size vs DPI. If the printer names a format, use that one.

Frequently asked questions

Which has better quality, PNG or JPG?

PNG, in the sense that it keeps every pixel exactly as it was. For a photo you will rarely see the difference: saved as JPEG at quality 90 the way our converter does it, our 1024 × 684 photo was off by 0.24 on average on the 0–255 colour scale. Text and lines are another matter. JPEG leaves a haze of noise around sharp edges (up to 121 off on our text-heavy screenshot), so text, diagrams and charts look better as PNG.

Which is smaller, PNG or JPG?

For photos, JPG by a long way: our two photos as JPEG came to 13.8% and 14.1% of the PNG. For a text-heavy screenshot the JPEG was still 84.3% of the PNG, and for a chart 97.1%, so JPEG saves little there. A PNG's size also depends on the program that wrote it.

What is the difference between JPG and JPEG?

None. They are the same format with two spellings of the extension; .jpg comes from older systems that allowed only three letters after the dot. The converter on this site names its JPEG files .jpg. Renaming a file's extension does not change what format is inside it.

Can a JPG have a transparent background?

No. JPEG cannot record transparency, so transparent areas are filled with a colour when it is written. In our transparent logo, all 189,473 transparent pixels (75.8% of the picture) became white. In the converter above, the colour is set with Fill transparent areas with, white to begin with. Save as PNG or WebP to keep transparency.

Does converting a JPG to PNG improve the quality?

No. The colours JPEG changed stay changed. Converted from its quality-90 JPEG back into PNG, our photo grew from 197 KB to 1.39 MB, and its difference from the original stayed exactly what the JPEG's had been.

PNG or JPG for printing?

The pixel count matters more than the format. For a photo, JPEG at quality 90 was less than 1 off on average from the PNG in our measurements. For artwork that is mostly text or lines, PNG avoids the noise around edges. If the printer or the form you are submitting to asks for a particular format, use that.

Are my images uploaded when I convert them?

No. The converter above works inside your browser, on your own device; neither the original nor the converted image is sent to a server. There is no account to create.

To change a file between PNG, JPEG, WebP and ICO, use theimage converter; to make a file smaller, theimage compressor. Both run in the browser.

All image troubleshooting guides