How to Optimise Images for SEO — Alt Text, File Size and Format
Images are one of the most overlooked elements of on-page SEO. Most businesses focus on text-based optimisation — keywords, headings, meta descriptions — while their images sit there unoptimised, slowing the page down and providing no ranking value whatsoever. Proper image optimisation addresses three distinct areas: the descriptive information you attach to images so search engines understand them, the file format you save them in, and the file size that determines how quickly they load. Getting all three right is more straightforward than it sounds.
Image optimisation matters for reasons beyond SEO. Page speed is a confirmed Google ranking factor, and large uncompressed images are the single most common cause of slow-loading pages. Accessibility is also at stake — alt text is read aloud by screen readers for visually impaired users, so writing good alt text is both an SEO and a legal best practice. The effort invested in optimising your images pays off across all three dimensions simultaneously.
Writing Effective Alt Text
Alt text — short for alternative text — is a written description of an image that is embedded in the HTML of your page. Search engines cannot see images the way humans do; they read the alt text to understand what an image depicts and to determine whether it is relevant to the surrounding content. Alt text also serves as the fallback text displayed if an image fails to load, and it is what screen readers convey to visually impaired visitors.
Good alt text is descriptive, concise, and naturally incorporates a relevant keyword where appropriate. If you sell hand-made leather bags and have a product photo, alt text like "handmade brown leather messenger bag" is appropriate. Avoid generic descriptions like "image1.jpg" or "photo," and avoid keyword stuffing like "leather bag leather bags buy leather bags UK" — this looks spammy to both search engines and screen readers. Aim for one to two sentences that describe the image as you would to someone who cannot see it.
Choosing the Right File Format
The format you save your images in has a significant impact on file size and quality. JPEG remains the standard for photographs and complex images with many colours — it achieves good quality at smaller file sizes than PNG. PNG is preferable for images with transparency, logos, icons, and graphics with flat colours and sharp edges, where its lossless compression preserves detail that JPEG would blur. WebP is a modern format supported by all major browsers that achieves smaller file sizes than either JPEG or PNG at equivalent quality — it is increasingly the recommended format for web images and is now the default export option in many image editors.
For vector graphics — logos, icons, and illustrations — SVG format is almost always the best choice. SVG files are resolution-independent (they scale perfectly to any size without pixelation), very small in file size, and can be styled with CSS. If your designer provides your logo as a PNG, ask for the SVG version — it will look sharper and load faster on every device.
Compressing Images Without Sacrificing Quality
The most important image optimisation step for most websites is compression — reducing file size before uploading. A high-resolution photograph from a modern camera can easily be 5 to 10 megabytes. The same image, optimised for web, should typically be between 50 and 200 kilobytes. Free tools such as Squoosh (squoosh.app), TinyPNG, and Photoshop’s "Export for Web" feature allow you to compress images while controlling the quality/size trade-off.
In addition to compression, resize images to the dimensions they will actually be displayed at before uploading. There is no benefit in uploading a 4,000-pixel-wide image if it will only ever be displayed at 800 pixels wide — the extra resolution is wasted and adds unnecessary file size. Many content management systems, including WordPress with appropriate plugins, can automate compression and resizing, but it is always better to start with properly sized source images.
Common questions.
Does every image on my website need alt text?
Should I include keywords in image file names?
How do I know if my images are slowing down my website?
More on web design & ux.
Want a hand putting this into practice?
Book a free, no-obligation consultation with a Norwich-based specialist.
Let's put your business in a better light.
Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.