Home Converter Compressor Guides About Privacy Policy

How to Optimize Images for SEO

SEO analytics dashboard with image optimization metrics shown

Images are a significant and often overlooked SEO opportunity. Properly optimized images drive traffic from Google Image Search, improve Core Web Vitals scores, and contribute to overall page ranking. Here's a complete checklist for image SEO in 2025.

Use Descriptive File Names

Before you upload any image, rename the file to describe its content using keywords. Replace DSC_0042.jpg with red-leather-hiking-boots-trail.jpg. Google's image crawler reads file names as the first signal of image content. Use lowercase letters, separate words with hyphens (not underscores), and include your target keyword naturally. This is one of the easiest SEO wins and takes seconds per image.

Write Meaningful Alt Text

Alt text (the alt attribute on <img> tags) serves two SEO purposes: it tells Google what an image depicts, and it's read aloud by screen readers for visually impaired users. Good alt text is specific and descriptive: "Red leather hiking boots on a mountain trail" is far better than "boots" or "IMG_42." Include your target keyword where it fits naturally, but never keyword-stuff (don't write "best red leather hiking boots buy cheap red leather hiking boots").

Compress images for better Core Web Vitals

Faster images = better LCP score = higher rankings. Free, instant, no upload.

Open Free Compressor →

Optimize File Size for Core Web Vitals

Google's Core Web Vitals include Largest Contentful Paint (LCP) — the time until the biggest visible element loads. For most pages that element is an image. Google's benchmark: LCP under 2.5 seconds is "good." Images are the leading cause of poor LCP. Compress all images to the minimum acceptable quality (80–85% for JPEG/WebP) and resize to actual display dimensions. Each second faster your LCP is adds roughly 1%+ to conversion rates.

Use Modern Formats (WebP)

Google's PageSpeed Insights actively penalizes pages for serving legacy formats when better alternatives exist. Switching from JPEG to WebP reduces file sizes by 25–35% while maintaining visual quality. Use the <picture> HTML element to serve WebP to modern browsers with a JPEG fallback: this gives you the best of both worlds — modern format for 97% of users, safe fallback for the rest.

Add Structured Data for Product Images

For e-commerce and recipe sites, adding Schema.org structured data (JSON-LD) that references images can earn rich results — image carousels and panels in Google Search. At minimum, include an image property in your product, article, or recipe schema pointing to a high-quality image URL. Google recommends images of at least 1200px wide for rich results.

Frequently Asked Questions

125 characters or less is the standard guideline. Be descriptive but concise. If an image is purely decorative (no informational value), use an empty alt attribute: alt="".
Indirectly, yes. Slow pages from large images hurt Core Web Vitals scores, which are a ranking factor. Keeping images small helps page speed, which helps rankings.
Yes for image-heavy sites (e-commerce, photography, news). A Google Image Sitemap helps crawlers discover images on JavaScript-rendered pages and multi-level URLs they might otherwise miss.