This article was originally published on Sept. 5, 2013, and was updated on Oct. 18, 2019.
Fresh, unique images are essential for engaging with users online as you battle for their attention against the vast quantity of other online content. Written content is essential for conveying information, but images are often easier for people to digest and remember. Studies show that people remember 80% of what they see and only 20% of what they read. When you optimize images for the web, you will be able to better connect with these users, build your brand, and move potential customers down your sales funnel.
Guide to image optimization
You’ll find everything you need to know about optimizing images for the web — including how to optimize images for SEO — in this guide:
- Why images matter.
- What is image optimization?
- 7 steps to optimize images for the web.
- Conclusion and next steps.
Let’s get started!
Why images matter
Image optimization starts with photo selection and quickly moves on to providing smart naming systems, creating alt text, and ensuring the files are the right size and type.
But first, it’s crucial to fully understand why you want images on your website.
Images reinforce content
Fundamentally, images are important because they are content — the kind of content that creates a huge impact on people.
Think about how long it takes to read a short, punchy paragraph. Not long, right? However, images can be processed in 13 milliseconds — 60,000 times faster than text alone.
More often than not, you’ll use images along with text to help drive home a point. This is extremely effective. Along these same lines, textual information can become even more powerful when worked directly into an image by creating infographics.
Images improve content retention
Although infographics can create virality for your brand, a simple photo, in the right context, can significantly improve audience comprehension.
In the same vein, email newsletters with visuals get more clicks and engagement. Images also increase dwell time on a page.
Images communicate your brand identity
The specific images you use can help to communicate the nature of your brand’s identity.
Each picture you post can help enhance, refine, and solidify that identity. Such visuals provide you with the opportunity to create consistent messaging, which leads to brand familiarity and, eventually, customer loyalty.
This ability to associate with a brand without the use of text is incredibly powerful.
Images drive traffic to your site
Image searches represent 27% of all queries generated across the top 10 U.S. web search properties. Along these lines, an increase in website visits from image searches has significantly increased since Google updated its “View Image” button from Image Search to “Visit [Page].”
Images make your website more visually appealing
A well-designed website will integrate strong images and logos with text. When posting additional content throughout your website, you should take the same approach — don’t try to take a shortcut around publishing sharp images.
What is image optimization?
According to Content Marketing Institute, SEO image optimization is the process of creating and delivering high-quality images in the ideal size, format and resolution to increase user engagement. It also involves labelling images correctly so that search engine crawlers can find them and understand what they are.
7 steps to optimize images for the web
Given how important images are to a company’s brand and online presence, it’s a surprise that more people aren’t fluent in incorporating image optimization into their SEO strategy.
So let’s change that with these seven steps:
- Choose the right images.
- Carefully consider the text associated with your images.
- Adjust image size and format.
- Consider lazy loading.
- Enable browser caching.
- Don’t forget image metadata.
- Create an image sitemap.
1. Choose the right images
Search engines focus on delivering the most relevant content to users, which includes images. Because of this, you want to select images that are relevant to what you’re talking about.
If you’re focused on social media content marketing, for example, don’t start throwing around pictures of famous pop stars simply to get attention — unless your business is legitimately connected to that person (and you have their permission).
Ultimately, you should include images in your posts to complement the content, break up long blocks of text, and help your audience better understand the concept at hand.
Use your own images
When possible, you want to use your own images. The online world is dominated by stock photos, so creating your own content is notable.
You’re not just limited to photos here, though. The images you create might include graphs, charts and infographics, as well as other visual aids.
For example, if you own a restaurant, the photos you take of your dishes are going to better represent what you serve than a generic picture. Such images also will help you avoid accidentally misrepresenting your product or services.
Knowing and applying best practices when photographing your products can make all the difference in the long run.
Stock photos are an option
In cases where you don’t have an image of your own that matches what you’re writing about and you’re using the image more as an illustration (instead of an example of the product you’re selling), it’s perfectly fine to use stock photos — if you have the proper licenses.
A license establishes the legal scope within which the image can be used. Some images can be used for many purposes, even commercial purposes, as long as they are appropriately credited. For other images, commercial use might be strictly prohibited. Basically, an image license is a contract in which the photographer grants specific rights to a client/person using their image.
You can obtain licenses by either hiring a photographer and commissioning new work or by drawing from work that already exists. Sometimes, work that is already published online can be free, but often you will need to pay for usage rights.
Facing the facts
As a species, humans are deeply programmed to pay attention to faces. Because of this, images with human faces are usually more effective in encouraging conversions than other types of graphics or animations.
To be sure, there are plenty of situations where using images of people’s faces simply won’t work. But when there is an opportunity to do so — do so.
2. Carefully consider the text associated with your images
If you’re used to uploading a photo on WordPress, for example, you might recall being prompted to add Attachment Details. Because most people don’t know how these additional details impact SEO image optimization, they often don’t have the patience to fill in this information.
The information WordPress is prompting you to add is essential to improving your SEO image optimization. Feeling lost on what should be included when adding text to your images? Never fear, we’ll cover each option below.
Keep in mind, though, while WordPress is one popular content management system for websites, the options we’ll be discussing here will generally apply to many different website creation tools.
With that in mind, let’s break it all down.
With any image that you add, it’s critical that you use an accurate and relevant title. Often, the default title for an image will reflect the file name of whatever you uploaded. If this amounts to random letters and numbers, this mix won’t be very helpful to a search engine.
The file name should also incorporate keywords that the image could rank for in a Google search, omitting stop words. You’ll want to separate the keywords with hyphens — not underscores — as search engines do not recognize these.
Using the right keywords can improve your SEO, as they help search engines better understand what the images are.
Image alt text
Search engines gather information by having “spiders” crawl through websites, logging information as they go. Unfortunately, these spiders aren’t capable of seeing an image and understanding it — they only read code, relying on associated information to guide them.
Alt text was designed to provide a description of the image in cases where the browser can’t display the image.
The alt text also helps search engines understand what the image is. Additionally, alt text helps with accessibility. Such information is useful for users accessing a webpage with screen readers or using browsers that can’t process images.
By including keywords in your alt text, you can give your SEO a little boost too — just make sure you refrain from keyword stuffing.
Captions are the descriptive text below an image that is visible to all users.
A caption can provide additional information about an image that might not be obvious to users, such as the date the picture was taken, where it was taken and who is in it. You can also use the caption to reinforce the purpose of the image. In other words, the caption provides additional context.
If you’re using the same image for several posts, changing the caption you use with the image can be helpful for SEO, as well as user engagement.
Image descriptions are often said to be one of the best-kept secrets of the attachment post. This is because once you enter a description, it is stored as content for the attachment post. So, if someone clicks on the attachment post, they will be sent to a separate page showing the image, image title, caption and the image description as post content.
3. Adjust image size and format
When you optimize images for SEO, there are several factors to be aware of with regards to your image size, formatting and compression rate.
These image qualities will impact the user experience on your website. Done poorly, they can lead to potential clients seeking out a different product or service provider. Here are three ways to make sure you do it right.
Resize your images
The average website contains about 1.8MB of images, which represents 60% of a site’s size. Though it is important to include high-quality, high-resolution photos on your website, they often can result in slow page loading speeds.
This is especially true when images are not optimized for online viewing.
The problem is exacerbated when users access your site via mobile devices — a big deal as more than half of all searches happen on mobile devices.
For example, Amazon found out that a one-second delay in site loading time could cost them $1.6 billion in annual sales.
One way to increase your site’s load speed is by making image sizes smaller, a positive contribution to SEO. Thankfully, it’s possible to limit the size of the images you’re using without severely impacting image quality or aspect ratio.
It’s important to note here that image size and file size are two different things.
Image size refers to the dimensions of an image (i.e., 1024 x 680 pixels), while the file size is the amount of space needed to store it on the server (i.e., 350 KB).
As you might expect, the bigger the image is, typically the file size is also proportionately larger. However, that’s not a cause for alarm when optimizing the image for websites. Even if the image quality is lower, the online viewing experience might not be impacted at all — it just means that users can’t print the picture, frame it and put it on their wall.
Choose the right image file types
Choosing the right file type can help with image optimization, as certain file types are best suited for specific applications.
These formats represent the best ways for an image to be delivered with regards to being the smallest size and having the shortest amount of downtime. Not sure when you should use those file types? Let’s take a look at each.
Joint Photographic Experts Group — better known as JPG/JPEG — is one of the oldest file types.
It’s best used for photographs because it allows the user to balance file size and image quality. One of the significant advantages of JPEGs is that they are easily compressible, which makes them even smaller. However, over time, image colors can degrade.
Graphics Interchange Format, GIF, which was made famous due to animated raster graphics files, have an importance beyond a gnome crocheting heart balloons and other silliness.
Users are advised to use the GIF format when there are large areas of uniform color and the total number of colors is fewer than 256. If you used a JPEG for a similar image, it would be a huge file. On that note, GIF formatting should also be your go-to for animated images and small icons.
Portable Network Graphics, PNG, is supported by most browsers, has a smaller file size and more colors than GIF, and its colors do not degrade as easily as JPEG. However, transparent PNG images run into a bug when used on Internet Explorer, so it’s best to use PNG format when you aren’t dealing with transparent images.
Choose the right compression rate
If you’ve chosen the image file type you think is best for your needs, but it’s still too big, you might want to consider compressing the image. When doing this, choosing the right compression rate is essential.
A 60% to 75% compression will keep your image quality decent. However, it’s best to use that range as a starting point and then experiment with different file sizes and ratios to see which one works best for your site.
An experiment done by Ahrefs compared how image resizing tools fared on average file size reduction:
- Imageoptim: 69% (JPEG) vs. 40% (PNG)
- Shortpixel: 42% (JPEG) vs. 59% (PNG)
- Kraken.io: 13% (JPEG) vs. 63% (PNG)
- TinyPNG: 27% (JPEG) vs. 65% (PNG)
- Optimizilla: 27 (JPEG) vs. 60% (PNG)
- Imagify.io: 6% (JPEG) vs. 1% (PNG)
- Compressor.io: 42% (JPEG) vs. 58% (PNG)
It’s interesting to note that as much as Imageoptim was suitable for JPEG, it was terrible for PNG. So, overall, Shortpixel is your best bet. You also can compress your images using a plugin like Smush, or an image optimization tool like Pixlr (JPEG) or GIMP.
If your website is made up of lots of images, use plugins that include functionality for GZIP compression, caching or image optimization, such as WP Rocket and Imagify. They can help make your files smaller without sacrificing quality.
Now, if you don’t want to mess around with plugins, you can always use Photoshop to modify your images. To do this, use the “save for web” option, which minimizes file size while optimizing quality.
Other tips for dealing with large image file sizes
There are a few other things you can do to help keep your image file sizes small and increase the speed of your website. If you’re relying on stock images, try downloading smaller files. If it looks fine to you in the size-specific preview before you download it, it’s going to similar on your website.
Another tip is to create responsive images. Such images will grow or shrink depending on the browser size and device used. This helps with both site speed and SEO.
4. Consider lazy loading
Lazy loading is when the browser defers loading images until they need to be shown on screen. This means that images further down on the website (below the fold) won’t be loaded until a user gets to that part of the website.
Lazy loading can significantly increase your website’s speed, especially on long pages that include many images below the fold.
Although there is an ongoing debate on the impacts of lazy loading for SEO, Google’s PageSpeed Insights tool recommends doing it — and Google is in charge of the whole game.
There are several ways to implement lazy loading. However, most of them involve manual coding. That said, if you’re using WordPress, the A3 Lazy Load plugin comes highly recommended by the Ahrefs team.
5. Enable browser caching
Browser caching is when your files, including images, get stored in visitors’ browsers so that these files load faster when they revisit the site in the future. You can enable browser caching through the use of plugins like W3 Total Cache.
You also can enable browser caching manually by adding this code to your .htaccess file:
<IfModule mod_expires.c> ExpiresActive On # Images ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" </IfModule>
Modify the “1 year” in the code for any time frame that seems suitable to your needs (ask yourself how often you’re updating content), such as “1 month” or “1 week.”
6. Don’t forget image metadata
Metadata is any auxiliary information stored within a file, including when the file was created or last edited.
Metadata can account for up to 15% of a JPEG image’s total size.
Other image metadata can include thumbnails, copyright information and color profiles. This type of information is considered structured data, as it resides in a fixed field within a record or file.
Google Images supports structured data for product images, videos and recipes. For example, if you have recipes on your site and you add structured data to your images, Google can add a badge to your image showing that it belongs to a recipe.
To create such structured data, you’re best off following Google’s structured data guidelines.
7. Create an image sitemap
A sitemap is important because it tells search engines about all the pages on your site.
Google allows image sitemaps to contain URLs from other domains, unlike regular sitemaps, which enforce cross-domain restrictions. This means you can use content delivery networks to host images, which can improve your website’s performance.
Here’s the good news: Building an image sitemap isn’t something you’ll have to do manually.
If you’re using WordPress, you can use the Yoast SEO plugin to automatically add your content — including photos, videos, thumbnails and posts — to a sitemap. Unfortunately, Yoast does not include any captions you have with your pictures in the sitemap. You may add these to your site manually using these codes:
Conclusion and next steps
Images are essential to your website, as they reinforce your brand and significantly increase the impact your site has on users. However, image files can also slow your website down to the point that you’re limiting your exposure to users and losing clients. To combat this drag in speed, as well as increase your SEO, it’s crucial to optimize your images for the web.
Image optimization can feel like a lot of work. Even when you understand how to choose the right images, the right associated data and the right image size for your website — it’s easy to feel overwhelmed.
If you are feeling bogged down with optimizing images for SEO, GoDaddy SEO Services has your back. Contact the GoDaddy SEO experts today to learn exactly how they can help!