Image SEO: the complete guide for your website
Short answer Image SEO means helping Google find, understand and quickly load your photos. Use a normal HTML image tag, put the photo next to text about the same thing, write a short alt text that says what it shows, and keep the file small. File names and structured data help a little. Real photos of your work help most.
Want help applying this to your business? Talk it through on a free 30-minute call.
Book a callWhat matters most for image SEO?
Three things, in this order: Google must be able to find the image, understand it, and load it fast. Google's image guide sums up the first two:
"Google extracts information about the subject matter of the image from the content of the page, including captions and image titles." (Google Search Central: Google image SEO best practices)
So the page around a photo does most of the work. A photo of a repaired roof on your roof repair page, with a caption, beats the same photo in a generic gallery.
| Step | What to do | How much it helps |
|---|---|---|
| Embed it properly | Standard HTML image tag (`img`), not a CSS background | Required: Google doesn't index CSS images |
| Place it in context | Next to text on the same topic, with a caption if useful | High |
| Alt text | A short, specific description | High: Google calls it the most important image attribute |
| File size and format | Resize, compress, use WebP or AVIF | Speed, which visitors notice first |
| File name | `kitchen-tile-backsplash.jpg`, not `IMG_0042.jpg` | Low: "very light clues", per Google |
| Structured data | Mark up the page's main image | Only for certain rich results and badges |
How do I write alt text for SEO?
Describe what the photo shows, the way you'd say it to someone on the phone. Alt text (the description stored with an image) is read aloud by screen readers and read by Google. Google says it uses alt text "along with computer vision algorithms and the contents of the page" to understand an image.
Google's own example shows the scale from bad to best:
| Version | Alt text |
|---|---|
| Bad | none |
| Bad (keyword stuffing) | a long list of dog words and breeds |
| Better | "puppy" |
| Best | "Dalmatian puppy playing fetch" |
For a business, that means "Technician installing a tankless water heater in a basement", not "plumber Denver best plumber water heater". Google warns that keyword-filled alt text "may cause your site to be seen as spam". If an image is a link, its alt text also works as the link's anchor text.
Do decorative images need alt text?
No. For pure decoration, such as a divider line or background texture, the W3C's accessibility tutorial says to give an empty alt (`alt=""`) so screen readers skip it. Empty is not the same as missing: leave the attribute in, with nothing inside. Accessibility rules for websites are covered in ADA website compliance.
What about the image title attribute?
Google lists "image titles" among the things it reads, so a title does no harm. But it shows only as a hover tooltip, which phones don't have. Anything a visitor needs to know belongs in a visible caption or the page text.
Do image file names matter?
A little. Google says the file name gives "very light clues" about the subject. Its advice: short but descriptive names, so `my-new-black-kitten.jpg` beats `IMG00023.JPG`. Separate words with hyphens, as Google's URL guide recommends, and make the extension match the real format. If you publish a page in another language, Google says to translate the file names too.
Rename before you upload. Renaming later changes the image's address, and Google has to find it again.
Which image format is best for SEO?
Any common one is indexed. Google Search supports "BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF" in an HTML image tag. The choice is about speed and looks:
| Image | Format |
|---|---|
| Photos of your work, team, premises | WebP or AVIF, with JPEG as the safe fallback |
| Logo, icons | SVG (stays sharp at any size) |
| Screenshot or graphic with transparency | PNG or WebP |
Google's WebP page says WebP photos are 25–34% smaller than comparable JPEGs, and lossless WebP 26% smaller than PNG. If you serve newer formats through the `picture` element, Google asks for a plain `img` tag with a `src` inside as the fallback.
How big should images be?
As big as they show on screen, and no bigger. A photo shown 800 pixels wide doesn't need to be 4,000 pixels wide straight off a phone. Google notes images are "often the largest contributor to overall page size". Resize first, then compress with a free tool such as Squoosh, and check the result with PageSpeed Insights, which Google's guide points to.
Two code details stop pages from jumping around and loading slowly:
- Width and height. web.dev says to "always include width and height size attributes" on images so the browser reserves the space. Missing sizes cause layout shift, which Google measures as part of Core Web Vitals.
- Responsive images. `srcset` lets a phone download a smaller copy. Google recommends always keeping a plain `src` as a fallback, since some crawlers don't read `srcset`.
How much speed affects ranking is its own question: see Core Web Vitals.
Should I lazy load images?
Yes, below the fold only. Lazy loading waits to fetch an image until the visitor scrolls near it. web.dev warns:
"Don't lazy-load images that are likely to be in-viewport when the page loads, especially LCP images." (web.dev: Browser-level image lazy loading)
The LCP image is usually your top banner photo, the biggest thing on screen at load. Google adds that lazy loading must load content "whenever it is visible in the viewport", not only after a click or a swipe, or Google may never see it. The browser's built-in `loading="lazy"` meets that.
Why aren't my images showing in Google?
Check these, in order:
- CSS background. Google doesn't index CSS images. Hero photos built as backgrounds are common on website builders.
- Blocked by robots.txt. A rule that blocks your image folder blocks the images. Google's sitemap guide reminds you that robots.txt mustn't disallow anything you want indexed.
- Loaded only by JavaScript. Add them to an image sitemap: Google says these help with images "that we might not otherwise find (such as images your site reaches with JavaScript code)".
- Several addresses for one image. Google asks you to reference a reused image "with the same URL" every time.
- Images on another domain. A CDN (a service that hosts files closer to visitors) is fine. Google allows other domains in image sitemaps and suggests verifying the CDN domain in Search Console.
An image sitemap can be its own file or tags added to your normal sitemap: "either approach is equally fine for Google". Each page entry can list up to 1,000 images. Google has removed the caption, title, geo-location and license tags, so only the image address counts.
Does structured data help images rank?
Not on its own. Structured data (code that labels a page's content for search engines) can make images eligible for rich results and badges in Google Images. Google says the image field is required for those badges in the types that support them. Two uses matter for most businesses:
- Choose the preview image. Google picks the thumbnail automatically, but you can suggest one with schema.org `primaryImageOfPage`, an `image` on the page's main item, or the `og:image` tag that social sites also use when a link is shared. Google says to avoid a generic image such as your logo, images with text, and extreme shapes.
- Show who owns a photo. License markup or IPTC photo metadata (details saved inside the image file) can earn the "Licensable" badge. Google says if the two conflict, it uses the structured data. IPTC also has a field that marks an image as AI-generated.
For the business-level markup itself, see local business schema markup.
How do I see my Google Images traffic?
In Google Search Console, open the Performance report and set Search type to Image. Google's help page says Image counts traffic "from results shown in the Google Images tab"; the Web type covers the standard search results. A walk-through of the other reports is in Google Search Console for a small business.
Does SafeSearch affect my images?
Only if your site has explicit content. Google detects explicit pages automatically. A site that has some can tag those pages with a `rating` meta tag set to `adult` or group them on a separate domain or subdomain, so the rest of the site isn't filtered for SafeSearch users.
Example
Illustrative cases with invented numbers.
A kitchen remodeler (US dollars)
Each project page uses 12 photos straight from a phone, 5 MB each. Resizing to 1,600 pixels and saving as WebP brings each under 300 KB. The top photo loads normally; the other 11 lazy load. Alt text becomes "Quartz countertop with white shaker cabinets after a remodel" instead of the empty field the site builder left.
A landscaper near Vancouver (Canadian dollars)
The home page hero is a CSS background, so Google never indexes it. The web designer switches it to a standard image tag with alt text, at no change to the look. Its C$15,000 patio project page gets its own before-and-after photos with captions.
A dental clinic
The same team photo is uploaded on 8 pages, each copy under a new file name. Pointing every page at one file address lets Google treat it as one image.
FAQ
Do Google Business Profile photos count as image SEO?
They're separate from your website. Google's Business Profile help asks for JPG or PNG files between 10 KB and 5 MB, at least 250 x 250 pixels, with 720 x 720 recommended, in focus and not heavily edited.
Can I use stock photos?
Google doesn't ban them. But a stock photo appears on many sites, and real photos of your jobs, staff and premises show customers who you are.
Do I need an image sitemap?
Usually not for a small site with normal image tags. Use one if images load by JavaScript or sit on another domain.
Can I stop Google showing my full-size images?
Yes. Google describes an opt-out of inline linking, which shows only a thumbnail in Google Images, or you can block images from search entirely.
Different for you?
- You want the full checklist for a service page, not just images: on-page SEO for service pages.
- Your pages load slowly even after fixing images: Core Web Vitals.
- You're choosing or leaving a website builder: Wix, Squarespace or WordPress for SEO.
- You want your photos and pages handled for you: SEO & GEO Agent.