If a website, form or app rejects your image, the format is often the reason. Here is what each of the three common formats is good at.
The short answer#
| JPG / JPEG | PNG | WebP | |
|---|---|---|---|
| Best for | Photos | Logos, screenshots, graphics with text | Websites that want small files |
| Compression | Lossy (smaller, loses some detail) | Lossless (exact, larger) | Both lossy and lossless |
| Transparent background | No | Yes | Yes |
| File size for photos | Small | Large | Smallest of the three |
| Support | Everywhere | Everywhere | All modern browsers; some older apps and forms reject it |
JPG: the everyday choice for photos#
JPG shrinks photographs well because it throws away detail your eye barely notices. The catch is that each time you re-save it, a little more detail is lost, and sharp edges and text can look fuzzy. Most exam forms and ID uploads ask for JPG for this reason.
PNG: when sharpness and transparency matter#
PNG keeps every pixel exactly, so it is ideal for logos, icons, charts and screenshots. It also supports a transparent background. For a normal photo it makes a very large file, so avoid it for pictures you need to keep small.
WebP: small files for the web#
WebP can produce files noticeably smaller than JPG or PNG at similar quality, which helps pages load faster. It is widely supported in modern browsers, but some older software, government portals and email tools do not accept it. If an upload fails, convert it.
Convert in your browser#
All of these run on your device, so the image is not sent anywhere:
- To JPG: PNG to JPG, WebP to JPG, BMP to JPG
- To PNG: JPG to PNG, WebP to PNG, SVG to PNG
- To WebP: JPG to WebP, PNG to WebP
Which one should I pick?#
- Uploading a photo to a form: JPG.
- Sending a logo or a screenshot: PNG.
- Publishing images on your own website: WebP, with a JPG fallback if you need to support old software.
- Not sure: check what the upload page says, and match it.
Format is not the same as size#
Changing the format does not guarantee a smaller file, and shrinking the pixel dimensions is a separate step from compression. If you also need to hit a size limit, read resize vs compress, then use the image compressor or the image resizer.