Google SEO Advanced

Image SEO: filenames, alt text, size compression, and WebP

Images are the most overlooked SEO item on B2B websites. They make up over 40% of the average page's bytes, and alt text is the main signal for Google Image Search and screen readers. Counterintuitive call...

图片 SEO:文件名、alt、压缩与 WebPImage SEO: filename, alt, compression, WebP 图片占 B2B 页面字节的 40% 以上 —— 压缩比关键词更重要Images are 40%+ of page weight — compression beats keywords 要素Element 做法How 收益与阈值Payoff and threshold 文件名Filename 短横线分词,描述内容Hyphen-separated, describe content 对图片搜索影响小,别堆砌Minor signal, don’t stuff alt 文本Alt text 8 至 15 词,描述画面8-15 words, describe the image 图片搜索 + 无障碍双收益Image search + accessibility 压缩Compression 质量 80,按需裁剪Quality 80, crop to display size 体积 -60%,LCP 受益-60% size, helps LCP WebPWebP 2026 默认格式,PNG/JPEG 兜底Default in 2026, JPEG fallback 比 JPEG 小 25%-35%25-35% smaller than JPEG 首图优先级最高:LCP 不合格的页 80% 靠首图解决Prioritize hero image: 80% of poor LCP fixed by compressing above-the-fold image alt 文本不是关键词堆,是给盲人听的画面描述Alt text describes the image for screen readers, not keyword stuffing 反直觉:文件名塞关键词对图片搜索影响很小,alt 才是主信号Counter-intuitive: filename keywords barely matter; alt text is the real signal 装饰性图片 alt 留空(alt=””),不要写”分隔线”Decorative images use empty alt, not “divider”
The four parts of image SEO: filenames, alt text, compression, and WebP compared

Image SEO: filenames, alt text, size compression, and WebP

Bottom line first: Images are the most overlooked SEO item on B2B websites. They make up over 40% of the average page’s bytes, and alt text is the main signal for Google Image Search and screen readers. Here’s the counterintuitive part: stuffing keywords into image filenames barely moves your image search ranking. Writing clear alt text is what actually pays off. WebP files are 25% to 35% smaller than JPEG, making it the default format in 2026. About 80% of pages with an LCP over 2.5 seconds can fix it by compressing the hero image.

1. The two roles images play in SEO: image search and page performance

Many B2B websites treat image SEO as “stuff keywords into the filename.” That’s a misunderstanding. Images actually play two roles in SEO: a traffic source from Google Image Search, and the main drag on page load performance.

Here’s the counterintuitive part: stuffing keywords into filenames barely moves your image search ranking. Google mainly judges an image’s topic from page context, alt text, and the text around the image. Naming a file stainless-steel-flange-pn16.jpg is good practice, but naming it stainless-steel-flange-pn16-ansi-b16-5-industrial-flange.jpg won’t earn you a single extra image click.

What really affects SEO is file size. One uncompressed 2MB product image slows the whole page, dropping LCP from 1.8 seconds to 3.5 seconds, and you lose on both ranking and conversion. This is Core Web Vitals the most common point deduction.

Image SEO factor Direct impact on ranking Indirect impact on CTR and conversion
File name Very small None
Alt text Medium (image search) Benefits both accessibility and image search
File size and format Large (affects LCP) Faster loads, lower bounce rate
Dimensions and srcset Medium (mobile experience) Mobile traffic conversion
ImageObject structured data Small Rich media result display

and Media Asset Governance. That article covers naming, compression, and reuse workflows for images and video; this one focuses on the specific way to write images for SEO.

2. Filenames and alt text: what to write, what not to write

Filenames and alt text are often lumped together. The filename is read by servers and crawlers; alt text is read by screen readers and the image search index. They’re written differently.

Element Correct way to write it Wrong approach
File name stainless-flange-pn16.jpg IMG_2038.jpg、DSC_0001.jpg
Alt text Stainless steel flange PN16 pressure rating product photo flange flange flange stainless
Alt for decorative images alt=”” (empty) alt=”divider”, alt=”image”
Length Alt text 8 to 15 words Alt text as a whole paragraph
Language Match the page language English site, Chinese alt text

The core rule for alt text: imagine a screen reader is describing this image to a blind user. How would you say it? That is the Website accessibility (WCAG) requirement, and it is also the right way to do image SEO. Writing “Stainless steel flange PN16 pressure rating product photo” is enough. Do not write “This is an image showing a stainless steel flange with a PN16 pressure rating that meets ANSI B16.5, suitable for petrochemical pipelines” — that is keyword stuffing.

Decorative images (dividers, background patterns, icons) must have empty alt (alt=””). Do not write “divider”. A screen reader skips empty alt, but it will read out “divider”, which is just noise for blind users.

3. Size compression and WebP: thresholds and tools

Compression gives the best return on effort of anything in image SEO. A 2MB uncompressed product photo compressed to 200KB looks virtually identical to the eye, and load time drops from 4 seconds to 0.4 seconds.

Format Size vs JPEG Best for Compatibility
WebP quality 80 25% to 35% smaller 2026 default Supported by all modern browsers
AVIF 50% smaller Very slow network scenarios Weaker compatibility, needs JPEG fallback
JPEG quality 80 Baseline Fallback format All browsers
PNG 2 to 5 times larger Transparent backgrounds only All browsers

Three practical thresholds. Product hero images should be no wider than 1200px (anything larger is wasted); inline body images no wider than 1600px; thumbnails no wider than 400px. Use quality 80 across the board — quality 90 looks nearly identical to 80 but doubles the file size.

On the tooling side, WordPress sites can use ShortPixel or Imagify to convert to WebP automatically; self-hosted sites can batch process with the Sharp command line. A CDN can also do real-time format conversion, see Global CDN acceleration‘s image optimization strategy.

4. Hero image and LCP: why the hero image is the highest-priority image for SEO

The LCP (Largest Contentful Paint) metric in Core Web Vitals is the first image above the fold 80% of the time. Compressing that one image has a bigger impact on LCP than compressing 10 thumbnails at the bottom of the page.

Hero image optimization action Expected gain Implementation cost
Convert to WebP Size -30% Low (plugin does it)
Compress to quality 80 Size -60% Low
Explicit width/height CLS drops Low (template change)
fetchpriority=”high” LCP -0.5s Low (add attribute)
srcset multiple sizes 50% less mobile traffic Medium (generate multiple sizes)

Scenario 1: A product detail page hero image was originally a 2400px-wide, 1.8MB JPEG with an LCP of 3.8 seconds. After switching to 1200px wide, WebP quality 80, 220KB, plus fetchpriority=”high”, LCP dropped to 1.6 seconds and the main keyword ranking rose from 14th to 7th.

Scenario 2: A blog post hero image was a 1920px-wide cover PNG at 1.2MB. After converting to WebP it was 180KB, load time dropped from 2.4 seconds to 0.6 seconds, and mobile bounce rate fell from 65% to 41%.

Image localization for multilingual sites also needs to account for text embedded in graphics, see Charts and tables on multilingual sites Text inside images can’t be translated via alt text — you need a separate image for each language.

5. Common mistakes and pre-launch checklist

These are the five most common image SEO mistakes, and a single site-wide scan can catch every one of them.

Mistake How to diagnose Fix actions
All alt text is empty Scan the HTML and count the share of alt=”” Product images and hero images must have alt text
Uncompressed original images Count images over 300KB Batch convert to WebP at quality 80
Missing width/height Lighthouse report Add the attributes in the template to reduce CLS
Filenames like IMG_xxxx Scan the uploads directory Batch rename to descriptive names
Not using modern formats Check the Content-Type Turn on automatic WebP conversion at the CDN layer

Image structured data (ImageObject) gives marginal gains for B2B product pages, and you can launch it alongside Structured data (Schema) But it ranks below compression and alt text — cut file size first, then worry about rich media.

6. Image sitemaps, copyright fields and lazy loading

Many people think image SEO is done once the alt text is written and the images are compressed, but three things are still missing. The first is an image sitemap. Besides HTML sitemaps, Google also lets you list image URLs, captions, titles and license fields in a sitemap. If product images and infographics rely only on the img tags on the page and wait for Google to crawl them slowly, new images can take two to three weeks to show up in image search; after you submit an image sitemap, indexing usually drops to three to five days. Image search traffic on B2B industrial sites is only 5% to 15% of organic traffic, but that traffic has strong buying intent, so you can’t give it up.

The second is copyright and license fields. Schema’s ImageObject supports three fields — license, acquireLicensePage and creditText — that state who owns the image and whether it’s licensed for commercial use. Nobody cares about this day to day, but when AI vision models train on your images, clear copyright fields are your basis for claiming your rights after the fact. Conversely, if you use paid stock images without stating the license on the page, you always run the risk of the original creator filing a complaint and getting them taken down.

The third is the conflict between lazy loading and the LCP image. The LCP hero image must load eagerly with fetchpriority=”high”; only the other body images should use loading=”lazy”. A common mistake is adding loading=”lazy” site-wide, which delays the hero image too and slows LCP by a full second. To check, look for the “Largest Contentful Paint image was lazily loaded” warning in Lighthouse — if it appears, the hero image has been given lazy by mistake.

Gaps to close How to do it Benefit
Image sitemap List image URLs in the XML sitemap Speeds up image indexing by about two weeks
Copyright fields Add license to ImageObject Commercial licensing becomes traceable
Hero image loads eagerly Don’t add lazy to the LCP image LCP gets slower, not faster
Structured Data Add ImageObject to product images Rich media result display

Images on multilingual sites have a separate problem: text inside an image can’t be translated with alt text. If an infographic shows Chinese specs, the English version needs a new image with English labels, not an alt tag trying to translate the words in the picture. Localizing charts and diagrams is expensive, but on multilingual sites that skip it, native-speaking buyers spot machine-translated images instantly and trust takes a hit. For this workflow, see Charts and tables on multilingual sites.

FAQ

Do image filenames have to contain keywords?
Semantic naming is recommended, but don’t stuff keywords. stainless-flange-pn16.jpg is good practice; stainless-flange-pn16-ansi-b16-5-industrial-flange.jpg won’t win you a single extra image search click. Google judges image topics mainly from page context and alt text. The filename is only a weak signal.
How long should alt text be?
8 to 15 words in English, 15 to 30 characters in Chinese. The principle: imagine a screen reader describing this image to a blind user. Don’t write a whole paragraph, and don’t stuff keywords. For decorative images, leave alt empty (alt=””) rather than writing “divider”.
How much smaller is WebP than JPEG?
At the same quality, WebP is 25% to 35% smaller than JPEG, and AVIF is 50% smaller. By 2026 all modern browsers support WebP, making it the default format. Use a CDN or WordPress plugin to convert to WebP automatically, while keeping JPEG as a fallback for very old browsers.
What image file size in KB is acceptable?
The first image above the fold (the LCP image) should stay under 250KB, body images under 150KB, and thumbnails under 50KB. Use quality 80 across the board: the visual difference is nearly invisible, but the file is half the size of quality 90. Keep product hero images no wider than 1200px; anything larger is wasted.
How much does image SEO affect Google Image search traffic?
On B2B industrial sites, image search usually accounts for 5% to 15% of organic traffic, far less than on ecommerce sites. But the main value of image SEO isn’t image search, it’s LCP and AI visual understanding: compressing the hero image improves LCP, and writing good alt text improves accessibility and image indexing. Both pay off far more than image search traffic itself.
Which WordPress plugin should I use to optimize images automatically?
ShortPixel and Imagify both work. They compress automatically and convert to WebP, billed by number of images. The free tier covers 100 images a month; for a mid-sized B2B site, expect $10 to $20 a month. After installing, turn on WebP output, set quality to 80, and enable automatic srcset generation for multiple sizes. Three switches and you’re done.

Final thoughts

Image SEO priorities are clear: compress the hero image first to fix LCP, then write alt text for accessibility and image indexing, and only then worry about semantic filenames. Do these three things and you’re already ahead of 80% of B2B sites still uploading 2MB originals.

Three steps, three weeks: this week, run Lighthouse on 20 key pages and list every page with an LCP over 2.5 seconds. Next week, convert those pages’ hero images to WebP in bulk, compress them to under 250KB, and add width/height and fetchpriority. In week three, scan the site for product images with empty alt text and rewrite them using the rule “describe the image in 8 to 15 words.”

One line worth remembering: image SEO isn’t about stuffing keywords into filenames, it’s about getting your hero image under 250KB. Speed up, and rankings and conversions follow.

Cui Lishu
Cui Lishu Crater experts

Delivery · Operations Lead · Crater Delivery & Operations Team

Delivery & Operations Lead at Crater. Responsible for SEO execution, social media channel operations, and content distribution, with a knack for breaking down growth actions with data. Has overseen the delivery of multiple go-global projects, with a focus on the coordinated playbook across Facebook, Twitter, TikTok, YouTube, and SEO/GEO.

SEO executionContent operationsCase breakdowns
1106articles shared
84knowledge base articles