Facebook photos wrong date: put the real dates back
Download your information from Facebook and every photo in the zip carries the day of the download, so years of pictures land in one folder in your gallery. Facebook keeps the recorded date in the JSON files of the same export, not in the picture file. Each photo and video has a record with the path to its file and the date Facebook recorded when it was added to Facebook. A fix reads the JSON and writes that date into each file.
Nothing is uploaded. Facebook Date Fixer runs in your browser tab. The first 200 files are free; $9.99 once fixes the rest.
Check my files, free Buy on Gumroad, $9.99
Why the download loses the date
Facebook exports the media files on their own and leaves the date in a matching JSON record. Two fields do the work:
uri: the path of the media file inside the export, used to pair the record with the right photo or video.creation_timestamp: the date Facebook recorded for that item, in Unix seconds. A value such as 1500000000 is 14 July 2017, 02:40 UTC.
Photo albums are listed in photos_and_videos/album/0.json, 1.json and so on, each with a photos list. Videos are listed in photos_and_videos/your_videos.json under videos. The media files sit in the album folders and the Videos folder next to those JSON files.
The free routes
These command-line scripts are published by other people. Each reads the export JSON and writes the dates into the files; you run them on your own computer.
- nathan-v's Facebook photos and videos script: walks the album JSON (
photos) andyour_videos.json(videos) and takes the date fromcreation_timestamp. - addshore's facebook-data-image-exif: writes EXIF data back into Facebook images, reading
taken_timestamp,modified_timestampandcreation_timestampfrom the export. There is also a write-up on addshore.com. - evan-schiewe's facebook-photo-export-exif-restore: restores EXIF dates to the photos in a Facebook photo export.
Messenger threads have their own script, Yard1's messengerexif.py, covered on the Messenger photos no date page.
How Facebook Date Fixer does it in the browser
- Drop the export zips, or the unzipped folder, on the page. Nothing to install and no command to write.
- Scan every JSON file in the export, collect each
uriwith itscreation_timestamp, and match a file by the longest matching path ending. - Write the date Facebook recorded for each photo into the file as EXIF
DateTimeOriginalandCreateDate, and give each video its creation time. - Keep a date a photo already carries from its camera, so a capture date stays as it is.
- Remove duplicates between folders, and return one zip per year and month with a CSV report listing every file and its date.
- Instagram exports are handled by the sibling tool, ExportFixer.
Facebook Date Fixer compared with the free scripts
| Price | How you run it | What it does | |
|---|---|---|---|
| nathan-v gist | Free | Command line, on your computer | Date from creation_timestamp for albums and videos |
| addshore facebook-data-image-exif | Free | Command line, on your computer | Writes EXIF dates from the JSON timestamps into images |
| evan-schiewe exif restore | Free | Command line, on your computer | Restores EXIF dates to a photo export |
| Facebook Date Fixer | First 200 files free; $9.99 once | Web page in your browser | Matches every file to its JSON entry, writes the date, keeps camera dates, removes duplicates, returns one zip per year and month with a CSV report |
Questions
Why do Facebook photos show the wrong date after a download?
The downloaded files carry the day the export was made, so the gallery groups them by that day. The date Facebook recorded for each photo is kept in the export JSON, and writing that date into the file puts the photo back in its place.
Where are the dates in the download?
In the JSON files: album JSON has a photos list and your_videos.json has a videos list, and each entry pairs a uri path with a creation_timestamp in Unix seconds.
Do I need to request the export again?
If your export is in JSON format, no. If you chose HTML, request a JSON copy: Settings, Accounts Center, Your information and permissions, Download your information, then Format JSON.
What does it cost, and is anything uploaded?
Nothing is uploaded; the page runs in your browser and only your license key goes to Gumroad when you unlock. The first 200 files are free and $9.99 once unlocks the rest, with no subscription.
I make Facebook Date Fixer and sell it. Not affiliated with Facebook or Meta.