How to Optimize Images for SEO (2026 Step-by-Step)
Images can make or break a page’s SEO. Done right, they speed up your site, win traffic from Google Images, and reinforce relevance. Done wrong, they bloat load times and get ignored. This guide walks through exactly how to optimize images for SEO in 2026 — from file names and alt text to compression, formats and structured data.
Why Image SEO Matters in 2026
Images do three jobs for SEO. They drive traffic directly from Google Images, they affect page speed (a core ranking and user-experience factor), and they add relevance signals that help search engines and AI understand your content. Most sites neglect at least one of these — which means image optimisation is low-hanging fruit.
Unoptimised images are the single most common cause of slow pages. Fixing them often improves Core Web Vitals more than any other single change — and faster pages rank and convert better.
Step 1: Use Descriptive File Names
Before you upload, name the file for what it shows. Search engines read file names as a relevance signal.
- Bad:
IMG_4821.jpg— meaningless. - Good:
blue-running-shoes-flat-feet.jpg— descriptive, keyword-relevant. - Use hyphens between words, not underscores or spaces.
- Keep it natural — describe the image; don’t stuff keywords.
Step 2: Write Alt Text the Right Way
Alt text describes an image for screen readers and search engines. It’s essential for accessibility and a genuine ranking signal for image search.
- Describe the image accurately as if to someone who can’t see it.
- Be specific — "golden retriever puppy sitting in grass" beats "dog".
- Include a relevant keyword naturally only where it genuinely fits.
- Don’t keyword-stuff or start with "image of" — it’s implied.
- Leave purely decorative images with empty alt ("") so screen readers skip them.
Get the Free 50-Point SEO Checklist
Before you enrol in any SEO course, download the professional checklist to understand exactly what good SEO implementation looks like.
Step 3: Compress and Right-Size Files
This is where the biggest speed wins live. Most images are far larger than they need to be.
- Resize to display dimensions. Don’t serve a 4000px image in a 800px slot — resize first.
- Compress every image. Use a compression tool to cut file size 50–80% with no visible quality loss.
- Aim for small files. Most web images should be well under 200KB; many can be far smaller.
- Automate it where possible (a CMS plugin or build step) so every upload is optimised.
Step 4: Choose Modern Formats and Dimensions
- Use WebP (or AVIF) where supported — they’re much smaller than JPEG/PNG at the same quality.
- JPEG for photos, PNG for graphics needing transparency, as fallbacks.
- Set explicit width and height attributes so the browser reserves space — this prevents layout shift (a Core Web Vitals factor).
- Serve responsive images (srcset) so phones get smaller files than desktops.
Step 5: Lazy Loading, Image Sitemaps and Schema
- Lazy-load below-the-fold images (loading="lazy") so they load only when needed — faster initial render.
- Don’t lazy-load your main above-the-fold image — it should load immediately.
- Include images in your sitemap (or an image sitemap) to help Google discover them.
- Add relevant structured data — product, recipe or article schema that references your images can enhance how they appear.
For the broader picture, see our technical SEO checklist and on-page SEO guide.
Frequently Asked Questions
Does alt text really help SEO?
Yes — it’s a ranking signal for image search and is essential for accessibility. Write it to describe the image accurately, with a relevant keyword only where natural.
What’s the best image format for SEO?
WebP (or AVIF) for most uses — they’re much smaller than JPEG/PNG at the same quality, which helps page speed. Keep JPEG/PNG as fallbacks where needed.
How small should my images be?
As small as possible without visible quality loss. Most web images should sit well under 200KB; resize to display size and compress every file.
Will optimising images speed up my site?
Almost always. Images are the most common cause of slow pages, so compressing and right-sizing them often gives the biggest Core Web Vitals improvement.
Master Every On-Page Detail
Image optimisation is one of dozens of on-page factors that compound into rankings. The AI SEO Masterclass teaches the complete on-page and technical system — plus GEO for AI search — with checklists you can apply to any site, for a one-off $397 with lifetime access.
On-page, technical, content and GEO — the full modern SEO skillset with reusable checklists. Enrol in the AI SEO Masterclass — $397 USD →
Related reading: On-page SEO guide · Technical SEO checklist · How to do an SEO audit.