I have a huge collection of photos from 1999 to 2019 and many of them don't have "Date Taken" registry, but all of them have the date in file name, like YYYY-MM-DD and YYYYMMDD.

But when I uploaded them (400gb) to Google Photos they are all messy because many of them are not date organized since Google organize them by this 'Date Taken'...

Is there a good GUI or Console tool that can create the "Date Taken" metadata based on a date found in file name?

None of the questions here match my search, nor their answers...

Note: that question is not a duplicate of mentioned question, and it does not solve mine.

  • 4
    \$\begingroup\$ Possible duplicate of Writing missing/incorrect Date Tags based on FileName in ExifTool? \$\endgroup\$
    – xiota
    Jan 7, 2019 at 18:44
  • \$\begingroup\$ I will have to do it in HD then, re-upload them. \$\endgroup\$
    – NaN
    Jan 7, 2019 at 18:46
  • \$\begingroup\$ @xiota that question you mentioned is about duplicated files... \$\endgroup\$
    – NaN
    Jan 7, 2019 at 18:47
  • 1
    \$\begingroup\$ @Please_Dont_Bully_Me_SO_Lords That question mentions that some of the existing filenames are duplicates (presumably due to being taken at the same time). That's not the core of the question, though — the core of the question is exactly the same as yours. \$\endgroup\$
    – mattdm
    Jan 7, 2019 at 18:59
  • \$\begingroup\$ Although it does presuppose using a particular software tool (ExifTool). \$\endgroup\$
    – mattdm
    Jan 7, 2019 at 19:00

1 Answer 1


If you're asking how to do this remotely on images stored by Google Photos, there is currently no way to do so.

There are other questions and answers addressing how to do this on images located on your local computer using ExifTool. For instance, Writing missing/incorrect Date Tags based on FileName in ExifTool?

You can use the following command:

exiftool '-Alldates<Filename' .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.