Three formats run the web, and picking the wrong one has visible consequences. A photo saved as PNG can weigh several times more than it should, slowing a page down. A transparent logo saved as JPG comes back with a solid white box behind it. A WebP uploaded to an older system may not open at all. None of these is a mystery once you know what each format does with your pixels.

This guide compares PNG, JPG (the same format as JPEG) and WebP in plain terms: how each stores an image, where each wins, and where each fails, then shows how to convert between them with the free Image Format Converter on Ovatly, which runs in your browser and never uploads your image.

Contents

  • Quick answer
  • The three formats, in plain terms
  • Transparency: the factor that decides more than size
  • File size: why the same photo weighs three different amounts
  • What conversion can and cannot fix
  • How to convert an image, step by step
  • Worked example: a transparent PNG logo
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Use PNG for graphics, screenshots, logos and anything that needs transparency or crisp edges. Use JPG for photographs when a site or system does not accept WebP. Use WebP for photographs and graphics on the modern web, where it is typically the smallest of the three. To convert, open the Image Format Converter, add your image, pick the target format, set the background colour if you are converting a transparent image to JPG, and download the result. Conversion changes the encoding only: dimensions stay the same, and nothing restores quality an earlier save threw away.

The three formats, in plain terms

PNG is lossless. It stores every pixel exactly, which keeps screenshots, diagrams, text and flat-colour graphics perfectly sharp. It also stores transparency, so parts of the image can be see-through. The price is weight: a photograph in PNG carries far more data than it needs to, because photos are full of subtle variation that lossless storage will not summarise.

JPG, usually written JPEG, is lossy. It discards fine detail your eye is unlikely to miss, which makes photographs dramatically smaller. It is understood by effectively everything: browsers, phones, printers, office software, upload forms. Its two hard limits: no transparency at all, and discarding that shows first on sharp edges, so text and flat graphics can look fuzzy or smeared.

WebP is the newer format built for the web. It handles photographs and graphics, keeps transparency like PNG, and at comparable quality typically produces the smallest files of the three. All modern browsers display it. Its weakness is reach outside the browser: some older software and upload forms still do not accept it, the one situation where JPG remains the safer choice.

Transparency: the factor that decides more than size

Many format choices are really transparency choices. If any part of your image is see-through, a logo over a coloured background, a product cut-out, an icon, then the target format must support an alpha channel. PNG and WebP do. JPG does not, at all.

When a transparent image is converted to JPG, the transparent pixels have to become something, so the converter places the artwork over a background colour: white by default in Ovatly's tool, and you can pick a different colour. That fill is permanent in the new file. Convert a logo to JPG on white, place it on a dark web page, and you will see exactly the white rectangle you baked in. If the image must sit on backgrounds you do not control, keep it in PNG or WebP.

File size: why the same photo weighs three different amounts

Save one photograph three ways and the PNG is largest, because lossless storage keeps everything; the JPG is far smaller, because it discards detail in a controlled way; and the WebP is usually smallest of all at a similar visual quality, because its compression methods are newer.

This is why a converted file sometimes gets bigger, which alarms people. Convert a JPG photo to PNG and the file can grow several times over. Nothing went wrong: PNG is faithfully storing, at full size, a picture that JPG had summarised. You gained an exact copy of the JPG's contents in a heavier container. If a page is slow, the fix runs the other way, and our guide to compressing images without visible quality loss covers the settings that matter.

What conversion can and cannot fix

Conversion changes the container an image is stored in, not the picture inside it, and it cannot undo earlier decisions.

Converting a JPG to PNG does not restore quality lost in the original JPG compression; it only changes the container, and the damage stays, now in a bigger file. Converting to WebP usually shrinks a file while keeping it looking the same at normal sizes.

Conversion also never changes dimensions. A 4000 px wide image stays 4000 px wide in every format; when pixel size itself is the problem, that is a resizing job, covered in our guide on how to resize an image online.

How to convert an image, step by step

  1. Open the Image Format Converter and choose the image you want to convert; the tool shows its current format and size.
  2. Pick the target format: PNG, JPEG or WebP. For JPEG and WebP you also get a quality slider; start high and lower it only if the file is still too heavy.
  3. For JPEG, pick the background colour that will sit behind any transparent areas. Match it to where the image will be displayed, or leave the white default for light pages.
  4. Convert, compare the before and after sizes, and download. Open the result once to confirm it looks right before you overwrite anything.

Take a company logo saved as a PNG with a transparent background. Converted to JPEG, the artwork is placed over the background colour you pick, white by default, and the result is a smaller file that works anywhere, but the logo is now permanently on white.

The same file converted to WebP keeps its transparency and usually ends up smaller than both the PNG and the JPEG. So one source gives two sensible answers: JPEG for a form, a document or an older system; WebP for a modern web page, where the logo must float over the page's own background.

Limitations and honest tradeoffs

WebP's reach is its limit. Every modern browser shows it, but if a file must open in software you do not control, or pass an upload form built years ago, JPG is the format least likely to be refused. PNG remains the only safe choice of the three when every pixel must survive exactly, such as a master copy of a graphic.

Animated GIFs convert using their first frame only, and the output is a still image, so do not convert an animation you want to keep moving.

Common mistakes

  • Converting a JPG to PNG to "get the quality back". The quality is gone. You get the same picture in a larger file.
  • Saving a transparent logo as JPG without checking the background. The transparent area becomes a solid colour. Check it against the background it will sit on.
  • Publishing photographs as PNG. The page carries several times the weight for no visible gain. Convert to WebP or JPG, then compress.
  • Assuming WebP opens everywhere. It does not, yet. For files leaving the web, JPG is the safer envelope.
  • Converting when the real problem is dimensions. A huge image in a new format is still huge. Resize it too.

FAQs

PNG, JPEG or WebP: which should I choose? 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 the smallest of the three.

Why did my converted file get bigger? PNG is lossless, so a photo saved as PNG can be several times larger than its JPEG version. That is the format working as designed, not an error. If size matters, convert back to JPEG or WebP.

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.

Does converting a JPEG to PNG improve its quality? No. Converting changes the container, not the picture. Detail already discarded by the original JPEG compression is gone, and the PNG simply stores what remains, usually in a much larger file.

Is the conversion done online? No. Your browser encodes the new file itself and nothing is uploaded. The conversion happens on your own device, so the image never leaves it.

Conclusion

The format decision is usually made by two questions: does the image need transparency, and where will it live? PNG guards pixels and transparency, JPG guarantees acceptance, and WebP gives the smallest file on the modern web. The Image Format Converter makes switching between them a few seconds of work in your browser, with the size change shown before you commit. More techniques are in our Image Tools guides.

References