Image SEO Guide: Alt Text, File Names, Compression and WebP for Faster Pages
Images make a page more useful, and they can also slow it down. This image SEO guide shows how to name, describe, compress and serve images so they help both visitors and search.

Image SEO means preparing your pictures so that search engines can understand them and visitors can load them quickly. For most small business sites, image SEO comes down to five habits: clear file names, helpful alt text, correct sizes, modern formats such as WebP and sensible loading. None of these needs advanced skills, and together they improve speed, accessibility and visibility in image search.
Related reading and services: how to speed up a WordPress website, Core Web Vitals for small business, website accessibility checklist, website speed optimization and SEO services.
Why image SEO matters
Images are usually the heaviest part of a web page. Large, unoptimised pictures slow loading, and slow loading hurts visitors on mobile data. Speed also affects how Google measures page experience, especially the time taken to show the main content of the page.
Images also appear in their own search results, and good ones can bring visitors who are looking for products, places or ideas. Finally, alt text makes pages usable for people who rely on screen readers, which is both kind and sensible.
Use clear file names
A file name gives search engines a small clue about the picture. Rename files before uploading, using short descriptive words separated by hyphens.
| Avoid | Use |
|---|---|
| IMG_4821.jpg | red-cotton-kurta-front-view.jpg |
| final-final2.png | dehradun-shop-front.webp |
| banner (1).jpg | website-design-process-diagram.webp |
Keep names lowercase, avoid spaces and do not stuff keywords. One or two accurate words are enough.
Write helpful alt text
Alt text is a short description of the image that is read aloud by screen readers and shown if the image fails to load. Search engines also use it to understand the picture.
- Describe what the image shows in plain words, usually under 125 characters.
- Include the main keyword only when it fits naturally.
- Do not begin with 'image of' or 'picture of'.
- For purely decorative images, leave the alt text empty so screen readers skip them.
- If the image contains text, include that text in the alt.
Example: Hand-stitched photo book open on a wooden table showing wedding pictures.
Resize before you upload
A phone photo can be 4000 pixels wide and several megabytes, while your layout may show it at 800 pixels. Resize images to the largest size they will actually appear, with allowance for sharp screens. For a content column, 1200 to 1600 pixels wide is often plenty. For small thumbnails, much less.
Always set width and height attributes so the browser reserves space and the page does not jump while loading.
Want your images and speed checked? Ragnar Studio's can audit your pages and fix heavy images. See website speed optimization or get a free quote.
Choose the right format
- WebP: a modern format with good quality at small file sizes, supported by current browsers. A strong default for photos and graphics.
- AVIF: even smaller files in many cases, though tool and browser support varies, so test before relying on it.
- JPEG: still fine for photos where WebP is not available.
- PNG: best for graphics that need transparency, but avoid it for large photos.
- SVG: ideal for logos and simple icons because it scales without losing sharpness.
Many WordPress plugins and hosting tools can convert uploads to WebP automatically. Check the output on your own site.
Compress without ruining quality
Compression reduces file size by removing data the eye barely notices. Use a plugin, an online tool or an image editor to export at a quality level that looks good and keeps files small. Many photos look fine at 75 to 85 percent quality.
- Resize to the display size.
- Export as WebP or JPEG at a moderate quality setting.
- Compare the result with the original at normal viewing size.
- Aim for most content images under about 150 KB where quality allows.
Load images sensibly
Use lazy loading so images below the first screen load only when needed. Do not lazy-load the main image at the top of a page, because that can delay the largest visible element. Provide responsive images so phones download smaller versions than large desktop screens. Most modern themes and plugins handle this, but check that they do.
Help search engines find your images
Place images in the page content as normal image elements, not only as backgrounds in code, so crawlers can see them. Surround important images with relevant text, captions or headings. Many SEO plugins add images to your sitemap automatically. For online stores, include clear product photos and use structured data for products where appropriate.
Quick checklist and mistakes
- File names are short, descriptive and lowercase.
- Alt text is helpful and honest.
- Images are resized, compressed and in WebP where possible.
- Width and height are set.
- Lazy loading is on except for the main top image.
Mistakes: uploading phone photos untouched, stuffing keywords in alt text, using images with text instead of real headings, and ignoring mobile speed. Results depend on your pages, competition and time.
Frequently asked questions
What is image SEO?
Image SEO is preparing images so search engines understand them and pages load fast. It covers file names, alt text, size, format, compression, loading and surrounding content.
Does alt text help rankings?
Alt text helps search engines understand images and supports image search. It also improves accessibility. It is one small signal among many, so write it for people first.
Is WebP better than JPEG?
WebP usually gives smaller files at similar quality, which helps speed. JPEG remains a safe fallback. Most current browsers support WebP.
How big should my images be?
Resize to the largest size shown on your page and compress. Many content images work well under about 150 KB, though large hero images may be somewhat bigger.
Should I lazy-load every image?
No. Lazy-load images below the first screen, but load the main top image normally so the page shows its main content quickly.
Do I need an image sitemap?
Not always. Many SEO plugins include images in the normal sitemap. It helps most for sites with many important images, such as stores and portfolios.
Can I use stock photos?
Yes, but unique, real photos usually build more trust. If you use stock images, make sure you have the right license and add accurate alt text.
Image SEO is mostly good housekeeping. Fix the top ten images on your most visited pages first, and you will often see a visible speed improvement.
Free quote
Tell us about your project
Fill this short form and send it on WhatsApp. We reply with questions or a quote. Nothing is charged on the website.
- Takes about two minutes
- Goes straight to Ragnar Studio's on WhatsApp
- Prefer email? Write to info@ragnarstudio.com
Ready to start your project?
Tell us what you need. We reply on WhatsApp with questions, next steps and a quote.