The Complete Guide to Ranking Your Images in Google (Step by Step)


Most websites treat images as decoration: export something from a design tool, upload it, move on. That’s a missed opportunity twice over. Images are usually the heaviest part of a page, so they decide how fast it loads. And they’re also content that Google can understand, index, and show in its own results, which means a well-prepared image can bring in traffic that your text alone never would.
This guide covers image SEO from start to finish, in the order you’d actually do it, with a free tool for each step.
Image SEO is everything you do to make images fast to load, easy for search engines to understand, and accessible to people using screen readers. Search engines can’t truly “see” a picture the way you do, so they lean on text clues: the file name, the alt text, the caption, the words around the image, and the topic of the page it sits on. At the same time, Google measures page experience, and oversized images are one of the most common reasons pages feel slow.
So the work splits into two halves: performance (format, size, compression, loading) and meaning (names, alt text, context, structured data). You need both.
Format decides how small a file can get before quality suffers.
Conversions you’ll use most: JPG to WebP, PNG to WebP, PNG to JPG, SVG to PNG, and JPG to AVIF if you want to go further.
Not sure which to pick for a specific image? The JPG vs PNG vs WebP vs AVIF comparison breaks it down by image type.
This is the step people skip, and it’s usually the biggest win. A 4000px photo displayed at 800px wide forces every visitor to download five times more pixels than they’ll ever see.
Find the largest width your layout actually renders the image at, then export slightly above that (a little extra covers high-density screens). Use the resize tool to set dimensions, or the crop tool if you only need part of the frame.
Always resize before compressing. Compression on a smaller image has far less to do, so you keep more quality at the same file size.
After resizing, compress. Moderate compression is invisible to the eye and can cut file size dramatically.
If a form or platform demands an exact limit, use a target-size tool instead of guessing: 20KB, 50KB, 100KB, 200KB, 500KB.
A realistic budget for most content images is a few hundred KB at most, and far less for small graphics. For a deeper walkthrough of the process, see how to reduce image file size without losing quality.
Google uses the file name as one of several clues about what an image shows. Camera defaults like IMG_4821.jpg tell it nothing. A descriptive name costs nothing and removes the guesswork.
Rules that work:
| Weak | Strong |
|---|---|
IMG_4821.jpg |
blue-ceramic-coffee-mug.webp |
screenshot-1.png |
webp-to-jpg-converter-screenshot.png |
final_final_v2.jpg |
team-photo-office-lahore.webp |
seo-image-seo-best-seo-tips.jpg |
image-seo-checklist.png |
The last row shows the trap: stuffing keywords into a file name looks spammy and helps nothing. Describe the image, don’t advertise on it.
Alt text is a short description inside the image’s alt attribute. It does two jobs: screen readers read it aloud for people who can’t see the image, and search engines use it to understand what the image depicts. It’s widely treated as the single strongest image signal on a page.
A simple formula: say what the image shows, in the context of the page, in one natural sentence.
alt="image", alt="photo", or alt="" on a meaningful imagealt="image seo best image seo guide image optimization" (keyword stuffing)alt="Screenshot of the JPG to WebP converter showing file size dropping from 2.4MB to 380KB"Rules:
alt="" so screen readers skip themYou can check length quickly with the character counter.
Google doesn’t evaluate an image in isolation. It also reads what surrounds it, so reinforce the subject:
This is why a “blue ceramic coffee mug” photo ranks better on a page about ceramic mugs than the same file dropped into an unrelated post.
Even perfectly compressed images can slow a page if they load badly. Three habits cover most of it.
1. Set width and height. Declaring dimensions lets the browser reserve space before the image arrives, which prevents the layout from jumping as the page loads.
2. Lazy-load below-the-fold images only. Native lazy loading defers off-screen images until the visitor scrolls near them:
<img src="blue-ceramic-coffee-mug.webp"
alt="Blue ceramic coffee mug on a wooden desk"
width="800" height="533"
loading="lazy">
The critical exception: never lazy-load the main image visible at the top of the page (often the Largest Contentful Paint element). Delaying it slows the exact thing visitors are waiting to see. Leave loading="lazy" off the hero image.
3. Serve responsive sizes. srcset lets browsers pick an appropriately sized file for each screen instead of sending the biggest one to everyone:
<img src="mug-800.webp"
srcset="mug-400.webp 400w, mug-800.webp 800w, mug-1600.webp 1600w"
sizes="(max-width: 600px) 400px, 800px"
alt="Blue ceramic coffee mug on a wooden desk"
width="800" height="533">
If you use WordPress, much of this is handled automatically, and the WordPress image optimization guide covers what to check on top of it.
Structured data helps search engines understand the page an image belongs to, and a clean sitemap helps them find everything.
An image-specific sitemap is mainly worthwhile for large sites or ones that load images with JavaScript. For a small blog with images in the HTML, a normal sitemap and good markup are usually enough.
Preview how your result will read in search with the SERP snippet preview, and check lengths with the SEO title checker and meta description checker. More tools for this stage are collected in the free SEO tools roundup.
When someone shares your page, the preview image is controlled by Open Graph tags, separate from the image in your article. A missing or badly cropped one makes a shared link look neglected.
Per-platform dimensions are in the social media image sizes guide.
Finish branding with a proper site icon: the favicon generator and favicon checker are covered in the favicon guide.
Run through this for any page you care about:
width and height set; srcset for responsive sizing| Task | Tool |
|---|---|
| Convert format | JPG to WebP, PNG to WebP |
| Resize / crop | Resize, Crop |
| Compress | JPG, PNG, WebP |
| Schema | Article, FAQ |
| Preview | SERP, OG |
What is image SEO?
Image SEO is optimizing images so they load fast, are understood by search engines, and are accessible to everyone. It covers format, size, compression, file names, alt text, context, loading behavior, and structured data.
Does alt text really help SEO?
Yes. Alt text is one of the main ways search engines understand what an image shows, and it’s essential for accessibility. Write one natural, descriptive sentence rather than a list of keywords.
What is the best image format for SEO?
WebP is the best general choice for photos because of its small file sizes and broad support. Use PNG or SVG for logos, icons, and graphics that need transparency or sharp edges.
How large should website images be?
Keep each as small as possible without visible quality loss. For most content images that means a few hundred KB at most, exported at the dimensions the page actually displays.
Should I lazy-load all my images?
No. Lazy-load images below the fold, but never the main image at the top of the page. Lazy-loading that one delays the most important paint and can hurt your Core Web Vitals.
Do image file names matter?
Yes, modestly. Descriptive, hyphenated, lowercase names give search engines extra context at no cost. Don’t stuff keywords into them.
Do I need an image sitemap?
Usually only on large sites or sites that load images through JavaScript. For a small site with images in the page HTML, a standard sitemap plus good markup is normally enough.
Every tool mentioned here runs directly in your browser with no sign-up. Browse the complete set on the all-tools page.
Every tool mentioned in this guide is free, works in your browser, and doesn't need an account.
Explore All Tools