Image sizes and formats for fast websites

Large images are one of the most common reasons websites feel slow, especially on mobile data. The good news: fixing them is quick.

Size images for how they're displayed

If an image shows at 800 pixels wide on the page, uploading a 4000-pixel photo straight from a camera wastes bandwidth. A good rule of thumb is to export images at about twice their display width so they stay sharp on high-density screens, and no larger.

Where it's used Suggested width
Full-width hero 1920 to 2400 px
Content image 1200 to 1600 px
Card thumbnail 600 to 800 px
Logo or icon Use SVG where possible

Pick the right format

  • WebP is a great default for photos and graphics on the web. It's widely supported by modern browsers and is usually much smaller than JPEG at similar quality.
  • JPEG still works everywhere and is fine for photos.
  • PNG is best when you need sharp edges with transparency, like screenshots or cut-out product shots.
  • SVG is ideal for logos, icons and simple illustrations because it stays crisp at any size.

Compress, then check

Quality settings around 75 to 85 usually look almost identical to the original while cutting file size dramatically. Always compare before and after at the size the image will be displayed.

Don't forget the basics

  • Add descriptive alt text for accessibility and SEO.
  • Use loading="lazy" for images below the fold.
  • Set width and height attributes so the page doesn't jump while loading.

Do it in one step

Our free Image Resizer & Compressor downscales, compresses and converts batches of images to WebP, JPEG or PNG directly in your browser. Nothing gets uploaded.

Try the free Image Resizer & Compressor

Downscale, compress and convert images to WebP, JPEG or PNG in batches. Nothing is uploaded.

Open tool

More articles

Got an idea? Let's build it.

Free consultation, a clear plan and an honest quote. No strings attached.

Start your project