Optimise images
Formats and sizes
By the wpdailylive editorial team · Part of Website and hosting, the complete guide
Key takeaways
- Resize: Match images to the size they’re displayed at.
- Modern formats: Convert to WebP or AVIF.
- Compress: Quality of 70–85% is usually invisible to visitors.
- Lazy-load: Load below-the-fold images only when needed.
- 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
Target sizes
| IMAGE | WIDTH | TARGET FILE SIZE |
|---|---|---|
| Full-width hero | 1600–2000 px | Under 200 KB |
| Content image | 800–1200 px | Under 100 KB |
| Thumbnail | 300–400 px | Under 30 KB |
| Logo | SVG where possible | A few KB |
Tools
| TASK | FREE TOOLS |
|---|---|
| Compress and convert | Squoosh, TinyPNG |
| Automatic in WordPress | ShortPixel, Imagify, EWWW (free tiers) |
| Check results | PageSpeed Insights “properly size images” audit |
WebP vs AVIF vs JPEG
| FORMAT | TYPICAL SAVING VS JPEG | SUPPORT | USE FOR |
|---|---|---|---|
| JPEG | Baseline | Universal | Fallback |
| WebP | Often 25–35% smaller | All modern browsers | Default for photos |
| AVIF | Often 40–50% smaller | All modern browsers; WordPress since 6.5 | Best compression where supported |
| PNG | Larger | Universal | Logos and images needing transparency (or use SVG) |
How to optimise images in WordPress
- 01Resize before uploadAbout 1600–2000 px wide for full-width images, less for content images.
- 02Use an optimisation pluginShortPixel, Imagify or your host’s optimiser converts to WebP or AVIF automatically.
- 03Keep lazy loading onWordPress lazy-loads images below the fold by default.
- 04Don’t lazy-load the hero imageLoad the main above-the-fold image immediately for a better LCP.
- 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
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
















