Search Engines & SEO

Image SEO

Definition

There are two outcomes to aim at. The first is appearing in image search, which is driven mostly by the alt attribute, the file name, the caption and the text immediately around the image. The second is not slowing the page down, which matters because the hero image is very often the element that Largest Contentful Paint is measuring. The mechanics are unglamorous: name the file dorset-coast-path-sunrise.jpg rather than IMG_4471.jpg, write alt text that describes the picture in a sentence instead of listing keywords, serve WebP or AVIF rather than a full-size JPEG, give every img element explicit width and height attributes, and add loading="lazy" to anything below the fold. Purely decorative images take an empty alt attribute so screen readers skip past them.

Why It Matters

Images are usually the heaviest thing on a page by a wide margin. A photograph straight off a phone can be 4 MB; resized to the width it is actually displayed at and saved as WebP it is often under 150 KB, a cut of well over ninety per cent with no visible difference. That is the gap between a hero that paints in half a second and one that keeps the page above the 2.5-second threshold. Alt text meanwhile does three jobs at once: it is what a screen reader announces, what appears if the file fails to load, and the strongest signal image search has about the subject.

How It Works

A crawler finds images through the img src attribute, through srcset candidates, through CSS backgrounds it sees while rendering, and through an image sitemap if you provide one. It then reads the alt attribute, the file name and the nearby text to work out what the picture is of. Serving the right file per screen is the job of srcset and a sizes attribute, which let the browser fetch a 480-pixel version for a phone and a 1600-pixel one for a monitor. Explicit width and height attributes, or an aspect-ratio in CSS, reserve the space before the bytes arrive so the layout does not jump as each image lands. A static host serves exactly the file you upload at the size you uploaded it, so the sizing decision belongs in your image editor rather than anywhere downstream.

Real-World Example

A letting agent uploads twelve photographs to 99helpers for a listing at oak-lane.99helpers.site, straight from the camera at about 5 MB each. The page weighs 62 MB and takes the best part of a minute to finish on a phone. Resizing them to 1600 pixels wide and exporting as WebP brings the whole set to roughly 1.8 MB, and renaming DSC_0042.jpg to oak-lane-kitchen.jpg gives image search something to read. Side by side on screen the photographs are indistinguishable from the originals.

Common Mistakes

  • Packing alt text with keywords — it reads badly to a screen reader user and search engines discount the padding anyway
  • Uploading the camera original because the page displays it small — the browser downloads the full file regardless of the CSS width applied to it
  • Leaving width and height off the img element — the page then jumps as each picture lands, which is precisely what Cumulative Layout Shift measures

Related Terms

Put a file online in seconds

Drop in a document, an image, a page or a whole static website and share the link — free, with no build step and no server to set up.

Host a file free →