📷
SEO & marketing

Image File Names and Sizes: Preparing Images for SEO and Speed

26.11.2026
← All articles

Many people upload images with whatever name the phone gave them, such as IMG_20240312_154455.jpg, and never check the file weight, so a 4000-pixel, five-megabyte photo ends up displayed as a 400-pixel square. Both habits waste SEO opportunities. The file name is a small signal that helps search engines understand the image, while dimensions and weight directly affect page speed.

What the file name tells Google

Google uses several sources to understand an image: page text, nearby headings, alt text and the image URL, including the file name. Google's documentation says short but descriptive file names help. It is not a major ranking factor, but on a store with thousands of product photos these small signals add up in Google Images traffic.

What a good file name looks like

Describe the image in a few words, separate them with hyphens rather than underscores, use lowercase only (many servers treat Photo.jpg and photo.jpg as different files) and avoid spaces, which become %20. Plain ASCII Latin characters are the safest choice; Cyrillic or the Uzbek apostrophe work but get URL-encoded. Do not stuff keywords into the name.

Poor nameGood name
IMG_4521.JPGmens-black-leather-jacket.webp
photo 2024 final(2).pngdental-clinic-reception.webp
banner.jpgschool-admissions-2025-banner.webp

Alt text matters even more. It describes the image for screen-reader users, appears when the image fails to load and is one of Google's main clues about the content. Write a natural sentence, and leave alt empty for purely decorative images.

<img src="/img/dental-clinic-reception.webp"
     alt="Bright reception area and front desk of a dental clinic"
     width="1200" height="800">

Dimensions and file weight

Save images at roughly the width they are displayed, with a double-size version for high-density screens. Shipping a 4000-pixel photo for a 600-pixel block forces the browser to download megabytes it then shrinks, which hurts LCP on mobile networks. Use srcset and sizes so the browser picks the right version. If you want articles to appear in Google Discover, Google recommends large images at least 1200 pixels wide, which srcset lets you keep without penalising small screens.

<img src="/img/cotton-bedding-1200.webp"
     srcset="/img/cotton-bedding-600.webp 600w,
             /img/cotton-bedding-1200.webp 1200w"
     sizes="(max-width: 700px) 100vw, 600px"
     alt="Double cotton bedding set" width="1200" height="900">

Format and compression

WebP is usually much smaller than JPEG for photos and works in all major modern browsers; AVIF can be smaller still but encodes more slowly. Use SVG for logos and simple icons.

# JPEG to WebP at quality 80
cwebp -q 80 IMG_4521.jpg -o mens-black-leather-jacket.webp

# ImageMagick 7: shrink only if wider than 1200 px, for every .jpg
for f in *.jpg; do
  magick "$f" -resize '1200x>' -quality 80 "${f%.jpg}.webp"
done

At quality 75-85 the difference is often invisible while the file shrinks several times.

Example: a dental clinic in Tashkent

A Tashkent dental clinic on example.uz had about 80 photos named IMG_something, each 3-6 MB. The homepage loaded slowly on phones and the photos barely appeared in Google Images. After converting them to 1600 and 800 pixel WebP versions, renaming them descriptively and writing alt text, page weight dropped sharply and within months the photos began appearing in image searches. One caution: renaming images that are already indexed or linked breaks old URLs, so add 301 redirects for important ones. On sayt.uz hosting you can compress large image folders directly on the server via SSH instead of downloading and re-uploading them.

Related articles

📱 SoftwareApplication Schema: Markup for App and SaaS Pages 📝 Content brief: how to write an SEO assignment for writers 🚫 Page not showing up in Google: 12 reasons and how to check each one 📍 Adding Your Business to Yandex Maps: Listing, Verification and Website Link
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓