Why Facebook photos download with the wrong date, and how to get the real dates back
You asked Facebook for a copy of your photos, unzipped it, and every picture says it was taken today. Nothing is broken on your computer. The photos really do arrive without their dates. The dates are in the same download, in a different place.
Why every photo shows the download date
A photo app decides where a picture goes on your timeline by reading a field inside the file: the EXIF tag DateTimeOriginal, shown as “Date Taken”. When a file has no such field, the app falls back to the file’s own date.
- Facebook removes most camera metadata. The copies Facebook stores and gives back usually carry no
DateTimeOriginal. - The file date is the download date. The files in the ZIP were created when Facebook built your download, or when you unzipped it. That is the date your photo app ends up using.
So fifteen years of photos land on one day.
Where the real dates are
If you request the download in JSON format, Facebook includes text files that list every photo with its dates. Depending on the year of the download, they are in your_facebook_activity/posts/, your_activity_across_facebook/posts/, posts/ or, in downloads from before 2021, photos_and_videos/:
| File | What it lists |
|---|---|
album/0.json, album/1.json… | One file per album: its name and its photos |
your_uncategorized_photos.json | Photos that are not in an album |
your_posts__check_ins__photos_and_videos_1.json | Your posts, with the photos attached to each one |
your_videos.json | Your videos |
Each photo is an entry like this one. The path in uri points to the image file in the download:
{
"uri": "your_facebook_activity/posts/media/your_posts/10154873_n.jpg",
"creation_timestamp": 1437454657,
"media_metadata": { "photo_metadata": { "exif_data": [
{ "taken_timestamp": 1437193521 }
] } }
}The numbers are seconds counted from January 1, 1970 (UTC). 1437193521 is July 18, 2015, 04:25:21 UTC.
Camera date vs. upload date: which one Facebook keeps
| Field in the JSON | What it is | When you have it |
|---|---|---|
taken_timestamp | The date the camera recorded when the picture was taken | Only for some photos: the ones whose file still had a camera date when you uploaded it |
creation_timestamp | The date the photo was uploaded to Facebook | For practically every photo |
The upload date is often the same day or a few days after the picture was taken. It can also be years off, for example when you uploaded an old scanned photo. A correct fix uses the camera date when it exists, falls back to the upload date, and tells you which one each photo got. Nobody can recover a camera date that Facebook did not keep.
One more detail: text in these files is stored in a broken encoding, so an album called “Cumpleaños” reads as “Cumpleaños” until it is repaired.
How to request the download in JSON
- On Facebook, open Settings & privacy → Settings, then Accounts Center.
- Choose Your information and permissions, then Download your information (in some accounts it is called “Export your information”).
- Choose to download to your device, and pick your Facebook profile.
- Select the information you want. For photos you need at least Posts. Set the date range to All time.
- Set Format to JSON. This is the step that matters: the default is HTML.
- Set Media quality to High, and start the download.
- Facebook notifies you when the files are ready. Large accounts get several ZIP files. Download all of them.
Facebook moves and renames these menus from time to time. If yours look different, see Facebook Help: Download a copy of your information and look for the Format option.
Put the dates back in your browser
Drop the ZIP files from Facebook. PhotoRedate reads the JSON, writes the real Date Taken into each photo and sorts them into year folders. Nothing is uploaded. Free for 25 photos.
Fix my photosDoing it by hand
For a handful of photos you can do this yourself: open the JSON file in a text editor, search for the file name, convert the number to a date with any “Unix timestamp” converter, and set the date in your photo app. Google Photos and Apple Photos both let you edit the date of a photo. For thousands of photos, people use scripts built on ExifTool, which need a programming runtime and a command line.
FAQ
Can I fix the dates if I downloaded in HTML format?
Not with PhotoRedate. Request the download again and choose JSON. Requesting it is free.
Will the date be exact?
When the JSON has a camera date, the photo gets the date the camera recorded. When it only has the upload date, the photo gets that one, which can be later than the day it was taken. PhotoRedate’s report says which photos got which.
Does this work for videos?
Videos are copied into the right year folder with their real date as the file date. The inside of the video file is not changed.
Sources
- Facebook Help: Download a copy of your information on Facebook
- addshore/facebook-data-image-exif: open-source tool and sample download (album JSON, taken_timestamp)
- farhan-mohammed/meta-data-export-image-exif-fixer: folder tree of a 2024 download and the exif_data fields
- timelinize: Facebook archive importer (folder names by year, text encoding)