Image File Names and SEO — How to Name Images for Google

Most people upload images straight off their phone or camera with names like IMG_2043.jpg — and quietly leave SEO value on the table. A clear, descriptive file name is one of the easiest image-ranking signals to fix, and it takes seconds. Here’s how to choose image file names for SEO that actually help Google understand and rank your pictures.

Why image file names matter for SEO

Before Google ever reads your alt text, it sees the file name in the image URL. That name is an early, direct clue about what the image shows. Search engines have said for years that descriptive file names help them understand images, and it’s a signal you fully control. It also helps human visitors: a tidy URL like /red-leather-office-chair.jpg looks trustworthy when shared, and it makes your own media library far easier to search.

What a good image file name looks like

Good file names follow a handful of simple rules:

  • Be descriptive. Say what’s in the image: sourdough-bread-loaf.jpg, not photo1.jpg.
  • Use hyphens, not underscores or spaces. Google treats hyphens as word separators; underscores join words and spaces become messy %20 codes.
  • Keep it lowercase. It avoids duplicate-URL confusion on case-sensitive servers.
  • Include a keyword — naturally. Match the image and the page topic; don’t cram in five keywords.
  • Keep it short. A few meaningful words beats a long string. Skip filler like “the” and “a.”

Bad vs good file name examples

  • IMG_2043.jpgred-leather-office-chair.jpg
  • DSC00891.pnggolden-retriever-puppy-grass.png
  • Screenshot 2026-08-01 at 10.14.pngrank-math-settings-panel.png
  • final_FINAL_v2.jpghomemade-margherita-pizza.jpg
  • banner_image_BIG.jpgsummer-sale-banner.jpg

Each “good” version tells Google — and you — exactly what the file is, without guesswork.

How to rename images in bulk before upload

Rename files before you upload them, because changing a file name after it’s live changes the URL and can break existing links. On Windows, select multiple files, press F2, and type a base name to number them in sequence, then refine the important ones. On macOS, select the files, right-click, and choose “Rename.” For large batches, a quick spreadsheet of “old name → new name” keeps you organized.

While you’re preparing images for upload, it’s the perfect moment to shrink them too. Run them through our free image compressor and, if they’re oversized, our guide on how to resize an image for web will get the dimensions right. Rename, resize, compress — then upload once, cleanly.

File names, alt text, and captions working together

The file name isn’t a standalone trick — it’s one of three signals that reinforce each other. The file name gives Google an early hint, the alt text describes the image in full for accessibility and indexing, and the caption (when you use one) adds visible context for readers. Keep them consistent but not identical: if the file is standing-desk-converter.jpg, the alt text might be “Black standing desk converter raised on a home-office desk,” and the caption a short, human line. Together they make your image unmistakable to search engines. This is a core part of broader image optimization for SEO.

Frequently Asked Questions

Do image file names for SEO really affect rankings?

They’re a real but modest signal. A descriptive file name won’t outrank strong content on its own, but combined with good alt text, relevant surrounding text, and a fast page, it helps Google understand and rank your images — and it costs nothing to do well.

Should I rename images already published on my site?

Be cautious. Renaming a live image changes its URL, which can break links and lose any ranking the old URL earned. For brand-new uploads, always use a good name. For existing images, only rename if you can update the references or set up redirects.

How many keywords should a file name contain?

Just enough to describe the image — usually one topic phrase. “blue-running-shoes.jpg” is ideal; “blue-running-shoes-cheap-best-mens-sneakers.jpg” is keyword stuffing and looks spammy. Describe first, keyword second.