Browse all tools
Photo and videoCategory overviewPrint Size CalculatorDepth of Field CalculatorCrop Factor and Equivalent Focal Length CalculatorND Filter Exposure CalculatorFlicker-Free Shutter Speed CalculatorTimelapse CalculatorVideo File Size and Bitrate CalculatorAspect Ratio Calculator
Image filesCategory overviewImage Resizer and ConverterPNG to JPG ConverterJPG to PNG ConverterWebP to JPG ConverterJPG to WebP ConverterPNG to WebP ConverterHEIC to JPG ConverterEXIF Metadata Remover
Color and screensCategory overviewColor Converter and Contrast CheckerColor Palette Extractor and GeneratorColor Screen GeneratorDead Pixel TestScreen Refresh and Flicker TestBroken Screen Simulator
Everyday toolsCategory overviewUnit ConverterPercentage CalculatorOnline StopwatchExam Timer

More

All guidesAbout

JPG, PNG, WebP and HEIC: Which Image Format Should You Use?

Image formats trade quality, file size and compatibility. Choosing the right one saves space and avoids files that will not open.

The main formats

FormatCompressionTransparencyBest forSupport
JPGLossyNoPhotos, sharing, printingEverywhere
PNGLosslessYesGraphics, screenshots, logosEverywhere
WebPLossy or losslessYesWeb images, smaller filesAll current browsers; some older software lacks it
HEICLossy, efficientYesiPhone photosMainly Apple devices
AVIFLossy or losslessYesVery efficient web imagesModern browsers

When to convert

  • PNG to JPG: to shrink photos and screenshots with many colors. Transparent areas become a solid color.
  • JPG to PNG: only when an app requires PNG. It does not recover lost detail.
  • WebP to JPG: when software or a service does not accept WebP.
  • JPG or PNG to WebP: to make website images smaller.
  • HEIC to JPG: to share iPhone photos with devices that cannot open HEIC.

Keep quality when converting

  • Always convert from the original file, not from a copy that was already compressed several times.
  • Use a quality of 85 to 90 percent for photos. Lower values save little extra space and add visible artifacts.
  • Keep the original files. Convert copies for each use.

Our converters

How compression works

Lossless formats such as PNG store the picture so that it can be reconstructed exactly. Lossy formats such as JPG, WebP and HEIC discard detail that people are unlikely to notice, which makes files much smaller. Each time a lossy file is edited and saved again, a little more detail is lost, so the quality of a JPG that has been saved ten times can be visibly worse than the original.

Choosing by task

TaskBest choiceWhy
Photograph to share or printJPGSmall, universal and good enough for most uses
Screenshot, interface or textPNGSharp edges without compression artifacts
Logo with a transparent backgroundPNG or WebPBoth keep transparency
Image for a fast websiteWebPUsually smaller than JPG at similar quality
iPhone photo for a Windows or Android userJPGHEIC support is limited outside Apple devices
Image you will edit repeatedlyPNG, TIFF or the RAW fileAvoids repeated lossy compression
Archiving camera originalsRAWKeeps the most information

Metadata and color profiles

Image files can carry camera data, location and an embedded color profile. Converting a file may remove the metadata, which helps privacy but also removes copyright fields. The color profile tells programs how to show the colors. Web images are usually in sRGB, and converting to another profile can shift colors slightly.

Common mistakes

  • Renaming a file. Changing the extension from .png to .jpg does not convert the file. Use a converter.
  • Saving screenshots as JPG. Text and sharp lines become blurry and blotchy.
  • Converting a JPG to PNG to improve it. It makes the file bigger and recovers nothing.
  • Repeatedly re-saving a JPG. Work from the original each time.
  • Forgetting transparency. Converting a transparent PNG to JPG replaces the transparent areas with a solid color.

A note on newer formats

AVIF and JPEG XL are newer formats that can give even smaller files, but support in software is still uneven. For now, JPG and PNG are the safe choices for sharing, and WebP is a good choice for websites.

Try the tool

Image Resizer and ConverterResize photos and convert between JPG, PNG and WebP in your browser. Nothing is uploaded.

About the author. Darkroom Bench is created and maintained by Andrés, a nature photographer from Argentina with two decades in southern Patagonia and more than 50 trips to Antarctica, whose work has received international awards. Read more or follow the photography on Instagram: @yosoytato.

More guides