utilobox

JPG, PNG or WebP: choosing the right image format

You have an image and three formats to save it in, and a poor choice gives you a smudged logo, a white box around a graphic or a photo far heavier than it needs to be. Here is how to decide quickly, and how to switch with the Image converter when you guess wrong.

Last updated:

The idea in one minute

The three formats differ in what they do with detail. JPG compresses by throwing away fine variations that eyes rarely miss, which keeps photographs small and is why it is called lossy. PNG stores every pixel exactly, which is called lossless: nothing is lost, but photographs come out large. WebP is a newer web format that can reach smaller files than both at similar quality and, like PNG, can keep see-through areas.

Three rules of thumb follow from that. Photographs go to JPG, or to WebP for websites. Sharp graphics, text and anything with transparency go to PNG or WebP. And when you must be sure that a program, a form or an old computer will accept the file, JPG is the safest default.

Photos: JPG first, WebP for your own website

A photograph is made of smooth gradients and fine noise, exactly what JPG compresses well. Saved as PNG, the same photo, or a screenshot of a photo-heavy page, can be many times larger with no visible gain. If you hold a photo as a PNG and want it lighter, PNG to JPG usually shrinks it a lot. In the Image converter the ‘Quality’ slider runs from 10 to 100 and starts at 90: keep it near the top for photos you will keep, and move down for ones that are only going into a message.

For a website you control, WebP is worth a look. It usually gives smaller files than JPG at similar quality, so pages load faster, which is why JPG to WebP is a common step before uploading to a blog or shop. Keep the JPG originals anyway. Some older apps cannot open WebP, and email, print shops and many upload forms still expect JPG.

Logos, screenshots and text: PNG

Sharp edges and flat colors are where JPG is weakest. At lower quality it leaves faint smudges around letters and thin lines, easy to see on a logo or a screenshot of text. PNG keeps those edges exact and, because flat areas compress well, a simple graphic is often small as a PNG too. Use it for logos, icons, diagrams, charts, and screenshots of apps or documents.

If a PNG is heavier than you want, there are gentler fixes than switching to JPG. Compress image offers ‘Lossless’ under ‘PNG files’, which makes the file smaller without changing how it looks, though the saving is modest. Its ‘Convert to WebP’ choice gives much smaller files, with the catch that the result is a WebP image. Reducing the pixel size with ‘Maximum width’ often helps most of all.

Transparency: what survives each format

PNG and WebP can store transparent areas; JPG cannot. Save a transparent PNG or WebP as JPG and the see-through parts are filled with white, and the converter reminds you with the note ‘Transparent areas become white in JPG.’ White is invisible on a white page and obvious on a dark slide or a colored banner, where a logo suddenly sits in a white box.

You cannot get transparency back out of that JPG, so work from the original. The reverse does not create it either: JPG to PNG gives a lossless copy, but a JPG never had see-through areas, so the PNG has none. If an image saved from a website arrives as WebP and your program cannot read WebP, WebP to PNG keeps the transparency, while WebP to JPG gives the white fill. Animated files are a separate case: for animated WebP and GIF only the first frame is converted.

Quality, file size and repeated saving

Lossy formats have one more trap. Each time you open a JPG, edit it and save it again, it is compressed again and a little more detail slips away. If you will edit a picture over several rounds, keep a PNG or the untouched original as your master and export JPG copies from it. JPG to PNG can freeze the current state, but it cannot restore detail that is already gone.

To choose a quality number, test instead of guessing. Convert the same image at 90 and at 70 and compare. The list of files shows each original size followed by the new one, so you can see what the slider bought you, and a look at 100 percent zoom shows what it cost. PNG has no slider because there is nothing to trade away; the control hides itself when PNG is selected.

Compatibility: where each format gets refused

JPG opens almost everywhere: email, forms, old software, print labs. PNG is read by nearly every image editor and presentation program. WebP is displayed by current browsers but is the one most likely to be turned away by older programs, photo editors and upload forms. Pictures saved from websites often arrive as WebP, so converting them has become a common chore.

If a form rejects your file, read the list of accepted types it shows and convert to one of those. Renaming the ending is not a conversion: a WebP file renamed to .jpg is still a WebP inside, and a form that checks the contents may refuse it. Pages such as WebP to JPG, PNG to WebP or JPG to PNG open the same converter with the output format already chosen, so you can start from whichever matches your file.

AVIF in one paragraph

AVIF is a newer format built on the AV1 video codec. It is very efficient, so more websites use it, and an image you save from a page may be an .avif file. Whether a browser can decode it depends on the version: current Chrome, Edge and Firefox can, and so can Safari 16.4 or later. The Image converter can open AVIF but writes only JPG, PNG and WebP, so AVIF is an input here, not an output. If a program will not open an .avif file, AVIF to JPG gives you something it will.

If this, then that

A quick lookup for the most common cases:

  • Photo for an email, a form or a print order: JPG, with the quality around 90.
  • Photo for your own website: WebP, with the JPG kept as a backup.
  • Logo, icon or diagram on a clear background: PNG, or WebP when the site accepts it.
  • Screenshot of an app, a document or a chart: PNG. If it is mostly a photograph, JPG.
  • Picture you will edit again and again: keep a PNG or the original as the master.
  • Heavy PNG with no transparency: PNG to JPG, or Compress image with ‘Lossless’ if it must stay a PNG.
  • Web image that your program refuses: WebP to JPG for a plain copy, WebP to PNG to keep transparency.

Switching formats safely

Open the Image converter, add your files, pick JPG, PNG or WebP under ‘Convert to’, click ‘Convert’, then ‘Download’ or ‘Download all (ZIP)’. Converting copies is free, and your originals stay untouched on your device. If a result disappoints, go back to the original and try another setting instead of converting the converted file again.

Questions and answers

Is WebP always smaller than JPG?

Usually at similar quality, but not every time. Convert one of your own images both ways and compare the sizes in the file list.

Can the converter turn my JPG logo into a transparent PNG?

No. It changes the format only, and a JPG has no see-through areas to carry over. To cut out a subject, use Remove background, or start from the original file if you still have it.

Does the same ‘Quality’ number mean the same thing in JPG and WebP?

Not exactly. The scales belong to each format's encoder, so 80 in one may not match 80 in the other. Judge by the picture and by the size in the list.

Can I convert an SVG drawing?

Yes. The converter opens SVG and draws it as a normal picture in the format you choose, enlarged if needed so the longer side reaches 1,024 pixels. Once drawn it is made of pixels, so keep the SVG for anything that must scale.

Will camera and location data stay in the converted file?

No, whichever output you pick. EXIF details and GPS position are not copied into the new file.