JPG or PNG: which one to use
Both formats open everywhere, so the choice is about what the picture is. Here is the rule, and what we measured when the same photos went both ways.
Reviewed by Victor Yuki Matusita on . First published . First version, with the measurements of November 2, 2026.
The short answer: photos go in JPG, and graphics go in PNG. Screenshots, logos, charts, text and anything with a transparent background are graphics. A photo from a camera or a phone is a photo, even if it shows a document.
The longer answer is about what each format keeps. One stays small by throwing away detail you will hardly notice; the other keeps every pixel exactly and pays for it in size. Which trade is right depends on the picture, and on what happens to it next.
Switch between PNG and JPG here
Drop a PNG and it becomes a JPG; drop a JPG and it becomes a PNG. Each file is converted in this browser tab, so nothing is uploaded, and a batch comes back as one ZIP.
Drop images here
or paste with Ctrl V · PNG or JPGPNG or JPG, as many as you like
A PNG becomes a JPG, with transparency turned white. A JPG becomes a PNG, without loss.
How each format stores a picture
PNG is lossless. Its specification, published by the W3C, says the compression should preserve all information, and it supports an optional alpha channel, which is how transparency is stored. A PNG opened and saved again is the same picture, pixel for pixel.
JPG is lossy. The JPEG committee describes it as a DCT based lossy image format: it splits the picture into small blocks and keeps the broad shapes and colors of each one, dropping fine detail the eye notices least. That is why a photo is so much smaller as a JPG, and why sharp edges and flat colors can show small smudges around them.
A photo saved as PNG is bigger, not better
We took our three real phone photos, which came out of the cameras as JPGs, and saved them as PNG with the tool above. Together the JPGs weighed 9.3 MB. As PNG they weighed 48.7 MB in Chromium, 5.2 times as much.
The PNGs did not look any better. Each one held the same pixels as the JPG it came from, exactly: we compared them pixel by pixel, and three of them were identical. A PNG cannot bring back the detail the camera already dropped when it wrote the JPG. It only stores what is left without losing more.
Browsers write PNG differently
The same photos saved as PNG in WebKit weighed 37.6 MB, 4.0 times the JPGs, against 5.2 times in Chromium. Both PNGs hold exactly the same pixels. The difference is only in how hard each browser works to pack them, which shows that two PNGs of one picture can differ a lot in size and still be the same image.
Back to JPG: close, but not the same
We then saved those PNGs back as JPG. The new JPGs weighed 7.4 MB, less than the camera originals, because the tool saves at a high quality but not as high as the cameras did.
They are not the original files, and not quite the original pictures. Measured against the original pixels, the round trip scored between 42.2 dB and 44.3 dB of PSNR, a measure of how close two images are. At that level the differences are very hard to see, but each lossy save adds a little more. Keep your originals, and convert from them.
Transparency decides it
JPG has no transparency. Our test PNG has transparent corners, four of them, and in the JPG all four turned white, as the tool tells you next to the file. The file went from 1.1 MB to 121 KB.
That is fine for a picture that sits on a white page, and wrong for a logo that has to sit on a colored background or on top of a photo. If an image has transparency you want to keep, keep it as PNG.
A rule you can keep
Use JPG for photos you share, email or upload, especially when size matters. Use PNG for screenshots, text, logos, icons and anything with transparency, and for a picture you will edit again and again, since every JPG save loses a little.
When a site will not take your PNG, or a PNG photo is too big to send, convert it to JPG. When you need a graphic to stay sharp, do not convert it to JPG at all.
And WebP?
WebP can do both jobs. Google describes it as a format with lossy compression, like JPG, and lossless compression with transparency, like PNG. Websites use it because it is small. It opens in browsers, but some apps and upload forms still refuse it; our guide on WebP covers where it opens and how to save it as a JPG.
What we measured
Our three real phone photos, from the camera JPG to PNG with the tool above, and back to JPG. The last column compares the final JPG with the original pixels.
| Photo | JPG | PNG in Chromium | PNG in WebKit | Back to JPG | Against the original |
|---|---|---|---|---|---|
| Google Pixel 2, portrait | 4.4 MB | 22.0 MB | 16.6 MB | 3.6 MB | 43.2 dB |
| iPhone 6, landscape | 2.6 MB | 14.1 MB | 11.0 MB | 2.1 MB | 42.2 dB |
| iPhone 5, landscape, stored upside down | 2.4 MB | 12.7 MB | 10.0 MB | 1.8 MB | 44.3 dB |
Measured on November 2, 2026 through the PNG to JPG page of this site in Chromium 156 and in WebKit 27.2 on Windows. Pixels were compared in Node, with the same decoder for the original and the copy. The back to JPG sizes were the same in both browsers.
Sources
- W3C: Portable Network Graphics (PNG) Specification. Read on .
- Google for Developers: An image format for the Web. Read on .
- JPEG committee: JPEG 1. Read on .
Related tools and guides
Compress image
Make a JPG, PNG or WebP lighter, right in your browser.
WebP to JPG
Turn WebP images into JPG or PNG.
Resize image
Change the size of an image by pixels or by percentage.
How to open WebP images and save them as JPG
What a WebP is, where it opens, and what changes when it becomes a JPG.
Social media image sizes
The sizes each network publishes, and what a photo looks like when it is resized to them.