How to Optimise Images in WordPress: A Complete Guide
Optimising images in WordPress is essential for creating a fast, user-friendly, and SEO-optimised website. Large, uncompressed images can slow down your site, affecting user experience and search engine rankings. This guide will walk you through the best practices for image optimisation in WordPress, covering everything from file size reduction to SEO enhancements.
Why Image Optimisation Matters
Images are often the largest files on a web page, and unoptimised images can drastically increase page load times. Faster websites not only provide a better user experience but also rank higher in search engine results. By optimising your images, you reduce bandwidth usage, improve load speeds, and boost your site’s SEO performance.

Choosing the Right Image Format
Selecting the correct image format is the first step in optimisation:
- JPEG: Best for photographs and images with gradients.
- PNG: Ideal for graphics, logos, and images requiring transparency.
- SVG: Perfect for vector-based graphics and icons.
- Webp: Modern format offering superior compression and quality for both photos and graphics.
Resize Images to Appropriate Dimensions
Uploading images larger than necessary is a common mistake. Always resize your images to the exact dimensions required by your theme or page layout before uploading. For example, if your blog post displays images at 800 pixels wide, avoid uploading a 2000-pixel-wide image.
Recommended sizes include:
- Blog post images: 600–800 pixels wide
- Featured images: 1200×630 pixels
- Logos: 200×100 pixels
- Galleries/sliders: 1000–1200 pixels wide

Compress Images Without Losing Quality
Image compression reduces file size while maintaining visual quality. Use online tools like TinyPNG, JPEGmini, or Squoosh before uploading, or install WordPress plugins such as Smush or ShortPixel to automate compression during upload. Aim for a balance-compress images to around 85% quality for optimal results.
Use Responsive Images
WordPress automatically generates multiple image sizes and uses the srcset attribute to serve the best image size for each device. This ensures your images look sharp on all screens and load efficiently on mobile devices.

Optimise Image File Names
Rename your images with descriptive, keyword-rich file names before uploading. For example, use “wordpress-image-optimisation-tips.jpg” instead of “IMG_1234.jpg.” This practice helps search engines understand your images and improves image SEO.
Add Alt Text and Titles
Always include descriptive alt text for every image. Alt text improves accessibility for visually impaired users and helps search engines index your images. Use relevant keywords naturally in your alt text and image titles to further enhance SEO.
Remove Unnecessary Metadata
Images often contain metadata such as EXIF data, which can increase file size. Use optimisation tools to strip out unnecessary metadata before uploading, further reducing file size without affecting quality.
Serve Images in Next-Gen Formats
Consider serving images in modern formats like WebP, which offer better compression and quality compared to traditional formats. Many image optimisation plugins can automatically convert and serve images in WebP format for supported browsers.

Use Image Optimisation Plugins
WordPress offers a variety of plugins to streamline the optimisation process:
- Smush: Automatically compresses and resizes images on upload.
- ShortPixel: Offers bulk optimisation and WebP conversion.
- EWWW Image Optimiser: Compresses images and converts them to next-gen formats.
Test and Monitor Performance
After optimising your images, use tools like Google PageSpeed Insights or Pingdom to test your site’s loading speed and identify further optimisation opportunities.
Conclusion
Optimising images in WordPress is crucial for site performance, SEO, and user experience. By choosing the right formats, resizing and compressing images, using descriptive file names and alt text, and leveraging powerful plugins, you can ensure your website loads quickly and ranks well in search engines. Implement these best practices to maintain a visually appealing and high-performing WordPress site.
