How to Optimize Images for SEO

Updated:

Your product comparison looks finished, but the photo that shows the important detail takes too long to appear on a phone. Another image loads quickly, yet its labels are too blurred to read.

Visitors have to wait or guess at the detail they came to check, and you’re left deciding what to change without making the image worse. The checklist below connects file preparation, image descriptions, and loading settings so you can keep useful details clear, reduce downloads, and help search engines find your images.

Choose Images That Help Readers

Start by asking what each image helps the reader understand. A useful visual demonstrates a step, reveals a detail, or makes a comparison easier.

For the running example, imagine you publish a cat-care affiliate blog and are comparing scratching posts. A photograph showing a ruler across a post’s base helps readers judge its footprint. An unrelated cat portrait adds little to that decision.

Keep the measurement photo and remove repeated shots that show nothing new. Every image should earn its place.

Choose Images That Help Readers: Choose Blog Images That Help Readers Decide; Keep: Useful Evidence; Shows The Base Footprint; Remove: Unrelated Decoration; Does Not Help Compare Posts; Does This Image Answer A Reader’s Question?

For existing content, I would start with one important page that has an obvious problem:

  • A broken image.
  • A large download squeezed into a small space.
  • A main image that appears slowly.
  • An informative photograph with no useful description.

Before editing, record the image’s file size and save a mobile report from PageSpeed Insights, Google’s free tool for checking page loading and diagnosing performance problems. You need a starting point to judge the change.

Keep the original photograph separately, too. Make future crops and exports from that original rather than repeatedly editing a compressed copy.

The filenames, dimensions, and exports used below are illustrations for this scratching-post comparison.

Prepare Smaller Image Files

Resize Images for Their Display Size

Three measurements matter, and they describe different things:

  • Pixel Dimensions: The image’s width and height, such as 3,000 × 2,000 pixels.
  • Displayed Size: The space it occupies on the page.
  • File Size: The amount of data downloaded, usually shown in KB or MB.

Making an image look smaller in the editor does not necessarily make its download smaller.

Resize Images For Their Display Size: Image Pixels, Display Width, And Download Size; Pixel Dimensions; 3,000 × 2,000 Pixels; Displayed Width; 720 Css Pixels; 1,440-Pixel Export For 2× Density; File Size; Downloaded Data In Kb Or Mb; Smaller On The

Check the widest space the photograph occupies in your layout. Crop empty floor or background, but preserve the full base and the ruler markings.

Browsers measure page layouts in CSS pixels, and high-density screens can use several physical pixels to draw each one. If your article column displays images at up to 720 CSS pixels wide, a 1,440-pixel-wide export supplies two image pixels across for each layout pixel. Smaller versions can serve other displays.

You do not need to upload the camera’s largest file just because you have it. Prepare enough detail for the placement, then let responsive sizing handle different screens.

Choose a Format That Suits the Image

Compare formats at the same dimensions and at a quality you would accept on the published page. Comparing a tiny, blurry export with a sharp, larger one tells you very little.

FormatSuitable ContentSelection Rule
WebP, AVIF, or JPEGPhotographs, including the scratching-post measurementCompare WebP and AVIF exports, and keep JPEG when it gives a suitable result or fits your publishing workflow better.
PNG or lossless WebPScreenshots and diagrams with small text or sharp edgesCompare file sizes while preserving readable labels and clean edges. Both can support transparency.
SVGVector icons and simple diagrams made from shapes and linesUse for suitable vector artwork; keep photographs in a photographic format.
Choose A Format That Suits The Image: Choose Image Formats By What You Need To Preserve; Photographs; Compare Webp, Avif, And Jpeg; Sharp Labels And Transparency; Compare Png And Lossless Webp; Vector Icons And Simple Diagrams; Use Suitable Svg

WebP supports both lossy and lossless compression, so the format name alone does not tell you whether an export preserves every image detail. Google’s WebP guidance explains these options.

I would begin with a WebP export for the scratching-post photo and compare an AVIF version if the existing tools support it. I would skip a new paid service just to change the extension.

Compress Without Losing Useful Detail

Compression reduces file size, but you still need to check what survives.

Lossy compression allows some image information to change or disappear. Lossless compression preserves the image data while reducing its storage size. Lossy compression is often useful for photographs, while lossless can suit graphics where exact edges matter.

Use an image editor or Squoosh, a browser-based image compression tool, to compare exports:

  1. Start with the resized image.
  2. Adjust compression and compare it with the original.
  3. Inspect the result at its intended display size.
  4. Save the smallest version that keeps the important detail clear.

For the measurement photo, inspect the ruler numbers and the edge of the base. If readers cannot distinguish them, you have compressed too far.

I would not chase a universal “under 100 KB” rule. A small icon and a detailed comparison photograph have different jobs. Record the dimensions, format, and file size so you can compare sensible alternatives.

Give Images Clear Descriptions

Use Short, Descriptive Filenames

Name new files before uploading them. Use a short description of what the image shows and separate words with hyphens.

For example:

  • Original: IMG_4821.webp
  • Descriptive: cat-scratching-post-base-measurement.webp
Use Short, Descriptive Filenames: Name Image Files Before Uploading; Img_4821.Webp; Cat-Scratching-Post-Base-Measurement.webp; Describe The Subject; Separate Words With Hyphens; Match The Exported Format; Renaming .Jpg To .Webp Does Not Convert It

The extension must match the exported format. Renaming .jpg to .webp does not convert the image.

Google describes filenames as a small clue about an image’s subject. That makes clear naming worthwhile for new uploads, but I would preserve working image URLs rather than rename an entire library for keywords.

Write Alt Text for the Image’s Purpose

Alt text provides a text alternative for people who cannot see an image. Describe what it contributes to this page. Enter that description in your editor’s alt text field, or in the alt attribute if you edit HTML.

For the measurement photograph, a suitable description is:

alt="Ruler across the square base of a sisal scratching post."

That tells the reader what the photograph demonstrates. A list such as “best cat scratching post cheap scratching post cat furniture” does not.

Write Alt Text For The Image’s Purpose: Choose Alt Text By The Image’s Purpose; Informative Image; Describe Its Contribution; Ruler Across The Square Base Of A Sisal Scratching Post.; Decorative Image; Alt=&Quot;&Quot;; Empty Attribute, Not Missing Attribute

Choose the description according to the image’s role:

  • Informative Image: Describe the useful detail in its context.
  • Decorative Image: Use alt="" so assistive technology can skip it. An empty attribute differs from a missing one.
  • Image-Only Link or Button: Describe the destination or action, such as “View the scratching-post comparison.”

These choices follow W3C’s purpose-based alt-text guidance.

Keep descriptions concise, but do not force them into an arbitrary character limit. Put detailed measurements and complex comparisons in ordinary page text where everyone can use them.

If you have several images to describe, AI Copywriting Studio can draft their publishing text together. Give it the images and nearby article text so the descriptions reflect what each picture contributes.

Lead Magnet Cover
FREE AI SKILL

Free AI Copywriting Studio

Use AI to turn your notes into drafts for offers, pages and emails.
Send My AI Copywriting Studio ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 7,500+ users

Add Useful Captions and Surrounding Text

Place the photograph beside the part of the comparison it supports. Readers should not have to guess which product or measurement they are looking at.

Use a caption when it adds something useful. For example:

The ruler shows the outside width of the base; the matching measurement appears in the comparison table.

Add Useful Captions And Surrounding Text: Alt Text, Captions, And Page Text Have Different Jobs; The Ruler Shows The Outside Width Of The Base.; Base Width; Record The Measured Width Here; Alt Text: Describe The Useful Image Content; Caption

That explains how to read the photograph without repeating its alt text.

Keep the actual measurement in the comparison table or nearby text. A photograph should support that information, and readers should not need to zoom in to retrieve an essential number.

Add Useful Captions And Surrounding Text: Place Product Images Beside The Details They Explain; Disconnected Evidence; Which Detail Does This Image Support?; Connected Evidence; Keep Explanation And Evidence Together; Add A Caption Only When It Adds

You can skip a caption when the surrounding text already explains everything. Filling every available field is not a publishing strategy.

A hover tooltip created with the title attribute also does not replace alt text or a needed visible caption.

Serve the Right Image at the Right Time

Deliver Responsive Sizes and Reserve Space

Responsive images let the browser choose among different versions of the same picture.

Your publishing system may already generate these versions. WordPress normally supports responsive image output for images inserted from its media library, though the theme and plugins can affect the final result.

Deliver Responsive Sizes And Reserve Space: How Browsers Choose Responsive Image Files; 480 × 320 Pixels; 720 × 480 Pixels; 1,440 × 960 Pixels; Srcset: Available Files And Widths; Sizes: Expected Display Width; Screen Density; The Browser Chooses A

Two attributes help the browser choose:

  • srcset: Lists the available image files and their pixel widths.
  • sizes: Describes the expected displayed width at different screen sizes.

For the running photograph, suitable example versions are 480 × 320, 720 × 480, and 1,440 × 960 pixels, all using the same crop. The browser can choose a file based on the layout and screen density. MDN explains how responsive image selection works.

Let your publishing system generate this output where possible. A manually uploaded smaller copy does little if the page still tells every browser to download the largest one.

Deliver Responsive Sizes And Reserve Space: Reserve Image Space Before The File Arrives; No Reserved Proportions; Content Moves When The Image Loads; Accurate Width And Height; Width=&Quot;1440&Quot; Height=&Quot;960&Quot;; Max-Width:100%; Height:auto;

Also include accurate width and height attributes. For the largest example file, these would be width="1440" height="960". They give the browser the image’s proportions so it can reserve space before the file arrives.

Responsive styling such as max-width:100%; height:auto; lets the image shrink within its container without stretching.

Check both narrow and wide screens. The base should stay fully visible, the ruler should remain useful, and the photograph should not spill outside the article.

Load the Main Image Promptly

Images visible when a page first opens should load normally. Images farther down can often use loading="lazy", which lets the browser delay their download until they are closer to being needed.

The main image deserves special attention.

PageSpeed Insights can identify the Largest Contentful Paint element, or LCP element. This is the largest image or text block rendered in the visible area during loading.

Load The Main Image Promptly: Prioritize The Main Image, Defer Images Farther Down; Initially Visible Images: Load Normally; If This Image Is The Likely Lcp Element; No Lazy Loading; Fetchpriority=&Quot;High&Quot;; Farther Down: Loading=&Quot;Lazy&Quot; May Suit; Do

If that element is an image:

  • Keep it out of lazy loading.
  • Use fetchpriority="high" for the likely LCP image.
  • Test whether the change improves loading.

These recommendations follow Google’s LCP loading guidance.

The measurement photograph only needs this treatment if it is the main image near the top. If it appears halfway through the comparison, lazy loading may be appropriate.

Check the published output because your theme, publishing system, and performance tools may apply overlapping settings. Giving every image high priority makes that priority much less useful.

Make Important Images Discoverable

A useful image needs a crawlable address and a page that exposes it properly.

Use an HTML <img> element to embed each content image. Its src attribute should contain a working image URL. If your site uses <picture> to offer different formats, keep an <img> fallback inside it. Google does not index CSS background images, so an important comparison photograph should not exist only as a background. Google explains its image embedding requirements.

Check that important image URLs work publicly. Look for broken links, login requirements, and crawler blocks.

Make Important Images Discoverable: Make Important Website Images Discoverable; Embed Content Images With Html Img; Inside Picture, Keep An Img Fallback; Working, Public Image Url In Src; If Discovery Is Difficult, Check Image Sitemap Urls; If

If important images are hard for Google to find, check whether your sitemap—the file listing URLs for search engines—includes their URLs. Add image sitemap support when needed, then inspect the generated file to confirm that the intended URLs appear.

To check whether Google can see a lazy-loaded image, use Google Search Console, the free tool for inspecting pages and monitoring Google search traffic. Inspect the article with URL Inspection and run a live test. Examine the rendered HTML—the page code after scripts have run. The image URL should appear in an image’s src without requiring someone to click or scroll first. Google’s lazy-loading guidance describes this discovery check.

Finally, if the post already uses Article structured data, check its image property. Structured data is machine-readable information about the page; its image should represent the article and be accessible to crawlers. Validate the markup after changes using Google’s Rich Results Test. Google’s Article documentation gives the image requirements.

Check the Published Page and Track Results

Verify Quality, Accessibility, and Loading

The live page is the result that matters. An export can look excellent on your computer and still be cropped badly by the site template.

Review the page on a phone and a wider screen:

  • Can you read the ruler markings?
  • Is the whole base visible?
  • Do all image URLs work?
  • Does each alt attribute match the actual image and its purpose?
  • Does the layout stay steady while images appear?

Then rerun the mobile PageSpeed Insights report under comparable conditions. Check image download sizes, the main image’s loading behavior, and any layout shifts caused by images.

Verify Quality, Accessibility, And Loading: Check Image Loading With Lcp And Cls; Lcp: Largest Visible Content Appears; ≤ 2.5 Seconds; For At Least 75% Of Visits; The Lcp Element May Be An Image Or Text; Cls: Unexpected Content Movement; ≤ 0.1

Two useful measures are:

MeasureWhat It Tells YouGood Real-User Target
Largest Contentful Paint, or LCPHow quickly the largest visible image or text block appearsAt or below 2.5 seconds for at least 75% of visits
Cumulative Layout Shift, or CLSHow much visible content unexpectedly movesAt or below 0.1 for at least 75% of visits

These targets come from Google’s guidance on LCP and CLS.

Use the lab diagnostics to troubleshoot the edited page. Real-user results describe actual visits over the report’s collection window, so they will not immediately reflect an edit.

Also check their scope. If PageSpeed Insights shows results for the whole site because the page lacks enough data, those figures do not isolate your scratching-post article.

Monitor Image-search Visibility

Record when you made the changes and what else you edited on the page.

In Search Console’s performance report, select the Image search type and filter to the updated article. Compare clicks and impressions across comparable periods, then review the queries bringing people to it.

The Image search type covers results in Google Images. Keep that scope in mind when judging what the report says about your wider search traffic.

Look for useful movement rather than a single good day. More impressions mean more appearances in those results; more clicks mean more visits from them.

Other edits and changes in demand can affect the same figures. A traffic increase alone does not tell you how much came from image optimization. The stronger immediate evidence is concrete: smaller downloads, clear descriptions, readable details, and reliable loading.

Make Image Optimization Part of Publishing

Save the decisions in a checklist so each article does not become a fresh research project.

  • Every image helps explain something.
  • The crop and dimensions suit its placement.
  • The format and compression keep useful detail.
  • New files have descriptive names.
  • Alt attributes match each image’s purpose.
  • Images sit beside relevant text.
  • Responsive versions work and space is reserved.
  • The main image loads promptly.
  • Important image URLs are public and crawlable.
  • The published page passes a visual and loading check.

Then automate the repeatable work: resizing, compression, generating variants, and adding responsive markup.

Make Image Optimization Part Of Publishing: A Repeatable Image Seo Publishing Workflow; 1. Choose Useful Evidence; 2. Crop, Resize, Choose Format, Compress; 3. Name Files And Write Purposeful Alt Text; 4. Place Images Beside Relevant Text; 5.

Start with the publishing tools you already have. Test representative photographs and graphics before applying settings across your library. One successful export does not prove that the same compression will preserve every diagram.

At Passive Book, I build reusable publishing routines because repeating the same transfer between tools is where small chores become permanent jobs. Building my content pipeline taught me to notice that second copy-and-paste and ask whether the system could handle it.

I would apply that preference here while keeping a human review of the result. AI can draft an image description, but check it against both the picture and the surrounding article. It can describe a ruler confidently and still miss why the ruler is there.

What Next?

Pick one important article and save its current image sizes and mobile performance report. Work through the checklist, then check the published page before changing the rest of your library.

Use the social buttons to pass along this checklist when a publishing discussion turns to slow pages or unclear images.

Which part of your image workflow still needs the most manual work? Share it in the comments, and bring any other questions there too.

Share this post with your friends & followers:
Abhishek is a data scientist by day & an online entrepreneur by night. He is known for his ability to simplify complex concepts and make them accessible to a wider audience. He started Passive Book to share his insights and experiences on how to effectively build an online business, which has quickly become a go-to resource for anyone looking to bootstrap an online business from scratch.

Leave a Comment

Build an Online Business 
Without Quitting Your Job

Join 10,000+ solopreneurs building six-figure online businesses from scratch with limited time & tight budgets using smart systems & AI automations.
Optin Form - Main

Free Bonus: Get access to our AI workflows & cheat sheets
Person sitting with laptop in home office environment with launching rocket, coffee mug, sleeping dog, bookshelf, and house plant illustrating work-from-home online business lifestyle. Decorative image.
Thank you for sharing

Follow Us On: