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.”