JPG, PNG, WebP, AVIF and HEIC explained, and when to convert

Updated 31 October 2026

You save an image from a website and it won’t open in your photo viewer. You upload a photo from your iPhone to an exam portal and it says “invalid file type”. A screenshot you send looks blurry, while a phone photo saved as PNG is suddenly 15 MB. All of these come down to image formats.

Each format makes a different trade-off between quality, file size and how widely it is supported. Once you know what each one is for, choosing and converting takes seconds.

The formats at a glance

  • JPG (JPEG): the universal photo format. It uses lossy compression, throwing away detail the eye barely notices, so photos stay small. It has no transparency, and text and sharp lines get fuzzy edges.
  • PNG: lossless, so every pixel is kept exactly, and it supports transparent backgrounds. Ideal for screenshots, logos, diagrams and anything with text. Photos saved as PNG are several times bigger than JPG without looking any better.
  • WebP: made by Google for the web. It does what JPG and PNG do, lossy or lossless with transparency, in files typically 25–35% smaller. Every modern browser supports it, but some older apps and many upload forms don’t.
  • AVIF: newer and smaller still, based on the AV1 video codec. Browsers handle it well, but support in apps and forms is limited.
  • HEIC: the format iPhones use for photos by default. It is roughly half the size of JPG at the same quality, but Windows, many Android apps and most websites cannot open it without help.

Which one to use

  • Government, exam and bank portals: JPG, unless the form asks for something else. It is accepted almost everywhere.
  • Sharing photos on WhatsApp or by email: JPG.
  • Screenshots, charts and anything with text: PNG, so the letters stay sharp.
  • Logos and icons placed on different backgrounds: PNG with transparency.
  • Images for your own website or blog: WebP, for faster pages.
  • Keeping originals: whatever your camera produced. Converting back and forth can only lose quality, never add it.

Converting without surprises

Converting changes how the picture is stored, not the detail it contains. A few things worth knowing:

  • JPG to PNG does not improve quality. Detail lost in the JPG stays lost, and the PNG is simply bigger. Convert to PNG only when you need transparency or an app demands it.
  • PNG to JPG fills transparent areas with a colour, usually white. Check the result if your image had a transparent background.
  • Saving a JPG again and again adds a little more blur each time. Edit from the original and save once at the end.
  • HEIC to JPG makes the file about 1.5 to 2 times larger, with no visible difference at high quality. The converter here also leaves out the GPS location, which is useful before sharing.
  • WebP images saved from websites can be converted to JPG so they open in any app or upload form.

Stop your iPhone saving HEIC

  1. Open Settings on the iPhone.
  2. Tap Camera, then Formats.
  3. Choose Most Compatible.

New photos are then saved as JPG. Photos you have already taken stay HEIC, so convert those before uploading them anywhere that only accepts JPG.

Questions people ask

Which format gives the smallest file?

For photos, AVIF and HEIC are the smallest, WebP comes next and JPG after that. PNG is by far the largest for photos. If a portal accepts only JPG, compress the JPG instead of changing the format.

Why does a portal say my JPG is invalid when it opens fine?

Often the file is really another format with a .jpg name, such as a renamed HEIC or WebP, or it breaks the size or pixel limits. Convert it properly with the converters here, and check the file size and dimensions the form asks for.

Tools used in this guide

All guides →