Why images matter for SEO
Pictures do three jobs on a web page. They help visitors understand and trust what they see, they can appear in image search, and they often make up most of a page's weight. A large photo that has not been resized can slow a page for everyone, especially on mobile data. Slow pages frustrate people, and Google has said that page experience is something it looks at.
The good news is that a few simple habits fix most image problems.
1. Resize before you upload
A phone photo may be 4000 pixels wide, but your page may show it at 800. Uploading the full size forces every visitor to download pixels they never see. Resize the picture to roughly the size it will be displayed at, or up to about twice that for sharp screens. The Image Resizer has presets for common jobs and does the work in your browser, so the picture is not uploaded anywhere.
2. Choose the right format
- WebP is a modern format that usually gives smaller files than JPEG at similar quality. Current browsers support it.
- JPEG suits photos and works everywhere.
- PNG suits logos, screenshots and graphics with sharp edges or transparency, but it makes large files for photos.
- SVG is best for simple logos and icons, because it stays sharp at any size.
Google Search supports the common image formats, including JPEG, PNG, WebP, GIF and SVG.
3. Compress, but check the result
Lowering the quality setting shrinks the file. Move the slider down until you can just see a difference, then move it back up a little. For many photos, a quality around 70 to 85 percent keeps them looking good at a much smaller size. Always look at the final image before you use it.
4. Use clear file names
A file name is a small clue about the picture. Compare IMG_4021.jpg with water-heater-repair-austin.jpg. The second tells both people and search engines what to expect. Use lowercase words separated by hyphens, keep it short and describe what is in the picture. Do not stuff it with keywords.
5. Write helpful alt text
Alt text is a short description added to the image in your page code. It has two jobs. It lets people who use screen readers know what the image shows, and it gives search engines extra context. Good alt text is specific and natural, such as "Technician replacing a gas water heater in a garage". Leave it empty only for pictures that are purely decoration. Avoid starting with "image of" and do not repeat the same keyword in every description.
6. Set width and height
If your page code states the width and height of each image, the browser can leave the right amount of space while the picture loads. This stops the text from jumping about as the page appears, which is a common annoyance and part of what Google measures as layout shift.
7. Load images lazily, with one exception
Pictures far down a page do not need to load until a visitor scrolls near them. Adding the standard loading="lazy" attribute asks the browser to wait. The main picture at the top of the page should not be lazy, because you want it to appear as soon as possible.
8. Think about sharing previews
When your page is shared on social media, the platform picks an image. You can choose it yourself with an Open Graph image tag. A 1200 by 630 pixel image is a widely used size and keeps its shape in most previews. Learn how to set the tags in the title and description guide.
9. Serve the right size to each screen
A phone and a large monitor do not need the same file. Modern pages can offer several sizes of one picture using the srcset attribute, and the browser picks the best one for the visitor's screen. Many website builders and WordPress do this for you when you upload an image, creating smaller copies automatically. Even so, uploading a sensibly sized original is still the best starting point, because the copies are made from it.
10. Tips for WordPress sites
- Add the alt text in the media library when you upload, so it is ready each time you reuse the picture.
- Rename the file before uploading. Renaming it later can break links on existing pages.
- Be careful with plugins that promise to fix everything. Test one change at a time and check the page afterwards.
- Use a block or theme setting for lazy loading if your version has one, rather than adding code by hand.
11. Use your own pictures where you can
Photos of your actual work, team or products build more trust than generic images, and they are unique to you. Only use pictures you have the right to use, and keep the original files safe, because resizing and compressing cannot be reversed.
Quick image checklist
- Resized to about the display size.
- Saved as WebP, JPEG or PNG, whichever fits.
- Compressed, then checked by eye.
- Named with a short, clear, hyphenated name.
- Given useful alt text.
- Width and height set in the page.
- Lazy loading on for pictures below the fold.
Frequently asked questions
What size should website images be?
Match the size the image is shown at, or up to about twice that for sharp screens. A full-width blog header around 1600 pixels wide is often enough. Avoid uploading huge originals.
Is WebP better than JPEG for SEO?
WebP often makes smaller files, which helps pages load faster. Speed helps visitors and is something Google looks at, but the format itself is not a ranking factor.
Does alt text help rankings?
Google uses alt text to understand images and to help people who use screen readers. Write it for people first, describe the picture and avoid stuffing keywords.
Do image file names matter?
They give a small clue about the content. A clear name is a good habit, but it is far less important than the page content and the image itself.