Taskcover Agency logo

Technical SEO

Image SEO: Alt Text, File Names and Sizes

The short answer

Image SEO is the work of making the pictures on your pages easy for Google to find, understand and load. Put each important image in a standard image tag, give it a short descriptive file name and alt text that says what it shows, place it beside related text, and serve a file no bigger than the page needs.

Key takeaways

  • Google calls alt text the most important attribute for giving it information about an image.
  • Google does not index images set as CSS backgrounds, so every picture that matters belongs in a standard image tag.
  • A file name gives Google only very light clues, so the caption and text beside the image matter too.
  • The main picture at the top of a page should load first and should never be lazy-loaded.
  • An image sitemap is for images Google would not otherwise find, such as those loaded by JavaScript.

Written byJamiez NguyenFounder & CEO

Reviewed byJohn EdwardCTO

Updated

Fact-checked

Reading time8 min

In this guide

This guide is for owners whose websites depend on pictures: product photos, before-and-after shots, menus, portfolios. It explains image SEO in plain words, shows how to tell whether your images are holding the site back, and lists what to ask your developer. The detail for the person doing the work follows. Images are one part of a site's technical health, and our technical SEO service covers the rest.

What is image SEO?

Image SEO is everything that helps a search engine find a picture, work out what it shows and connect it to the right page. Google asks for signals you control: where the image sits in the page's code, its file name, its alt text and the words around it. The same work makes pages load faster, which every visitor notices.

Alt text (alternative text)

A short written description of an image, stored in the page's code. Screen readers read it aloud to people who cannot see the picture, and Google reads it to learn what the picture shows.

How do you know if your images are a problem?

You can spot most image problems without any tools. Open your most important page on a phone and look for the signs below.

  • The page is slow, and the photos arrive late or push the text down as they load.
  • The files have names such as IMG00023.JPG, the kind a camera gives them.
  • When a photo fails to load, the space is blank. Nothing describes what should be there, which usually means the alt text is missing.
  • You right-click a photo and the browser does not offer to save it. It may be set as a background in the site's styling (CSS), and Google says it does not index CSS images.
  • In Google Search Console, the Performance report filtered to the image search type shows few or no impressions for a site full of photos.

How do you write alt text for SEO?

Say what the picture shows, in a short phrase, the way you would describe it to someone on the phone. Write it for a person who cannot see the image. If the words for your product belong in that description, they will be there without forcing.

Google's image guidance calls alt text the most important attribute for providing more metadata for an image, and says it also helps people who use screen readers or have low-bandwidth connections. It asks for useful, information-rich alt text, and warns that filling alt attributes with keywords gives a poor experience and may cause a site to be seen as spam.

SourceGoogle Search Central

Alt text, from missing to useful. The first three rows are Google's own examples. The two about an oak table are ours.
Alt textHow it ratesWhy
NoneBad, in Google's exampleNothing for a screen reader or for Google to read
puppyBetter, in Google's exampleTrue, but it could be any puppy
Dalmatian puppy playing fetchBest, in Google's exampleSays what is in the picture
oak table dining table wood table buy tableBadA string of keywords, which Google warns against
Solid oak dining table set for six, with a bench along one sideGoodSomeone who cannot see the photo knows what it shows

Two special cases. A picture that is only decoration, such as a divider, should have empty alt text so that a screen reader skips it. That is the advice of the W3C's Web Accessibility Initiative. And when an image is itself a link, Google says the alt text works as the link text, so describe where the link goes.

Do image file names matter?

A little. Google says a file name gives it very light clues about what an image shows, and recommends names that are short but descriptive. Its own example: my-new-black-kitten.jpg is better than IMG00023.JPG.

  • Name the file before you upload it. Renaming it later changes the image's address, and Google recommends using the same address for the same image every time so that it can cache and reuse it.
  • Use plain words joined by hyphens, as Google's example does: oak-dining-table-six-seats.jpg.
  • Keep the ending honest. Google suggests the file extension match the file type, and supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF.
  • If your site has more than one language, Google advises translating the file names too.

File names are the smallest part of the job. Google says it learns what an image is about from the content of the page, including captions and image titles, and recommends placing each image near the text it relates to. So put the photo of the oak table beside the paragraph about the oak table.

What size should images be?

As large as the space they fill on the screen, and no larger. Google's image guidance gives no pixel or file-size target. It says images are often the largest contributor to overall page size, which can make pages slow and expensive to load, and it names PageSpeed Insights as the tool for testing.

Image size and loading: what to check

  • Resize before you uploadA photo straight from a camera or phone is wider than most pages will ever show it. Export it at about the size it appears on the page.
  • Offer more than one sizeA feature of the image tag called srcset lets the browser choose a smaller file for a phone and a larger one for a desktop. Google recommends always keeping a fallback address in the src attribute.
  • Choose a suitable formatGoogle supports WebP and AVIF alongside JPEG and PNG. The picture element lets a developer offer a newer format with a fallback for browsers that cannot show it.
  • Set a width and heightweb.dev, Google's site for developers, lists images without dimensions among the most common causes of a page that jumps while it loads.
  • Load the main image firstweb.dev says never to lazy-load the largest image at the top of a page, and suggests marking it as high priority. That image is often what the loading score called Largest Contentful Paint (LCP) measures.
  • Lazy-load the rest with careLazy loading means an image is fetched only when the visitor scrolls near it. Google says the image should load whenever it is visible on screen, without needing a click or another action from the visitor.

Speed has a guide of its own: what Core Web Vitals are.

Do you need an image sitemap?

Only if Google would struggle to find your images by reading the pages. An image sitemap is a list that tells Google about images it might not otherwise discover, and Google gives images reached with JavaScript as the example. If your images sit in ordinary image tags on pages Google already reads, we would not make this the first job.

For sites that do need one: each page entry can list up to 1,000 images, and the images may sit on another domain, such as the content delivery network (CDN) that serves your files. Google asks that the hosting domain is verified in Search Console. Our guide to XML sitemaps explains the file itself.

How to check your images in five steps

A quick image check

  1. Pick five pages that earn money

    Your home page, two category or service pages, and two product or project pages. Pages of one kind share a template, so a problem on one is usually a problem on all.

  2. Look at how each image is placed

    Ask your developer, or right-click the image and choose Inspect. You want an img element with a src address. Google says it finds images there, including img elements inside a picture element, and does not index CSS images.

  3. Read the alt text and file names

    Fix the pictures that show what you sell first. Leave decorative images with empty alt text.

  4. Test the page speed

    Run the page through PageSpeed Insights, the tool Google's image guidance names, and note which images it flags as too large.

  5. Check what Google loaded

    In Search Console, the URL Inspection tool shows the page as Google rendered it. Google says that if your image addresses appear in the src attributes of the img elements there, lazy loading is working.

Related service

Images checked as part of the whole site

We check how your pages load and what Google can read on them, images included, and write each fix as a task your developer can pick up.

See the service

Questions people ask about image SEO

Which image format is best for SEO?

Google does not name one. Its image guidance lists BMP, GIF, JPEG, PNG, WebP, SVG and AVIF as supported, and suggests only that the file extension match the file type. Choose the format that gives the smallest file at a quality you are happy with.

Does lazy loading hurt image SEO?

Not when it is set up properly. Google says lazy-loaded images should load whenever they are visible on screen, without relying on a click or another action from the visitor. It also says not to lazy-load anything that is visible as soon as the page opens. The URL Inspection tool in Search Console shows whether Google loaded your images.

Can I choose which image Google shows beside my page?

You can suggest one. Google says its choice of preview image is completely automated, and that you can influence it by naming a preferred image in the page's code with the og:image tag or the primaryImageOfPage property. Choose a picture that is relevant to the page and represents it well.

Do product photos need anything extra?

They need product data to go with them. Google says an image is a required field for certain rich results to appear in Google Images. Our guide to product page SEO explains the product details that belong beside the photos.

See what your images are costing you

Send us your site and we will show you which pages load slowly, which images Google cannot read, and what we would fix first.

The authors

Who wrote and checked this guide

Jamiez Nguyen, Founder and CEO of Taskcover Agency

Written by

Jamiez Nguyen

Founder & CEO

Jamiez Nguyen founded Taskcover and leads strategy and client growth. He started it in 2017 as a team doing search work behind the scenes for other agencies, then opened it to businesses in the USA, Canada and Australia.

John Edward, CTO of Taskcover Agency

Reviewed by

John Edward

CTO

John Edward leads the technical side of Taskcover: how sites are built, how fast they load, and how search engines read them.

Updated Fact-checked About the people at Taskcover

Sources

Where the facts in this guide come from

Facts last checked on October 12, 2026.

  1. Google image SEO best practicesGoogle Search CentralChecked on October 12, 2026
  2. Decorative ImagesW3C Web Accessibility Initiative (WAI)Checked on October 12, 2026
  3. Optimize Largest Contentful Paintweb.dev (Google)Checked on October 12, 2026
  4. Optimize Cumulative Layout Shiftweb.dev (Google)Checked on October 12, 2026
  5. Fix lazy-loaded contentGoogle Search CentralChecked on October 12, 2026
  6. Image sitemapsGoogle Search CentralChecked on October 12, 2026
  7. Performance report (Search results): Overview and basic setupGoogle Search Console HelpChecked on October 12, 2026

Free SEO audit

Find out what search could bring your business.

Send us your website. We will show you where you stand, what is holding you back, and what we would do first.

Free, with no obligation.

  1. You send your websiteA short form. It takes about two minutes.
  2. We review itYour site, your competitors and what your customers search for.
  3. You get a clear planWhat to fix first, what it could bring, and what it would cost.

Taskcover uses necessary storage for security and forms. You can choose whether we use preferences, analytics, and marketing measurement.