Get A Quote
Image SEO Guide: Alt Text, File Names and Compression

Blog

Image SEO Guide: Alt Text, File Names and Compression

Image SEO Guide: Alt Text, File Names and Compression

Images make pages more engaging, but they also bring two SEO opportunities: appearing in Google Images and helping pages load faster. Large, unnamed images with no description waste both.

Why Image SEO Matters

  • Images can bring extra traffic from Google Images and Lens.
  • Alt text helps people who use screen readers.
  • Smaller images improve page speed and user experience.
  • Clear images help search engines understand your page.

1. Write Helpful Alt Text

Alt text describes what an image shows. Keep it short and natural.

  • Describe the image in a sentence or less, about 125 characters at most.
  • Include a keyword only if it genuinely fits.
  • Do not start with “image of” or “picture of”.
  • Leave alt text empty for purely decorative images.

Good example: “Team member testing a mobile app on a smartphone”. Poor example: “app app development best app company”.

2. Use Descriptive File Names

Rename files before uploading. Use lowercase words separated by hyphens, such as wordpress-speed-test-results.jpg instead of IMG_4821.jpg.

3. Choose the Right Format

  • WebP: small files with great quality. A strong default.
  • AVIF: even smaller, with growing support.
  • JPEG: good for photos where WebP is not possible.
  • PNG: for graphics that need transparency.
  • SVG: for logos and icons that scale perfectly.

You can convert images in bulk. See our guides on converting WordPress images to WebP and bulk image conversion with PHP.

4. Resize and Compress

Do not upload a 5000 pixel image to display at 800 pixels. Resize to the largest size needed, then compress. Aim for most content images under 150 KB where quality allows. If thumbnails look wrong after a theme change, read how to regenerate images in WordPress.

5. Use Responsive Images

Provide different sizes with the srcset attribute so phones download smaller files. WordPress does this automatically for images in the media library.

6. Lazy Load Below-the-Fold Images

Use loading=”lazy” for images further down the page, but not for the main image at the top, which should load immediately. Always set width and height to avoid layout shifts.

7. Add Captions and Context

Place images near relevant text. Captions are well read and give extra context for search engines.

8. Include Images in Your Sitemap and Use Structured Data

Make sure images are crawlable and not blocked in robots.txt. For products and articles, structured data can reference the main image.

9. Use Original Images Where You Can

Real photos of your team, work and products build trust and stand out from stock images. See our E-E-A-T guide.

Quick Checklist

  1. Descriptive file name.
  2. Helpful alt text.
  3. WebP or AVIF format.
  4. Right dimensions and compressed.
  5. Lazy loading and set dimensions.
  6. Placed near relevant content.

Frequently Asked Questions

Does alt text affect rankings?

It helps Google understand the image and the page, and it supports accessibility.

Should every image have alt text?

Every meaningful image should. Decorative images can have empty alt text.

Is WebP better than JPEG?

Usually, yes. It gives smaller files at similar quality and works in all modern browsers.

About Author

Shiva Sheshendra

Senior Web Developer / Senior PHP Developer / Full Stack Developer

“Web Development, Website Maintenance, Server Management, On-Page SEO, Security, and Malware Removal”

Recent Projects

Websites & Applications We’ve Built

Here are some of the real-world web and application projects we’ve designed and developed for healthcare, businesses, and growing organizations. Each project focuses on performance, security, and long-term reliability.

Request A Callback

Have a Development Requirement?

Share your requirements and we’ll help you plan the right technical solution.