How to Optimize Images for Google: A Practical Image SEO Guide
Images are a search surface twice over: they can rank in Google Images on their own, and they quietly decide how fast your pages load - which Google measures and rewards. Image SEO is the craft of serving both: files that are easy for Google to understand and light enough not to slow the page down. This guide covers the parts that genuinely move the needle, in the order they matter. It deliberately skips the tricks; anything that reads like a trick stops working, and sometimes backfires.
1. Name the file like you mean it
Google reads the file name as a first clue about the image. red-running-shoes-side-view.jpg tells it something; IMG_4021.jpg tells it nothing. Rename before you upload, because renaming afterwards changes the URL and breaks links. Keep names short, descriptive and hyphenated, in plain words a human would use. One warning that matters: a descriptive name is a label, not a billboard - a name stuffed with every keyword you hope to rank for describes nothing and reads as spam to both algorithms and people.
2. Write alt text that describes, not sells
Alt text exists first for accessibility: screen readers speak it aloud to visitors who cannot see the image. That purpose is also the correct SEO strategy - Google uses alt text to understand the image, and text written to genuinely describe ("golden retriever puppy chewing a stick on grass") serves both audiences. Text written to sell ("best cheap dog toys buy puppy toys online") serves neither, and can hurt: it misleads visually impaired visitors and signals stuffing. Practical rules: one plain sentence; say what is in the picture, not what you wish it ranked for; if the image is purely decorative, an empty alt attribute is the correct, professional choice.
3. Win the speed half: size and format
The largest ranking effect of images is indirect and mechanical: heavy images slow pages, and page speed - through Core Web Vitals, especially Largest Contentful Paint - is a measured ranking input. So the most valuable image SEO is unglamorous arithmetic: serve the image at the dimensions its slot needs (twice the display width for sharp screens, no more), in a modern format, compressed once. Our guides to image sizes for websites and the format-versus-SEO relationship cover the numbers in depth; the tools are Resize Image, JPG to WebP and Compress JPG. Check any candidate's likely weight before publishing with the Image Size Calculator.
4. Help Google understand the page around the image
Google reads context, not just files. An image surrounded by a relevant caption, a descriptive nearby heading and a page whose title matches its topic is understood far better than the same image dropped into an unrelated page. This is not a loophole - it is how relevance works. Put the image where it illustrates the text, write the caption you would write for a reader, and let the file name and alt text agree with both.
5. Structured data: the basics, honestly
Structured data (Schema.org markup) can make your pages eligible for rich results - product images with prices, recipe images in carousels, and similar enhancements. The honest scope: it helps Google categorize content it can already see; it does not manufacture rankings, and markup that describes things not on the page is a policy violation, not a tactic. If your pages sell products or publish recipes, adding the matching schema is worth an afternoon. For a tools or content site, correct titles, captions and fast pages return far more.
What does not work
- Keyword-stuffed file names and alt text - a negative, not a neutral, for the reasons above.
- Hidden images or text meant only for crawlers - a spam signal, full stop.
- Hotlinking other sites' images - you inherit their speed, their uptime, and their right to change the file.
- Re-uploading the same image under many names hoping one ranks - duplicates compete with each other, not with rivals.
Image SEO, done right, is boring in the best way: name files honestly, describe them plainly, size them correctly, and keep the page fast. Google's systems are built to reward exactly that - because it is also what your visitors wanted all along.
Frequently asked questions
Does image format affect my Google ranking?
Not directly - no format is a ranking signal by itself. The effect runs through speed: lighter formats such as WebP load faster, and load speed is measured through Core Web Vitals. Choose the format for weight and compatibility, and the ranking effect follows.
How long should alt text be?
One plain sentence is the working rule - long enough to describe the image to someone who cannot see it, short enough to be spoken naturally by a screen reader. If you are writing a second sentence, it probably belongs in a caption instead.
Do I need an image sitemap?
Only in special cases: images loaded by scripts, galleries Google might not crawl through, or very large media libraries. For a normal site whose images sit in ordinary pages, a standard sitemap plus descriptive names and alt text is enough.