A website image usually fails in one of three quiet ways. The page feels heavy because a photo is far larger than it needs to be. A logo arrives with a white box around it that nobody put there on purpose. A screenshot looks fuzzy exactly where the text should be crisp. In each case the image itself is fine. The format is wrong for the job.
There is no single best format, and anyone who gives you one answer for every image is skipping the real question. PNG, JPEG and WebP each win at a different job. This guide makes the decision by use case, using the free Image Format Converter on Ovatly, which re-saves an image in your browser and shows the size before and after, so close calls are settled by numbers, not guesses.
Contents
- Quick answer
- The three formats in plain terms
- Photos: WebP first, JPEG as the fallback
- Graphics and logos: transparency makes the decision
- Screenshots: edges make the decision
- How to convert an image, step by step
- Worked example: one logo, three outcomes
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Decide by the job the image does. For photos on the modern web, convert to WebP, which is typically the smallest of the three. Keep JPEG as the fallback for photos when a site or system does not accept WebP. For graphics and logos, choose PNG or WebP, because both keep transparency. For screenshots, choose PNG or WebP, because both keep edges pixel-perfect. Open the Image Format Converter, pick the target format, set the quality slider if you chose JPEG or WebP, convert, compare the before and after sizes, and download the winner.
The three formats in plain terms
JPEG is the oldest of the three and the most widely accepted. It is built for photographs, and it has one hard limit: it cannot store transparency. Any transparent part of an image has to land on a solid background color when it becomes a JPEG.
PNG is lossless, which means it stores the image exactly, pixel for pixel. That exactness is why it suits graphics, screenshots and anything with transparency or sharp edges, and why a photograph saved as PNG can be several times larger than its JPEG.
WebP is the newer format aimed squarely at the web. It handles photos and graphics, keeps transparency like PNG, and is typically the smallest of the three. Its only real question is acceptance: most modern destinations take it, but an older system or a strict form may still ask for JPEG or PNG by name.
Photos: WebP first, JPEG as the fallback
A photograph is continuous tone: skin, sky, foliage, shadow. It has no hard edges that need protecting and no transparency to preserve, so the contest is purely about size at acceptable quality. WebP usually wins that contest, which is why it is the default recommendation for photos on the modern web.
JPEG is the fallback, and it is a good one. Choose it when a site does not accept WebP, when a form names the formats it wants, or when the image is leaving the web for email, documents or print, where JPEG is understood everywhere. JPEG and WebP both come with a quality slider in the converter, so you decide how much size to trade for how much fidelity. PNG has no quality choice at all, because lossless storage has nothing to trade away.
Graphics and logos: transparency makes the decision
Graphics are the opposite of photos: flat color, hard edges, and very often a transparent background that has to sit cleanly over whatever is behind it. That last property decides the format before size even enters the discussion.
PNG keeps the alpha channel, so a logo stays transparent. WebP keeps it too, and usually at a smaller size. JPEG deletes the possibility entirely: transparent pixels become the background color you pick, white by default. Sometimes that is exactly what you want, when the destination background is known and fixed. When it is not, a JPEG logo is a box waiting to clash with the page. Our companion guide on converting a logo from PNG to JPG without a white box problem works through that trap in detail.
Screenshots: edges make the decision
A screenshot is text and interface lines, and its whole value is legibility. Lossy compression at a careless quality setting softens exactly those edges, which is why a low-quality JPEG screenshot looks tired even at a small size.
PNG is the safe answer: lossless storage keeps every edge pixel-perfect. WebP keeps edges sharp as well and usually produces a smaller file, so it is the better choice when the destination accepts it. Reserve JPEG for screenshots only when a system demands it, and push the quality slider high if you do.
How to convert an image, step by step
- Open the Image Format Converter and choose the image you want to convert. Its current format and size are shown, so you know your starting point.
- Pick the target format using the use cases above: WebP for web photos and graphics, JPEG for compatibility, PNG for transparency and exact edges.
- If you picked JPEG or WebP, set the quality slider. If you picked JPEG and the image has transparent areas, also pick the background color that will sit behind them; the default is white.
- Convert, then compare the before and after sizes. If the result surprises you, try the other candidate format and let the numbers decide.
- Download the converted file and keep your original untouched, so you can convert again for a different destination later.
Worked example: one logo, three outcomes
Take a logo saved as PNG with a transparent background, the most common logo file there is. Converted to JPEG, the artwork is placed over the background color you pick, white by default, and the transparency is gone. The file works anywhere, but it now carries a solid backdrop.
The same file converted to WebP keeps its transparency and usually ends up smaller than both the PNG and the JPEG. Same logo, same dimensions, three different files, and the right one depends entirely on where it is going: WebP for a modern web page, PNG when transparency must survive where WebP is refused, JPEG only when the background is known and matched.
Limitations and honest tradeoffs
Conversion changes the encoding, nothing else. Width and height stay exactly the same, so if the image is also the wrong size, converting will not fix that; resizing is a separate job with a separate tool.
Converting never restores quality. A JPEG that was saved at low quality has already thrown detail away, and saving it as PNG just stores the damaged version exactly, usually in a much bigger file. Always convert from the best original you have.
Animated GIFs convert using their first frame only, and the output is a still image. And WebP, for all its advantages, is still refused by the occasional form or older system, which is why the JPEG fallback is worth keeping rather than treating WebP as a universal answer.
Common mistakes
- Saving photos as PNG out of habit. The file can be several times larger than the JPEG for no visible gain. Photos belong in WebP or JPEG.
- Converting a JPEG to PNG to "improve" it. Nothing is restored. You get the same pixels in a heavier container.
- Forgetting the transparency question. If any part of the image is transparent, JPEG will fill it with a solid color. Decide before you convert, not after you upload.
- Converting the converted file. Work from the original every time. Each generation of lossy saving costs a little more quality.
FAQs
PNG, JPEG or WebP: which should I choose for a website? PNG for graphics, screenshots and anything needing transparency or pixel-perfect edges. JPEG for photos when a site does not accept WebP. WebP for photos and graphics on the modern web, where it is typically smallest.
Why did my converted file get bigger? PNG is lossless, so a photo saved as PNG can be several times larger than its JPEG. That is the format working as designed, not an error.
Does conversion change the dimensions? No. Width and height stay exactly the same; only the encoding changes. Use the Image Resizer when you need different pixel sizes.
Is the conversion done online? No. Your browser encodes the new file itself and nothing is uploaded, so the image never leaves your device.
Does converting a JPEG to PNG improve its quality? No. Converting a JPEG to PNG does not restore quality lost in the original JPEG compression; it only changes the container the same pixels are stored in.
Conclusion
Format choice is a small decision with an outsized effect on how a website feels: load speed, clean logos, readable screenshots. Match the format to the job, photos to WebP with JPEG in reserve, graphics and logos to PNG or WebP for their transparency, screenshots to PNG or WebP for their edges, and let the before and after sizes in the Image Format Converter settle anything still in doubt. For more techniques in this series, see our Image Tools guides.
References
- MDN Web Docs, on image file types and the formats browsers support: https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types
- web.dev (Google), on choosing image formats and serving responsive images: https://web.dev/articles/serve-responsive-images