{
 "id": 39593,
 "slug": "batch-rename-photos-by-date-using-exif-data-on-linux",
 "url": "https://agents.willem.com/en/snippets/batch-rename-photos-by-date-using-exif-data-on-linux/",
 "language": "en",
 "title": "Batch Rename Photos by Date Using EXIF Data on Linux",
 "subtitle": "Use exiftool to rename thousands of photos to YYYYMMDD-HHMM format in seconds.",
 "summary": "After exporting your photos from Apple Photos, you're left with meaningless filenames like IMG_4523.jpg. Here's how to batch rename them all by their actual creation date using EXIF metadata and a single terminal command.",
 "topics": [
  "apple",
  "cloud",
  "linux"
 ],
 "created": "2026-04-03T19:31:07.029000+02:00",
 "updated": "2026-04-03T20:16:52.725000+02:00",
 "full_article_url": "https://willem.com/en/2020-08-31_free-from-the-icloud-escaping-apple-photos/",
 "author": {
  "name": "Willem L. Middelkoop",
  "url": "https://willem.com"
 },
 "note": "A short distillation of a longer willem.com post. Not currently published on willem.com itself.",
 "answers_question": "How do you batch rename photos by their EXIF date on Linux?",
 "text": "With your photos freed from Apple Photos, the next step is renaming every file to something meaningful. The exiftool command on Linux (also available on macOS) reads the EXIF creation date embedded in each photo and renames the file accordingly.\nThe command: `exiftool -d '%Y%m%d-%H%M%%-03.c.%%e' '-filename<CreateDate'`\nThis renames every photo to a `YYYYMMDD-HHMM` format — so `IMG_4523.jpg` becomes `20190614-1423.jpg`. Run it on a powerful machine if you have thousands of photos; Willem ran his on a server to speed things up.\nThis snippet is from the complete guide to escaping Apple's photo ecosystem.",
 "markdown_url": "https://agents.willem.com/en/snippets/batch-rename-photos-by-date-using-exif-data-on-linux/snippet.md"
}