JPG vs PNG
JPG and PNG solve different problems. JPG is designed for photographs and discards detail the eye barely notices. PNG keeps every pixel and handles transparency. Choosing the wrong one costs either quality or file size.
How each works
JPG uses lossy compression: it transforms blocks of pixels and throws away detail that is hard to see. Saving repeatedly degrades the image further.
PNG uses lossless compression: the exact pixels are preserved, at the cost of a larger file for photographic content.
Convert between JPG and PNG in the browser.
Open the JPG to PNG →The practical table
| Content | Best format | Why |
|---|---|---|
| Photograph | JPG or WebP | Small files, no visible loss |
| Screenshot with text | PNG | Sharp edges stay sharp |
| Logo with transparency | PNG or WebP | Transparency preserved |
| Simple graphic | PNG or SVG | Few colours compress well |
| Photo needing transparency | WebP | JPG cannot do it |
The rule of thumb: if it came from a camera, use JPG. If it was made on a screen, use PNG.
File size comparison
A 1,600-pixel photograph might be 300 KB as JPG and 2.5 MB as PNG. A screenshot of text might be 80 KB as PNG and 180 KB as JPG, with visible fuzz around the letters.
The direction of the difference flips depending on content, which is why neither format is universally smaller.
Transparency
PNG supports partial transparency, which is why logos and interface elements are usually PNG. JPG has no alpha channel at all: transparent areas become a solid colour.
If you convert a transparent PNG to JPG, check the background colour before publishing. A white logo on a white page becomes invisible.
Repeated saving
Every time a JPG is opened and saved, it is recompressed. After several rounds the artefacts accumulate, especially around text and hard edges.
Edit in a lossless format and export to JPG once, at the end.
When to use WebP instead
WebP usually beats both for size at comparable quality and supports transparency. Current browsers all support it.
The remaining reasons to choose JPG or PNG are compatibility with older software and workflows that require a specific format.
Printing
For print, use a high-quality JPG or a lossless format, and keep the resolution high. PNG is rarely the right export for a photograph going to a printer, because of the file size.
Common mistakes
- Saving screenshots as JPG.
- Converting a transparent logo to JPG.
- Re-saving a JPG many times while editing.
- Using PNG for large photographs and then wondering why the page is slow.
- Assuming one format is always smaller.
A quick decision
Photograph going on a website: JPG at quality 82, or WebP. Screenshot or logo: PNG. Photo with transparency: WebP or PNG. Anything to be edited repeatedly: keep a lossless master.
When the format decision is out of your hands
Sometimes a platform decides for you. Some upload forms recompress every image to JPG regardless of what you send, which quietly destroys the sharp edges of a screenshot. Others preserve PNG and serve it untouched.
If image quality matters on a specific site, upload the same file in both formats and compare what is served back. That check takes two minutes and tells you more than any general advice.
For print work, the printer will usually specify a format and a resolution. Follow their requirement rather than converting afterwards, because a second conversion always costs something.
A note on file extensions
Renaming a file from .png to .jpg does not convert it. The extension is a label, and some software will refuse to open a file whose contents do not match its name.
Use a converter rather than the rename. It is the same effort and the result is a real JPG.
Quick decision guide
Photographs and images with smooth gradients belong in JPG. Logos, screenshots, text and anything needing transparency belong in PNG.
If you are unsure, save both and compare file sizes and appearance at full zoom. The better choice is usually visible within seconds.
Also think about where the file will end up. An image that will be edited again later should stay PNG, while a final photo for sharing is fine as JPG.
Frequently asked questions
Is PNG higher quality than JPG?
It is lossless, so it preserves the original pixels. For photographs it is usually much larger for no visible gain.
Can JPG have a transparent background?
No.
Which is better for a logo?
PNG or SVG, because of sharp edges and transparency.