PDF & Images

JPG vs PNG vs WebP vs HEIC: Which Image Format to Use?

By Sabila Akram · Published

Use JPG for photos you share, PNG for screenshots, logos and anything that needs a see-through background, WebP for pictures on your own website, and HEIC only as the format an iPhone saves in. JPG is the safe choice because every phone, program and website opens it. The free converters on this site, PNG to JPG, JPG to WebP, PNG to WebP and HEIC to JPG, move a picture from one format to another in your browser, without uploading it.

The four formats at a glance

Format Compression Transparency Best for Opens everywhere?
JPG Lossy No Photos Yes
PNG Lossless Yes Screenshots, logos, text, graphics Yes
WebP Lossy or lossless Yes Websites Current Chrome, Edge, Firefox and Safari; some older programs and print shops do not
HEIC Lossy Supported, rarely used iPhone storage No: Windows needs an extension, many websites reject it

Lossy means the format throws away detail you are unlikely to notice to make the file smaller. Lossless means every pixel is kept exactly, so the file is larger.

JPG: the default for photos

JPG suits photographs because it handles smooth colour changes well and gives small files. Its limits are that it cannot be transparent and that every save at a lower quality loses a little more detail. Edit and save from the original, not from a copy of a copy.

Example: a 12-megapixel photo is 4000 × 3000 = 12,000,000 pixels. Stored without compression at 3 bytes a pixel it would be 36,000,000 bytes, about 36 MB. A JPG of the same photo is typically a few MB, which is why JPG took over.

PNG: sharp edges and transparency

PNG keeps every pixel, so text in a screenshot stays crisp and a logo has clean edges. It also has a transparent background, which JPG does not. The price is size: a PNG of a photograph is much larger than a JPG of it, so do not use PNG for photos unless you need to edit them without any loss.

If you have a PNG of a photograph that is too big to upload, PNG to JPG usually cuts the size a lot. Text and sharp lines can look slightly rough in a JPG, so keep screenshots as PNG. See-through areas are filled with a colour you choose, so pick the background that matches where the picture will be used.

WebP: smaller files for websites

WebP can be lossy or lossless, and it supports transparency in both modes. In Google’s tests, lossy WebP files were 25% to 34% smaller than JPG at the same quality, and lossless WebP files were about 23% smaller than PNG files that had already been optimised.

Example: a 3.0 MB JPG becomes about 2.0 to 2.25 MB as WebP (3.0 MB × 0.66 to 0.75), a saving of 0.75 to 1.0 MB for each photo. On a page with 20 photos, that is 15 to 20 MB less to load. A 400 KB PNG logo is about 308 KB as lossless WebP (400 KB × 0.77), and smaller still as lossy WebP with transparency kept.

The catch is compatibility outside the web. Use JPG to WebP or PNG to WebP for pictures on your own site, and keep a JPG or PNG original for everything else.

HEIC: what your iPhone saves

iPhones from the iPhone 7 on save photos as HEIC (the .heic ending), because Apple says HEIF keeps similar visual quality to JPEG in a smaller file. It is a good format for storing photos on the phone. It is a poor one for sharing, because Windows needs an extension to open it and many sites and forms refuse it.

Before you send iPhone photos to someone, upload them to a portal, or print them, turn them into JPG with HEIC to JPG. The photos are decoded on your device and never uploaded. The JPG will usually be larger than the HEIC, which is the price of a file that opens anywhere. To stop the problem at the source, go to Settings, Camera, Formats and choose Most Compatible.

Which one should you choose?

You want to… Use
Send a photo on WhatsApp or email JPG
Put a photo on your website WebP, with a JPG copy
Share a screenshot with text PNG
Keep a logo with a see-through background PNG, or WebP for a website
Open iPhone photos on Windows or upload them Convert HEIC to JPG
Print a photo JPG at high quality, or PNG

Two mistakes to avoid

  • Converting up does not restore detail. JPG to PNG makes a larger file that looks the same, because the detail was already lost when the JPG was made.
  • Do not convert the same picture again and again. Each lossy save, JPG to JPG or WebP to JPG, adds another small loss. Convert once, from the original.

Make the file smaller without changing format

If a picture is still too large for a form or chat, try Compress Image first, or Resize Image to fewer pixels. A photo shown at 1080 pixels wide does not need 4000 pixels. Both tools run in your browser.

Frequently asked questions

Which image format is best for photos?

JPG, because it opens everywhere and keeps photos small. Use WebP instead for your own website, where it is about 25% to 34% smaller than JPG at the same quality. Keep HEIC only on the iPhone, and convert it to JPG before you share it.

Which format keeps a transparent background?

PNG and WebP do. JPG cannot be transparent, so converting a transparent PNG to JPG fills the see-through areas with a colour, white by default.

Does converting from JPG to PNG improve the quality?

No. A JPG has already lost detail, and PNG only stores what is there without loss. The PNG will look the same and be larger.

Can I make my iPhone save JPG instead of HEIC?

Yes. Go to Settings, Camera, Formats and choose Most Compatible. Photos you take from then on are saved as JPG.

Tools mentioned in this guide

About the author

Sabila Akram. Sabila Akram is an AI engineer and full-stack web developer and the founder of IlmToolkit, where she builds the tools and writes the guides.

More in PDF & Images