How to choose the right image format for a website

Images are usually the heaviest part of a web page, and the format you choose decides how fast it loads. The rule of thumb is simple: pick the format by what the image shows, then make it no bigger than the size it is displayed at.

JPG to WEBPPNG to WEBPImage Resizer

Choose by what the image shows

ImageBest formatWhy
PhotosWebP or AVIF (JPG as fallback)25 to 50 percent smaller than JPG at the same look
Logos and iconsSVGSharp on every screen, often a few KB
Screenshots, graphics with textWebP at high quality, or PNGKeeps sharp edges and small letters
Anything with transparencyWebP or PNGBoth keep transparent backgrounds
Short animationsMP4 or WebM video instead of GIFOften ten times smaller than a GIF

For a detailed comparison of the three common formats, see JPG vs PNG vs WebP.

Size matters more than format

A 4000 pixel photo shown 800 pixels wide wastes most of its bytes in any format. Resize images to about the largest size they appear at, or twice that for sharp phone screens: 1600 to 1920 pixels for full-width images, 800 to 1200 for images in an article. Use the Image Resizer or the Resize option of any converter.

Converting your existing images

Quick checklist

Frequently asked questions

Is WebP supported by all browsers?

Yes, every current browser supports WebP. AVIF is supported by current Chrome, Edge, Firefox and Safari.

Should I still use JPG?

JPG is fine and universally supported, but WebP or AVIF make the same photo noticeably smaller, which speeds up the page.

What size should website images be?

About the largest size they are shown at, or up to twice that for sharp phone screens: commonly 1600 to 1920 pixels wide for full-width images.