Table of Contents

    Image SEO: WebP, Alt Text and File Names Done Right

    Image SEO: WebP, Alt Text and File Names Done Right

    The core image SEO best practices are simple: serve a modern format (WebP or AVIF), resize images to the size they are displayed, write descriptive alt text, use readable file names, and never lazy-load the main image at the top of the page. Do those five things and your images help both rankings and speed instead of slowing the page down. Everything else is refinement.

    Images are the heaviest part of most pages and, for many local businesses, a real traffic source through Google Images and visual results. Below is our working checklist — the same one we use when we build and audit client sites — with the numbers behind each rule.

    02

    Why Image SEO Best Practices Matter in 2026

    According to the HTTP Archive Web Almanac 2024, 99.9% of pages request at least one image, and on 68% of mobile pages the Largest Contentful Paint (LCP) element is an image. That makes images the single biggest lever for Core Web Vitals. The same report found that only 55% of <img> elements on mobile have a non-blank alt attribute — so 45% give Google and screen readers nothing to work with.

    Web Almanac 2024 statistics on images, alt text and lazy loading

    In other words, most sites leave easy wins on the table. Following image SEO best practices is less about tricks and more about not making these common mistakes.

    03

    1. Choose the Right Format: WebP, AVIF, JPEG, PNG, SVG

    Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF, according to its image SEO guidelines. Support is not the question; file size is. Google’s WebP documentation says lossy WebP images are 25–34% smaller than comparable JPEGs and lossless WebP is about 26% smaller than PNG. The WordPress core team notes that AVIF can be up to 50% smaller than JPEG at the same quality.

    FormatUse it forNotes
    WebPPhotos and most graphicsSafe default; supported in WordPress since 5.8
    AVIFLarge photos, hero imagesSmallest files; WordPress 6.5+ if your server library supports it
    JPEGFallback onlyFine if you cannot convert
    PNGScreenshots needing exact pixelsOften 3× bigger than lossy WebP with transparency
    SVGLogos, icons, simple illustrationsScales without loss; use a title element for text
    Which image format to use (sources: Google, WordPress core, 2024–2026)

    Adoption is still low: the Web Almanac counted just 12% of mobile images served as WebP and 1% as AVIF. On our own projects we convert everything to WebP on upload and keep AVIF for large hero photos — this was a big part of how we reached a PageSpeed score of 97 on mobile.

    04

    2. Resize and Serve Responsive Images

    A 4000-pixel phone photo shown in an 800-pixel column wastes most of its bytes. Export images at roughly the largest size they are displayed (or 2× for sharp screens), then, as image SEO best practices recommend, let the browser pick the right one with srcset and sizes. Always keep a normal src as a fallback, because Google notes that some crawlers do not understand srcset.

    <img src="/img/tbilisi-loft-kitchen-800.webp"
         srcset="/img/tbilisi-loft-kitchen-480.webp 480w,
                 /img/tbilisi-loft-kitchen-800.webp 800w,
                 /img/tbilisi-loft-kitchen-1200.webp 1200w"
         sizes="(max-width: 600px) 100vw, 800px"
         width="800" height="533"
         alt="Renovated loft kitchen with oak cabinets in Vake, Tbilisi"
         loading="lazy" decoding="async">

    Also set width and height attributes. They let the browser reserve space before the image loads, which prevents layout shift (CLS). A practical size budget: under 150 KB for content images and under 250 KB for a full-width hero.

    05

    3. Lazy Loading Without Hurting LCP

    Native loading="lazy" delays off-screen images and saves bandwidth. The mistake many sites make when copying image SEO best practices is applying it to everything. A web.dev study of lazy loading found that sites using it had a worse median LCP (3,546 ms vs 2,922 ms), and that loading above-the-fold images eagerly fixed the problem. The Web Almanac still found 9.5% of mobile LCP images lazy-loaded.

    • Hero or first content image: no lazy loading; add fetchpriority="high".
    • Everything below the first screen: loading="lazy".
    • Sliders: only the first slide eager; the rest lazy.
    • Check it: run PageSpeed Insights and look at which element is the LCP.
    06

    4. Alt Text That Helps Users and Google

    Google calls alt text the most important image metadata. It should describe what is in the picture, in context, in one short sentence. Use the keyword only where it actually describes the image.

    QualityExample alt text
    Bad (missing)alt=”” on a product photo
    Bad (stuffed)alt=”kitchen renovation tbilisi kitchen renovation price best kitchen”
    OKalt=”kitchen”
    Goodalt=”Renovated loft kitchen with oak cabinets in Vake, Tbilisi”
    Alt text examples, following Google’s puppy example logic

    Purely decorative images (background shapes, dividers) should have an empty alt="" so screen readers skip them. Text inside images is not reliably read, so never put prices, phone numbers or headings only in a picture.

    07

    5. File Names, Captions and Surrounding Text

    Image SEO best practices workflow from resize to sitemap

    Google recommends short, descriptive file names: my-new-black-kitten.jpg beats IMG00023.JPG. Use lowercase words separated by hyphens, and rename files before uploading — in WordPress the original name becomes part of the URL. On multilingual sites, Google also suggests translating file names for each language version.

    Context matters too. Place images near the text that describes them, add a caption when it adds information, and make sure the page title and headings match what the image shows. Google uses all of this to understand the picture.

    08

    6. Image Sitemaps and Discoverability

    Google discovers most images from the src attribute in normal HTML. An image sitemap helps when images load through JavaScript or sit on a CDN. Each page entry can list up to 1,000 <image:image> tags; note that Google has removed the caption, title, geo-location and license tags from its documentation, so only <image:loc> matters. In WordPress, Rank Math adds images to the regular sitemap automatically — see our Rank Math settings guide.

    Two more discoverability tips: images used as CSS backgrounds are not indexed as images, and every important page should set an og:image (Google suggests 1200×675) so shares on Facebook and Messenger look right.

    09

    Image SEO Best Practices Checklist

    Common image SEO mistakes to avoid
    1. Convert to WebP (or AVIF for big photos).
    2. Resize to display size; provide srcset.
    3. Set width and height.
    4. Do not lazy-load the LCP image; lazy-load the rest.
    5. Write a descriptive, natural alt text.
    6. Rename files with hyphenated words before upload.
    7. Put the image next to relevant text and headings.
    8. Check the sitemap includes your images.
    9. Re-test in PageSpeed Insights after each change.

    Keep these image SEO best practices in your upload routine and they cost almost nothing. For a wider review, run through our technical SEO checklist and the guide to Core Web Vitals.

    10

    Image SEO Best Practices for Product and Service Photos

    For online stores, hotels, clinics and renovation companies, photos are the content. A few extra rules apply:

    • Shoot your own photos. Stock images appear on thousands of sites; original photos of your rooms, products or finished projects give Google something unique to show.
    • One subject per image name. oak-kitchen-vake-before.webp and oak-kitchen-vake-after.webp are clearer than two copies of kitchen.webp.
    • Consistent sizes. Product galleries look better and load faster when every image has the same aspect ratio, for example 4:3 or 1:1.
    • Structured data. Product, Recipe or LocalBusiness markup should reference a real, crawlable image URL.
    • Measure. In Google Search Console, filter Performance by search type “Image” to see which pictures bring clicks.

    If you are planning a shop, our guide on how to start an online store covers product photo planning from day one.

    11

    How We Handle Images on Client Sites

    On WordPress builds we automate the boring part: upload conversion to WebP, generated sizes for srcset, eager loading for the first image and lazy loading for the rest. Content editors then only need to write the alt text and pick a good file name, which keeps image SEO best practices in place even when a busy owner uploads photos from a phone. If your site already exists, a free SEO audit will show which images are oversized or missing alt text.

    Our SEO optimization service covers image audits, conversion and template fixes. Send us your project with your site URL, and we will tell you which image fixes will move your speed score and search visibility most.

    Image SEO: FAQ
    What are the most important image SEO best practices?

    Use WebP or AVIF, resize images to their display size, write descriptive alt text, use readable file names and avoid lazy-loading the main above-the-fold image. These five steps cover most of the benefit.

    Is WebP better than JPEG for SEO?

    Google indexes both, so WebP is not a ranking factor by itself. It helps because lossy WebP files are 25–34% smaller than comparable JPEGs, which speeds up the page and improves Core Web Vitals.

    Does Google index AVIF images?

    Yes. Google lists AVIF among the image formats supported in Google Search, alongside JPEG, PNG, WebP, GIF, BMP and SVG.

    How long should alt text be?

    Usually one short sentence, roughly 5 to 15 words, describing what is in the image. There is no fixed limit, but long lists of keywords count as stuffing and do not help.

    Should I lazy load all images?

    No. Lazy-load images below the first screen, but load the hero or first content image eagerly. Lazy-loading the LCP image delays it and makes your LCP score worse.

    Do I need an image sitemap?

    Not usually. Google finds images in normal HTML. An image sitemap helps when images are loaded by JavaScript or hosted on a CDN domain.