Image SEO: How File Names, Alt Text and Compression Rank You Higher
Image SEO: How File Names, Alt Text and Compression Rank You Higher
Image SEO is the part of search optimisation most sites get half right and never finish. They upload photos, add alt text if they remember, and stop there. Meanwhile, the median mobile homepage now carries around 911 KB of images (2025 Web Almanac), and on 76% of mobile pages the element Google times for Largest Contentful Paint is an image. That means the single biggest ranking lever on most pages is not a headline or a keyword — it is a JPEG. Get compression, dimensions, formats, file names and alt text right, and your pages load faster, your Core Web Vitals pass, and Google Image Search starts sending you free traffic. This guide is the practical checklist we use ourselves: what to fix, in what order, with before/after size examples you can copy.
Key takeaways
- Image SEO = faster pages + clearer context for Google. Compress every image, serve it in a modern format, give it a descriptive file name and helpful alt text.
- Images decide your LCP score. The 2025 Web Almanac found the Largest Contentful Paint element is an image on 76% of mobile pages and 85.3% of desktop pages.
- Format choice is a bigger win than quality fiddling. WebP cuts file size by roughly 25–35% versus JPEG; AVIF goes 30–50% smaller at the same visual quality.
- Alt text and file names are indexing work, not decoration. Descriptive names and alt text help your images rank in Google Image Search, which drives real traffic.
- Never serve a camera-size file to a browser. Resize to the display size first, then compress — compression on an already-oversized file wastes most of its power.
What image SEO actually is
Image SEO is the practice of making your site’s images load quickly and speak clearly to search engines. It has two halves. The technical half covers file size, dimensions, format and delivery — everything that decides how many kilobytes a visitor downloads. The semantic half covers file names, alt text, captions and surrounding content — everything that tells Google what the image shows and why it belongs on the page.
Most guides treat these halves as separate jobs. They are not. A 4 MB hero image with perfect alt text still fails Core Web Vitals; a 60 KB hero image with a file name of IMG_20240612_final2.jpg still wastes a ranking opportunity. The checklist below does both, in the order that gives you the biggest measurable result first.
Why images decide your rankings: speed, LCP and user behaviour
Google’s page-experience signals include Core Web Vitals — three metrics collected from real Chrome visits, of which Largest Contentful Paint (LCP) measures when the largest visible element renders. Google wants LCP under 2.5 seconds. The 2025 Web Almanac (HTTP Archive) reports that the LCP element is an image on 76% of mobile pages and 85.3% of desktop pages, yet only 62% of mobile pages reach a good LCP, and barely half of mobile sites pass all three Core Web Vitals.
Here is the part most sites can fix today: among LCP images, 57% are still JPEGs, while WebP sits at 11% and AVIF below 1%, and around 16% of pages lazy-load their LCP image — actively delaying the very element Google is timing. Those numbers come from the same 2025 Web Almanac page-weight data, and they describe a site that is slow because of choices, not because of budget.
The mechanism is simple. Page weight and LCP move together: the lightest pages pass LCP at 82% on desktop and 72% on mobile; pages in the median 2–3 MB range pass at only 71% and 59% respectively (HTTP Archive, 2025). Images are typically the largest slice of that weight — the median mobile homepage used 911 KB of images, and at the 90th percentile it was over 6 MB. Every oversized photograph is directly converting into a slower LCP, a lower Core Web Vitals score, and a weaker ranking signal. And the user side agrees: on slow mobile connections, a 500 KB image takes roughly four seconds to load while a 250 KB AVIF takes about two — the difference between a bounce and a conversion (Kitmul, 2026, summarising independent tests).

Step 1: Compress every image before it goes live
Compression is the highest-leverage image SEO task because it touches both halves of the equation: smaller files load faster (technical) and you can compress in bulk without touching your content (operational). Before you upload any image, run it through a compressor. Aim for a visible-quality reduction of 60–80% on photographs.
Two practical rules keep you out of trouble:
- Compress on upload, keep the original. Compress at a quality level around 75–82 for photographs so the image looks identical at display size, and archive the uncompressed original in case you need to re-compress later.
- Compress the right size, not the camera size. Resizing is not compression — an image that displays at 800 px wide should be 800 px wide in the file. Compressing a 5,000 px original is polishing a mistake.
The size differences are dramatic rather than marginal. Typical independent measurements (including tests published by Netflix, Cloudflare and Google) put AVIF 30–50% smaller than JPEG at equal perceived quality, and WebP 25–35% smaller — meaning a 1 MB JPEG hero can realistically become a 200–350 KB file with no visible change. Start your compression workflow with a free tool before anything else: Fileoraa’s compress image to KB tool squeezes photographs down to your target size in seconds, right in the browser.

Step 2: Serve modern formats — WebP first, AVIF where it counts
Format selection is the single decision with the biggest kilobyte return. The 2025 Web Almanac’s format data makes the hierarchy clear: on desktop home pages, JPEG files span from 3 KB at the 10th percentile to 278 KB at the 90th, while WebP spans 1 KB to 97 KB and AVIF just 1 KB to 37 KB. Same images, radically different weight, depending only on the container.
Use this decision table when you optimise images for SEO:
| Image type | Best format | Why |
|---|---|---|
| Photographs, hero images, product shots | AVIF or WebP | Lossy compression designed for photographic detail; 25–50% smaller than JPEG at the same quality |
| Graphics, logos, illustrations, text in images | WebP (lossless) or SVG | Crisp edges without JPEG artefacts; SVG is ideal for vector shapes |
| Screenshots and UI captures | WebP or PNG-8 | Flat colours compress well; use full PNG only when pixel-perfect fidelity matters |
| Fallback for very old systems | JPEG / PNG | Keep a legacy copy via the <picture> element, not as your primary file |
In practice, serve AVIF or WebP with a JPEG fallback using the HTML <picture> element — the browser picks the first format it understands, so modern visitors get the light file and nobody gets a broken image. Converting a whole media library is exactly what batch tools are for: Fileoraa’s PNG to WebP converter turns bulky PNGs into web-ready files in one click, no software to install.
Step 3: Write file names and alt text that describe the image
This is the semantic half of image SEO, and it is where “optimize images for SEO” becomes literal: you are giving Google text it can index. Search engines cannot see your photograph — they read the file name, the alt attribute, and the surrounding content. Treat all three as ranking assets.
File name rules
- Describe the content in 3–5 hyphenated words.
red-running-shoes-side-view.jpgbeatsIMG_4829.jpgand beatsfinal-final-v2.jpg. - Use lowercase and hyphens only. Underscores and mixed case are harder to parse and look sloppy in image URLs.
- Put the topic keyword near the front when it is genuinely accurate — not stuffed. A file named
image-seo-compression-example.jpgis fine;image-seo-image-seo-best-image-seo.jpgis spam. - Rename before upload. Fixing file names after publishing means redirecting image URLs, which most sites never bother to do.
Alt text rules
- Write one sentence describing what the image shows as if to someone who cannot see it: “Bar chart comparing page load time before and after WebP compression” — not “chart”.
- Include the keyword only where it fits naturally. Alt text exists for accessibility first; Google rewards it because screen-reader-friendly descriptions happen to be precise.
- Keep it under ~125 characters so screen readers do not get cut off mid-sentence.
- Leave decorative images empty (
alt="") so assistive technology skips them instead of announcing noise. - Never use “image of”, “picture of” or “photo of”. Screen readers already announce it is an image.

The full image SEO checklist, in order
Work through this list for every image on your important pages — homepage, category pages, top posts, product pages. It is ordered by impact per minute of effort:
- Resize to display size. Measure the rendered width in the browser, then output the file at that width (or 2× for high-DPI displays). A 4,000 px photo in a 800 px slot is pure waste. Use Fileoraa’s image resizer to set exact dimensions.
- Compress at 75–82 quality. Target a 60–80% size reduction on photographs with no visible change at display size.
- Convert to WebP or AVIF. Serve the modern format with a legacy fallback via
<picture>. - Rename the file descriptively. Lowercase, hyphens, 3–5 words, topic near the front.
- Write real alt text. One specific sentence; keyword only where natural.
- Add width and height attributes to every
<img>so the browser reserves space and you avoid Cumulative Layout Shift (the third Core Web Vital). - Lazy-load below-the-fold images only. Add
loading="lazy"to images further down the page — but never lazy-load your LCP/hero image; give itfetchpriority="high"instead. - Put context around the image. A relevant caption and a paragraph that mentions what the image shows help Google connect image to topic.
- Add images to your sitemap. Image sitemaps (or the
<image:image>extension in your XML sitemap) tell Google about images it might otherwise miss, especially those loaded via JavaScript. - Re-measure. Run PageSpeed Insights before and after; LCP should drop noticeably, and the “Serve images in next-gen formats” and “Properly size images” audits should go green.
Before/after: what good image SEO looks like in kilobytes
Numbers make the case faster than advice. Here are realistic before/after figures for a typical blog hero image (1,600 × 900 px), based on the format benchmarks cited above:
| Stage | Format & size | File weight |
|---|---|---|
| Before: straight from the camera/design tool | JPEG, 4,000 × 2,250 px | ~3.2 MB |
| After step 1: resized to display width | JPEG, 1,600 × 900 px | ~480 KB |
| After step 2: compressed at quality 80 | JPEG, 1,600 × 900 px | ~150 KB |
| After step 3: converted format | WebP, 1,600 × 900 px | ~95 KB |
| Best case: AVIF | AVIF, 1,600 × 900 px | ~65 KB |
The same photograph goes from 3.2 MB to under 100 KB — a 97% reduction — with no change anyone can see on screen. On a page whose LCP is that hero image, that single change can move LCP by a second or more on a mobile connection, which is often the difference between a passing and failing Core Web Vitals score.
Image SEO FAQ
Does image compression affect Google rankings?
Indirectly, but powerfully. Google confirms Core Web Vitals are ranking signals, and the 2025 Web Almanac shows images are the LCP element on 76% of mobile pages. Smaller, compressed images load faster, which improves LCP and page experience — the signal Google rewards. Compression alone will not outrank better content, but it wins ties and keeps visitors from bouncing.
What is the best image format for SEO in 2026?
WebP is the safest default: 25–35% smaller than JPEG with near-universal browser support. AVIF compresses further — 30–50% smaller than JPEG at the same quality — and is now supported by all major browsers, so use it for large hero and product images. Serve either with a JPEG fallback via the <picture> element.
How do I write alt text for SEO?
Describe exactly what the image shows in one sentence, under about 125 characters, as if explaining it to someone who cannot see it. Include your keyword only when it describes the image naturally. Skip “image of” prefixes, and leave decorative images with an empty alt="".
Should I rename image files before uploading?
Yes. Use 3–5 lowercase hyphenated words that describe the image, for example webp-vs-jpeg-file-size-chart.webp. Google reads file names as a relevance signal, and descriptive names also make your media library searchable. Rename before upload — renaming later means changing URLs.
Do images in Google Image Search drive real traffic?
Yes — for many sites, image search is a meaningful secondary channel. Well-named, well-described images with descriptive file names and alt text are eligible to rank there, and image results increasingly surface in main search results and AI overviews. Treat every image as a potential entry point, not decoration.
How small should my images be?
There is no single number, but useful targets: hero images under 200 KB, in-content images under 100 KB, thumbnails under 30 KB. If a photograph is heavier than that at display size, resize or compress further — quality 75–82 in WebP/AVIF is visually identical to the original for nearly all web use.
Start with the biggest file on your most important page
Image SEO rewards a simple habit: resize, compress, convert, rename, describe. Do it once per image and it pays off on every visit. If you want the fastest start, open your homepage, find the heaviest image, and run it through Fileoraa’s free image compressor — then resize it to its display size with the image resizer and convert it to WebP with the PNG to WebP converter. Three tools, five minutes, and your LCP will thank you.
