Do year and month folders in WordPress image URLs hurt SEO?

No. The year and month in /wp-content/uploads/2026/05/photo.jpg are folders WordPress uses to keep files organised. Search engines do not read them as the image's age or as a quality signal. The thing that harms image rankings is changing those URLs later, so the safest choice is to leave them alone.

What the setting does

Under Settings → Media there is one checkbox: "Organize my uploads into month- and year-based folders". It is ticked on a new site.

  • On: files go to uploads/YYYY/MM/.
  • Off: every file goes directly into uploads/.

Which year and month are used is slightly subtle. When you add an image while editing a post, WordPress files it under the post's date, not today's, so a picture added to a 2023 article in 2026 lands in 2023/ with the rest of that article's media. Images uploaded straight to the Media Library, and those added to pages, use the current date.

The setting only decides where new uploads are written. Switching it off does not move anything already in dated folders, and switching it back on does not sort a flat folder. Existing image URLs never change because of this checkbox.

Why the date does not matter to search engines

Google's image guidance says file names give light clues about subject matter. It says nothing about directory names carrying dates or freshness. An image is understood from its alt text, its file name, and the page it sits on, and its freshness from when that page was published and updated.

So /uploads/2019/03/espresso-machine-diagram.png embedded in an article you rewrote last month is not "a 2019 image" in any sense that affects ranking. Visitors rarely see image URLs at all.

If anything, dated folders are mildly useful:

  • Fewer name collisions. Two files called header.jpg uploaded in different months coexist. In one flat folder the second becomes header-1.jpg, since WordPress numbers a new file when the name is already taken.
  • Manageable directories. A flat folder with 80,000 files, counting all the generated sizes, is slow to list over FTP and in some backup tools.
  • Easier housekeeping. You can see roughly what was uploaded when.

What does hurt: moving images

An image that ranks in Google Images, or that other sites embed, is known by its exact URL. Change the URL and, without a redirect, that address returns 404. The image has to be rediscovered at its new location and its history starts again. Google's guidance for site moves recommends redirecting old image URLs for this reason.

Things that move image URLs:

  • "tidying" uploads into a different folder structure with a plugin or by hand;
  • changing the uploads directory, or moving media to a subdomain or CDN hostname without keeping the old paths working;
  • re-uploading an image to replace it, which creates a new file, usually with a different name or folder;
  • a domain change, which is unavoidable but should come with redirects.

If you must move files, redirect every old path to its new one with a pattern rule at the server, and run a search-and-replace on post content so your own pages reference the new addresses. Build the rules with the redirect rule generator. The broader checklist is in moving WordPress to a new domain.

Replacing an image without changing its URL is possible, but not from the Media Library alone: the file has to be overwritten on the server under the same name, or a media replacement plugin used, and caches purged afterwards.

What to optimise instead

The folder is the least important part of an image URL. Spend the effort here:

  1. File name. Descriptive, lowercase, hyphenated, set before upload: conical-burr-grinder.jpg. This is the one part of the URL Google does mention.
  2. Alt text written for the page the image is on.
  3. Placement next to relevant text, with a caption where useful.
  4. Stable URLs. Upload once, reuse from the library, do not reorganise.
  5. Crawlable uploads. Make sure robots.txt does not block /wp-content/uploads/. Test a file's address in the robots.txt tester.

For a new site, either setting is fine. We leave the dated folders on. For an existing site, whichever you have is the right one to keep.

Common questions

Should I untick the year and month folders option for SEO?

No. It has no ranking effect, and dated folders avoid file name clashes. On a live site, changing it gains nothing.

Does an old date in an image URL make my post look outdated?

No. Search engines judge freshness from the page, not from the image's folder, and visitors rarely see image addresses.

Will changing the setting move my existing images?

No. It applies only to files uploaded afterwards. Existing files keep their paths and URLs.

Why did my image upload get -1 added to its name?

A file with that name already existed in the destination folder, so WordPress added a number to keep both.