JPG vs PNG: which should you use?
JPG vs PNG at a glance
| JPG | PNG | |
|---|---|---|
| Full name | Joint Photographic Experts Group (JPEG) | Portable Network Graphics |
| File extension | .jpg, .jpeg | .png |
| Introduced | 1992 | 1996 |
| Created by | Joint Photographic Experts Group | PNG Development Group (W3C recommendation) |
| Compression | Lossy | Lossless |
| Transparency | No | Yes (full alpha) |
| Animation | No | Only as APNG |
| Support | Every browser, app and device | Every browser, app and device |
When to use JPG
JPG (or JPEG) is the most widely used image format for photographs. It shrinks files by discarding detail the eye is unlikely to notice, which makes it ideal for photos but poor for sharp text and logos.
- Photos for the web and email
- Uploading to forms and portals
- Maximum compatibility
When to use PNG
PNG is a lossless image format that keeps every pixel exactly and supports full transparency. It is the standard for logos, icons, screenshots and graphics with sharp edges.
- Logos, icons and UI graphics
- Screenshots and text
- Images with transparent backgrounds