The right format depends on what is in the picture and where it is going. There are really only three questions: does it need transparency, is it a photograph or a graphic, and is a particular form or platform telling you what to use? Here is the short version, then the reasons.
| You have | For a website | For a form or email |
|---|---|---|
| A photo | WebP (or JPG) | JPG |
| A screenshot or diagram | PNG or lossless WebP | PNG |
| A logo with transparency | SVG, else PNG or WebP | PNG |
| A scanned document | JPG | PDF or JPG, as the form asks |
JPG (JPEG)
The universal photo format. The JPEG standard dates from 1992 and its own committee still calls it the most dominant still image format around. It is lossy: it discards detail the eye barely notices, so photos become much smaller. Every device, app and upload form understands it. It has no transparency, and it smears sharp edges such as text, so it is a poor choice for screenshots. Each re-save loses a little more, so always edit from the original. If you want to know why, our guide on how image compression works explains the 8 × 8 block processing behind that blocky look.
PNG
Lossless: the W3C specification’s own design goal is that filtering and compression should preserve all information. That makes PNG ideal for screenshots, interface graphics, diagrams and anything with text, and it supports transparency. The cost is size: a photograph saved as PNG is typically several times larger than the same photograph as JPG, because noise and texture leave nothing for the lossless compressor to exploit. Reducing the palette (the number of colours) makes PNGs dramatically smaller with little visible change; that is what the PNG size pages do.
WebP
A newer format from Google that can work like JPG (lossy) or like PNG (lossless), with transparency in both modes. Google reports that lossy WebP images are 25–34% smaller than comparable JPEGs at equivalent quality and lossless WebP images are 26% smaller than PNGs, which is why it is the best default for websites. It even supports a mix that PNG cannot offer: lossy colour with a lossless transparency channel, which suits photographic cut-outs. All current major browsers display it. The catch is outside the browser: some upload forms, older desktop software and print services still refuse WebP. If a form rejects your WebP, convert it to JPG.
Side by side
| JPG | PNG | WebP | |
|---|---|---|---|
| Compression | Lossy | Lossless | Lossy or lossless |
| Transparency | No | Yes | Yes, in both modes |
| Animation | No | APNG variant | Yes |
| Photos | Small | Large | Smallest |
| Screenshots and text | Fuzzy edges | Crisp | Crisp (lossless mode) |
| Accepted by forms | Almost always | Usually | Often not |
What about HEIC, AVIF and SVG?
HEIC is the iPhone’s default. Apple says it keeps the same visual quality as JPEG in less space, but it opens in Safari and not in Chrome, Edge or Firefox, so many websites and Windows apps cannot use it. Our HEIC vs JPG guide covers how to convert. AVIF is a newer format that compresses even better than WebP and is accepted by Google Search, but encoding is slower and support outside browsers is patchy. SVG is not a pixel format at all: it describes shapes, so a logo stays sharp at any size and is often tiny. If you have your logo as SVG, use it.
Which format for which situation
- Uploading to a government or job portal: use exactly what the form names, usually JPG. Check the size limit too; the exact-size compressor gets you under it.
- Sending photos by email or chat: JPG. Everyone can open it.
- Publishing on a website: WebP with a JPG fallback, as shown in our web image guide.
- Printing: JPG at high quality or PNG, at the pixel size the printer asks for. Check with the print service; some do not accept WebP.
- Sharing a screenshot with text: PNG, so the writing stays readable.
Four mistakes to avoid
- Converting a JPG to PNG to “improve quality”. It cannot restore detail that is already gone. You get a bigger file that looks identical.
- Saving a logo as JPG. Edges turn fuzzy and the white box shows on coloured backgrounds. Use PNG or SVG.
- Just changing the file extension. The file contents do not change, and some programs will refuse it. Convert properly.
- Re-saving the same JPG several times. Each save is another round of lossy compression. Edit from the original and export once.
The one-minute decision
- Does it need transparency? PNG or WebP.
- Is it a photo? WebP for the web, JPG for everything else.
- Is it text, UI or a diagram? PNG.
- Is it a logo? SVG if you have it.
- Is a form asking? Use exactly what the form names.
Sources
Checked 6 December 2026. Limits and policies change, so the provider’s own page always wins.
- Google for Developers: WebP (lossless 26% smaller than PNG, lossy 25 to 34% smaller than JPEG)
- Google for Developers: WebP compression techniques (lossy RGB with lossless alpha)
- W3C: PNG Specification, Third Edition (lossless; indexed colour, transparency)
- JPEG committee: Overview of JPEG 1 (created 1992)
- Apple Support: Using HEIF or HEVC media on Apple devices
- Google Search Central: supported image formats (BMP, GIF, JPEG, PNG, WebP, SVG, AVIF)
Frequently asked questions
Is WebP better than JPG?
For websites, usually yes: Google reports lossy WebP files are 25 to 34% smaller than comparable JPEGs. But JPG is accepted almost everywhere, including forms and print services, which WebP is not.
Should I use PNG or JPG for a photo?
JPG, or WebP on the web. PNG is lossless, so a photograph saved as PNG is typically several times larger with no visible benefit.
Which format keeps transparency?
PNG and WebP. JPG cannot store transparency, and transparent areas become a solid colour.
Why does a form reject my WebP image?
Many upload forms and older programs only accept JPG or PNG. Convert the image to JPG with the format converter.