JPG vs PNG: which one should you use?
Updated November 12, 2026
JPG is the right choice for photos, and PNG for screenshots, logos, text and anything with a transparent background. JPG throws away some detail to keep photos small, while PNG keeps every pixel. That makes PNG sharper for graphics, but a poor trade for photos, where it mostly adds file size.
In short
- Save photos as JPG: the files are much smaller, and the lost detail is hard to see.
- Save screenshots, logos, charts and anything with text as PNG, so letters and edges stay sharp.
- Of the two, only PNG can keep a transparent background.
- Turning a JPG into a PNG does not bring back lost detail, but it stops further loss while you edit.
- For web pages, WebP and AVIF generally compress better than both.
Try it right here
The difference between JPG and PNG
Both formats store a picture as a grid of colored pixels. They differ in how they pack those pixels into a file. JPG uses lossy compression: it discards some image data to get a much smaller file. PNG uses lossless compression: the file reproduces the original exactly.
The data JPG throws away cannot be restored later. Wikipedia says JPEG typically achieves 10:1 compression, meaning the image data takes a tenth of the space, with a loss in quality that is perceptible but widely agreed to be acceptable.
The second big difference is transparency. PNG fully supports an alpha channel, the extra layer of information that marks pixels as see-through or partly see-through. JPEG has no alpha channel, so every JPG is a solid rectangle, even when the picture looks like a cut-out shape.
Files in the JPEG format end in .jpg or .jpeg, and both endings mean the same format. There is a separate explanation of why JPG has two spellings.
Is PNG better than JPG?
PNG is better for some images and worse for others. Because PNG keeps every pixel, it is easy to call it the higher-quality format. That holds for sharp graphics, but for photos it misses the point.
Photos and other images with smooth color changes usually tolerate lossy compression, because the detail JPG removes is hard to see. Saving a photo as PNG instead of a high-quality JPG gives a much bigger file with a negligible gain in quality.
Text, line drawings, icons and charts are the opposite case. They have hard edges between very different colors, and JPG compression leaves visible artifacts there: blur and colored fringes around letters and lines. For these images PNG is sharper. Because they also have large areas of solid color, PNG can compress them more than JPEG can, so a screenshot of a spreadsheet can be both sharper and smaller as PNG.
PNG can also hold finer shades of color. JPG stores 8 bits for each of red, green and blue. PNG can do the same or store 16 bits per channel, which means much smaller steps between neighboring shades.
Which format to pick for each kind of image
A short rule covers most cases. If the picture came from a camera, keep it as JPG. If it came from a screen or a drawing program, save it as PNG. MDN Web Docs, a reference for web developers, calls JPEG particularly useful for photographs and warns that lossy compression of diagrams or charts can give unsatisfactory results.
JPEG is the most common format saved by digital cameras, so photos from a camera often arrive as JPG already. An iPhone saves all new photos as JPEG once its camera is set to the more compatible format. If your iPhone photos end in .heic instead, what a HEIC file is explains the setting.
Images that mix both worlds, such as a photo with a caption printed on it, sit in between. Try JPG first and look closely at the text. If the letters look blurred or fringed, switch to PNG. The table below covers the common cases.
| Image | Better format | Why |
|---|---|---|
| Photo from a camera or phone | JPG | Much smaller file, loss hard to see |
| Screenshot with text | PNG | Text stays sharp, no blur or fringes |
| Logo or icon | PNG | Sharp edges, transparency possible |
| Chart or diagram | PNG | Can be smaller and sharper than JPG |
| Image you will edit and save again | PNG | No loss each time you save |
| Image with a see-through background | PNG | JPG has no transparency |
| Image for professional print | Ask the printer | PNG has no CMYK, JPEG can store it |
Screenshots and print jobs
On a Mac, screenshots are saved as .png files, and that is the right default. A screenshot is mostly text and interface edges, exactly the content where lossy compression adds blur and colored fringes. Keep screenshots as PNG unless one shows mostly a photo, or an upload form wants a smaller file. Then convert it to JPG and check that the text is still easy to read.
Printing is where PNG has a real gap. Its designers built it for transferring images on the internet, not for professional print graphics, so PNG does not support CMYK. CMYK describes color as the cyan, magenta, yellow and black inks a printing press uses. The JPEG standard has a separate part for printing systems that allows CMYK encoding.
Print services differ, so ask which format and color model the printer expects before you send files. If the answer is CMYK, PNG is ruled out.
What converting between the two formats changes
Converting a JPG to PNG does not make it better. The detail that JPG compression discarded is gone, so the new PNG simply stores the JPG's pixels, flaws and all. What a PNG gives you is a stable working copy. Some JPEG quality is lost each time an image is compressed again, especially after cropping. Edit in a lossless format and export a JPG only when you share the result.
Going from PNG to JPG shrinks the file but costs some detail, and transparency cannot survive. A converter has to fill see-through areas with a color.
If you already use an image editor, its save or export option can write the other format. On this site you can convert a PNG to JPG in your browser or change a JPG into a PNG. The converter paints transparent areas white when it writes a JPG, since they would otherwise turn black. Its JPG quality slider starts at 92%, and it disappears for PNG, which is lossless. The page may only connect to its own site, so your images are not sent to another server.
Is JPEG outdated?
JPEG is old, but far from retired. The JPEG committee says the standard was created in 1992. PNG was first released in October 1996.
On websites, both formats have competition. For raster images on the web, MDN prefers WebP or AVIF, which generally compress better than PNG, JPEG and GIF. On a site you run yourself, a WebP or AVIF version is worth trying first. If you meet a WebP file and cannot open it, what WebP is and how to open it covers that.
Outside web pages, JPG still dominates. Digital cameras save JPEG more than any other format, and the JPEG committee calls it still the most dominant still image format around. PNG keeps its role as the fallback for any image that needs transparency.
For files you send or archive, JPG for photos and PNG for graphics remain the sensible pair. For the wider picture, see how JPG, PNG, WebP, AVIF and HEIC compare.
Questions? Answers.
Is a screenshot a PNG or JPEG?
On a Mac, a screenshot is saved as a PNG file. That suits the content, because screenshots are mostly text and sharp interface edges, which lossy JPG compression blurs and fringes. If a screenshot shows mostly a photo, or a form asks for a smaller file, converting it to JPG is fine as long as the text stays readable.
Which is better for printing, JPG or PNG?
JPG, if the print service wants CMYK files, because PNG cannot store them. PNG was designed for the internet and does not support CMYK, the color model of professional printing. The JPEG standard includes a part for printing systems that allows CMYK. For any other print job, ask the service which format it prefers before you send anything.
What are the disadvantages of a PNG?
A photo saved as PNG is much bigger than a high-quality JPG, with almost no visible gain. PNG also lacks CMYK support for professional printing, and on web pages WebP or AVIF generally compress better. Its strengths, lossless storage and transparency, pay off mainly for graphics, screenshots and images you keep editing.
Should I save a logo as PNG or JPG?
Save a logo as PNG. Logos have sharp edges and flat colors, where JPG compression leaves visible artifacts, and PNG can store that kind of image in a smaller file than JPEG. PNG also keeps a transparent background, so the logo sits cleanly on any color. A JPG version always comes with a solid rectangle behind it.
Can a JPG have a transparent background?
No. JPEG has no alpha channel, the part of an image file that stores transparency, so a JPG always has a solid background. When a transparent PNG becomes a JPG, the see-through areas must be filled with a color, and the converter on this site uses white. Keep the PNG whenever you need transparency.
Sources
The facts in this guide are checked against these sources.
- Image file type and format guide (MDN Web Docs)
- JPEG (Wikipedia)
- PNG (Wikipedia)
- Overview of JPEG 1 (JPEG committee)
- Take screenshots or screen recordings on Mac (Apple)
- Using HEIF or HEVC media on Apple devices (Apple)