How to Optimize Images for Your Website

Day by day, Search Engines are becoming smarter and more intelligent, so it is becoming difficult to get a good search ranking, now there are many such factors to ask for at the top rank in search rankings. Which you must follow. So, let’s follow the Top Best Practices and see how to Optimize Images for your website or Search Engine.

How to optimize images for your website

If you want to improve image SEO on your website or blog, it is very important for you to optimize images of the website or blog. Because even if you don’t optimize images, you will not succeed in SEO. Properly optimized images can also be helpful in bringing new visitors to your blog or website.

Today in this article I will tell you:

  1. Optimize your images for SEO and speed.
  2. What is alt text?
  3. Alt text vs title
  4. Alt text vs caption
  5. Add alt text, titles and captions to WordPress images.
  6. When to use captions for images?
  7. Disable attachment pages on WordPress.
  8. Additional tips for improving SEO


  1. Optimize your images for SEO and Speedup:

Speed ​​plays a huge role in SEO user experience; Search Engines always rank a fast website or blog.

Images increase your page loading time. It takes longer to download any image in the “Page” text compression, so if your page has a large image file to download your page will be much slower.

You need to make sure that any images uploaded to your site are web-optimized. It can be a little difficult to use, as many beginners do not have the expertise to edit graphics and images.

Before uploading any images to your website or blog, you need to optimize it, wait for my new article to come and subscribe to our website for future articles and posts.

The best way to automatically take photos is to use photo editing software like Adobe Photoshop on your computer. This allows you to create a smaller file size and choose the correct format.

You can also use an image compression plugin for WordPress, such as,, EWWW Image Optimizer, Compress JPEG & PNG images, ShortPixel Image Optimizer, WP Smush, etc. This image optimizer plugin allows you to Will help reduce the size of the file itself.

  1. What is Alt text?

Alt text this alternative text is an HTML attribute, which is added to the img tag, which is used to display images on a web page, as shown in the plain HTML code.

<img src=”/computersoftware.jpeg” alt=”What is Computer Software” />

This allows website owners to describe images in plain text, the purpose of alternate text is to improve accessibility by enabling the screen reader to read an alt text for visually corrupt users.

Alt text is also important for image SEO, it helps search engines understand the content of the image, modern Search Engines can recognize the image, and can recognize the content using artificial intelligence, that too now relies on website owners to describe images in their own words.

“Alt text” is included with the image in Google Images Search, which helps the user understand the image, and improves the chances of getting more visitors.

Normally, alt text does not appear on your website, if any image on your website is broken, or cannot be found then alternate text with broken image will appear in front of your user. I have also given a screenshot as you can see below.


alt text


  1. Alt text vs title:

Alt text is used for accessibility and image SEO, while the title field is used internally through WordPress for media search.

WordPress always inserts the alt tag in the actual code used to display the image, the title tag is stored in the database for searching and displaying the image.

In the past, WordPress also inserted title tags in HTML code. But the calculation of this point of view of accessibility was not an ideal situation, meaning that their presence has eliminated it.

  1. Alt text vs caption

For search engines and screen readers, alt text is used to describe the image. Similarly, captions are also used for sub-users to describe images.

Alt text vs caption

A wonderful image on a website or blog is alt text important for SEO, the caption remains optional, and can only be used when you need to provide additional information about images to visitors to the website.

  1. Add alt text, title and captions to WordPress images.

Alt text, title and caption indicate the image meta tag, which allows you to add time to upload the image to WordPress. When you add an image to the WordPress site using the default image block, WordPress allows you to caption and alt text the image.

Uploading an image to WordPress, WordPress automatically generates the title with the file name, you can also change the alt text, title and caption after uploading the image to WordPress.

After double tapping on the WordPress uploaded image, click on the “Media File Library” button, then the “Media Uploader” pop-up is now displayed, where you can add your own custom title, alt text or caption for the uploaded image. You can add.

  1. When to use captions for images?

Captions allow you to provide additional details on an image for all your users, this screen is visible to all users, including search engines and screen readers.

When to use the caption shown in the scenarios below:

  • On family and event photos
  • Image where additional explanation is required to disable the background story.
  • On product photo galleries.

In most cases, you will be able to explain the image in the article content.

  1. Disable attachment pages in WordPress:

WordPress creates a page for all the images uploaded to your post and pages, that page is called attachment page, this page shows a larger version of the actual image, and nothing more.

This can have a negative SEO impact on your search rankings, with search engines considering a page that does not contain any text with inferior quality or thin context. This is the reason why we recommend that users disable the attachment page on your website.

The easiest way to do this is to install and activate Yoast SEO plugin on your WordPress website. How do we install any WordPress plugins? I will share the details with you soon.

After activation, they automatically turn off the attached URLs. You go to the “SEO >>Search Appearance” page and click the Media tab.

Make sure here and set the “Media & attachment URLs” option to “Yes”.

If you are not using the Yoast SEO plugin here, you can install the Attachment Pages Redirect plugin. This plugin redirects people to the post on the attachment page, where the image is displayed.


Additional tips for improving Image SEO:

You can’t improve your image SEO just by adding an alt tag. Below are some additional tips that you should pay attention to when adding an image to your blog post.

  1. Write descriptive alt text

Many beginners always use one or two words for an image, making it difficult to generic and rank the image.

  1. Use descriptive file names for your images

Instead of saving images to pic.jpg, you save them as post titles. Think of the keywords that the user will type to view the image. You can make the image file name more specific and descriptive, for example: “what-is-computer.jpg“.

  1. Provide context to your images.

Every day Search Engines are becoming smarter than ever, they can better recognize and categorize the image. For Search Engines you need to provide an image topic.

Your images should match all the topics in the post or page, it is also helpful to have images that have the most similar text pass in your article.

  1. Follow the SEO best practices

You also need to follow all the SEO guidelines for your website, these images can improve all your search rankings with search.

  1. Use original photographs and images:

There are many free stock photography websites that you can use to find free images for your blog post. The problem with stock photos is that they are used by thousands of websites.

Use real photography or try to create quality photos that are unique to your blog. We know that most bloggers are not photographers or graphic designers. But still I am suggesting you some good online tools here, such as: Visage, Canva, Pablo by Buffer, Piktochart etc., you can use it to create graphics for your website or blog.

We hope you enjoy this article. If you have any questions you can ask us in the comments section. Share this post with your friends on social media and be sure to leave your feedback.



Leave A Reply

Your email address will not be published.