0 / 24 done on this device
Stage 4 · Lesson 3 of 4 · CHECKLIST · 5 min

Optimise images

Formats and sizes

By the wpdailylive editorial team · Part of Website and hosting, the complete guide

Key takeaways

  1. Resize: Match images to the size they’re displayed at.
  2. Modern formats: Convert to WebP or AVIF.
  3. Compress: Quality of 70–85% is usually invisible to visitors.
  4. Lazy-load: Load below-the-fold images only when needed.
  5. Dimensions and alt text: Set width and height, and describe every image.

Images are usually the largest files on a page. Resizing and compressing them is the quickest way to improve load time.

  • •Resize to the largest display size, usually 1,600–2,000 px wide
  • •Use WebP or AVIF instead of PNG or JPEG
  • •Compress to 70–85% quality
  • •Lazy-load images below the fold
  • •Set width and height to prevent layout shift
  • •Write descriptive alt text
EXAMPLE: SAME PHOTO, DIFFERENT FORMATS
Original JPEG2.4 MB
Resized JPEG320 KB
WebP180 KB
AVIF120 KB
Illustrative example, not data.

Target sizes

IMAGEWIDTHTARGET FILE SIZE
Full-width hero1600–2000 pxUnder 200 KB
Content image800–1200 pxUnder 100 KB
Thumbnail300–400 pxUnder 30 KB
LogoSVG where possibleA few KB

Tools

TASKFREE TOOLS
Compress and convertSquoosh, TinyPNG
Automatic in WordPressShortPixel, Imagify, EWWW (free tiers)
Check resultsPageSpeed Insights “properly size images” audit

WebP vs AVIF vs JPEG

FORMATTYPICAL SAVING VS JPEGSUPPORTUSE FOR
JPEGBaselineUniversalFallback
WebPOften 25–35% smallerAll modern browsersDefault for photos
AVIFOften 40–50% smallerAll modern browsers; WordPress since 6.5Best compression where supported
PNGLargerUniversalLogos and images needing transparency (or use SVG)

How to optimise images in WordPress

  1. 01Resize before uploadAbout 1600–2000 px wide for full-width images, less for content images.
  2. 02Use an optimisation pluginShortPixel, Imagify or your host’s optimiser converts to WebP or AVIF automatically.
  3. 03Keep lazy loading onWordPress lazy-loads images below the fold by default.
  4. 04Don’t lazy-load the hero imageLoad the main above-the-fold image immediately for a better LCP.
  5. 05Write alt textDescribe the image for accessibility and image search.

Image SEO tips

  • •Descriptive file names (oak-dining-table.webp, not IMG_2041.jpg)
  • •Alt text that describes the image, not keyword lists
  • •Images near relevant text and captions
  • •An image sitemap (most SEO plugins add one)

Common mistakes to avoid

✕ Uploading 5 MB phone photosResize and compress first.
✕ Lazy-loading the hero imageLoad it immediately.
✕ Empty or stuffed alt textDescribe the image.
PEOPLE ALSO ASK
How do I optimise images for my website?

Resize to the display size, convert to WebP or AVIF, compress with a plugin, lazy-load below-the-fold images and add alt text.

WebP vs AVIF: which is better?

AVIF usually compresses more; WebP encodes faster. Both are supported by modern browsers; many plugins serve whichever the browser supports.

What size should website images be?

Around 1600–2000 px wide for full-width images and under about 200 KB where possible.

What is the best image optimization plugin?

ShortPixel, Imagify or your host’s built-in optimiser are popular choices.

Should I lazy load images?

Yes for images below the fold, but not for the main image at the top of the page.

Tools we recommend for this stage

Some links are partner links: we may earn a commission at no cost to you. It never changes what we recommend. How we make money

Reviews of tools in this lesson