Skip to content

Image SEO Optimization: Alt Text, Compression, and Best Practices

Last Updated: August 22, 2026

Images make content more engaging, but they also represent one of the biggest opportunities for SEO improvement. Properly optimized images load faster, rank in Google Image Search, improve accessibility for screen reader users, and contribute to your page's overall relevance signals. Image compression is one of the fastest ways to improve your Core Web Vitals, especially LCP.

This guide covers every aspect of image SEO: writing effective alt text, compressing images for speed, choosing the right file format, and using structured data for image results.

Why Image SEO Matters

Google Image Search drives significant traffic that many sites ignore. According to Google, images account for roughly 22% of search results. Sites that optimize their images capture this traffic while sites that do not leave it on the table.

  • Page speed. Uncompressed images are the most common cause of slow page loads. Reducing image file sizes is often the single fastest way to improve Core Web Vitals.
  • Accessibility. Alt text describes images for visually impaired users who rely on screen readers. This is also a legal requirement under WCAG guidelines.
  • Relevance signals. Google reads alt text, filenames, and surrounding text to understand what an image depicts and how it relates to the page topic.
  • Image search rankings. Descriptive alt text and optimized filenames are the primary factors that determine whether your images appear in Google Image Search.

How to Write Effective Alt Text

Alt text (alternative text) is the text that replaces an image when it cannot be displayed. It is read by screen readers, search engines, and browsers when images fail to load.

  • Be specific and descriptive. "Golden retriever catching a frisbee in a park" beats "dog photo" every time.
  • Include your target keyword naturally. If the image is relevant to your page's keyword, include it in the alt text. Do not stuff keywords.
  • Keep it under 125 characters. Screen readers may truncate longer alt text.
  • Do not start with "image of" or "photo of". Screen readers already announce it as an image. Start directly with the description.
  • Use the image alt text checker to audit your existing images for missing or poor alt text.

Alt Text Examples

  • Good: alt="Blue running shoes with white sole on wooden floor"
  • Bad: alt="shoes shoes running shoes buy shoes best shoes"
  • Bad: alt="" (empty alt text, unless the image is purely decorative)
  • Good: alt="Email marketing campaign performance dashboard showing 42% open rate"

Compress Images Without Losing Quality

Image compression reduces file size while maintaining acceptable visual quality. This is the single most impactful page speed optimization for most sites.

  • Use modern formats. WebP and AVIF offer 25-50% smaller files than JPEG at comparable quality. Most modern browsers support them.
  • Resize to actual display size. Do not upload a 4000px wide image if it will display at 800px. Resize it first.
  • Target under 100KB per image. Most images on a well-optimized page should be under 100KB. Hero images may be larger but should still be compressed aggressively.
  • Use compression tools. TinyPNG, Squoosh, and ImageOptim can reduce file sizes by 40-70% with no visible quality loss.
  • Implement lazy loading. Add loading="lazy" to images below the fold so they load only when the user scrolls to them.

Choose the Right File Format

Different formats serve different purposes. Choosing the right format for each image type saves significant bytes.

  1. JPEG for photographs and complex images with many colors. Offers good compression with adjustable quality.
  2. PNG for images that need transparency or sharp edges like logos and icons. Larger files but lossless quality.
  3. WebP as a modern alternative for both use cases. Smaller files than JPEG and PNG with comparable quality. Use as the default for new images.
  4. SVG for logos, icons, and simple illustrations. Vector format scales infinitely with tiny file sizes.
  5. AVIF for the highest compression ratios. Growing browser support makes it a strong choice for hero images.

Use Descriptive Filenames

The image filename is another relevance signal that search engines read. A descriptive filename helps Google understand the image content.

  • Good: blue-running-shoes-nike-pegasus.jpg
  • Bad: IMG_4523.jpg or photo-2026-03-15-093042.jpg
  • Use hyphens to separate words, not underscores. Google treats hyphens as word separators but concatenates underscores.
  • Keep filenames short but descriptive. Include the primary keyword if relevant.

Add Image Structured Data

Structured data for images helps Google understand the image context and can unlock rich results in image carousels and recipe cards.

  • Add image property to your Article, Product, or Recipe schema.
  • Use the schema validator to confirm the markup is valid.
  • For recipe sites, implement Recipe schema with required image properties for recipe rich results.

Audit Your Images Now

Run the free image alt text checker on your most important pages to identify images with missing, empty, or poor alt text. Fix those first, then compress your largest images. These two steps alone can improve both your image search traffic and your page speed scores.

Make image optimization part of your content publishing workflow. Every new image should be compressed, named descriptively, and given proper alt text before it goes live.

Related Articles

Related Tools