How to Optimize Image File Names for SEO

SEO

Images make your website more engaging and easier to read, but they can also help your search engine optimization (SEO). A well-named image file helps search engines understand what your image shows, which can help it appear in image search results.

Search engines rely on text to understand images. The file name is one of the clues they use, so a clear, descriptive name makes it easier to match your image to what people are searching for.

Here’s how to name your image files so they work for both search engines and people.

1. Use Descriptive Names

Generic file names like “IMG001.jpg” or “photo.png” tell search engines nothing about your image. Use a short phrase that describes what’s actually in the photo:

  • Bad: image123.jpg

  • Good: golden-retriever-puppy-playing.jpg

2. Include Relevant Keywords, Without Overdoing It

Include words people might actually search for. If you’re uploading a photo of a red apple for a post about healthy snacks, your file name could be:

  • Good: red-apple-healthy-snack.jpg

Stick to one or two relevant terms that fit naturally. Stuffing a file name with keywords (like best-red-apple-best-fruit-healthy-organic.jpg) looks spammy to search engines and won’t help your rankings.

3. Use Hyphens to Separate Words

Use hyphens (-) between words, not underscores (_) or spaces. Search engines read hyphens as word separators, while spaces can break URLs and underscores may not be read as separators.

  • Bad: red_apple_healthy_snack.jpg

  • Good: red-apple-healthy-snack.jpg

4. Keep File Names Concise

Be descriptive, but keep it short. A few clear words work better than a long string.

5. Avoid Special Characters

Characters like %, &, # or @ can cause problems in URLs. Stick to lowercase letters, numbers and hyphens.

6. Rename Files Before You Upload

On Squarespace and most website platforms, your image keeps the file name it had when you uploaded it. Rename your files on your computer first. It’s much easier than replacing images later.

Don’t Forget Alt Text

File names help search engines, but alt text is what makes your images accessible. Screen readers read alt text aloud for visitors who can’t see the image, and search engines use it too. Write a short, natural description of what’s in the image, like “Golden retriever puppy playing with a ball in the grass.”

Sara Graham

Sara Graham is the founder and director of EngageTaste, a St. Louis web design and branding studio, and a Squarespace Platinum Circle Designer and Certified Squarespace Trainer. Since 2013, she has completed more than a thousand projects for clients across virtually every industry and continent. Her path to web design ran through nearly a decade of global sustainability strategy at HOK and years of journalism for Zagat, Sauce Magazine, and the Riverfront Times. One taught her to think in structure; the other taught her to listen for the story.

https://www.engagetaste.com
Previous
Previous

Why good design is good SEO

Next
Next

7 Website Design Mistakes That Can Make Your Site Look Cheap (And How to Avoid Them)