How to move your Google Photos library to a NAS
By Isaac Griffiths, developer of SMBDrop ·
Google Photos has no "sync to my NAS" switch, and NAS photo apps can't pull your library out of Google. The route that gets everything is Google Takeout: Google packs your library into archives, you download them, and then you sort out the result on the NAS. That last part is where most people get stuck, mostly over dates.
This guide goes through the export, the download, the clean-up and the checks, then what to do about the photos still on your iPhone.
Before you start: what you'll actually get
- Takeout gives you what Google stored. If photos were uploaded in Storage saver (once called High quality), Google compressed them at upload, and photos over 16 MP were resized. Takeout can't give you the originals back. If you have the originals elsewhere, such as on your iPhone, use those.
- Dates live in separate JSON files. Each photo comes with a JSON "sidecar" holding its date, location and description. Photo apps on a NAS read dates from inside the file, not from the JSON.
- Album folders and duplicates. The export has folders by year and by album, and the same photo can appear in more than one.
- Edited photos come out twice: the original, and an
-editedcopy. - Live Photos arrive as two files, a still and a short video with the same name.
Step 1: Request the export
- On a computer, go to takeout.google.com and sign in.
- Click Deselect all, then tick Google Photos only. Leave All photo albums included as it is unless you only want some.
- Click Next step. Choose Send download link via email, Export once, file type .zip, and a file size.
- Click Create export.
On file size: Takeout splits the library into archives of at most the size you pick. With the default 2 GB, a 120 GB library is about 60 files. 50 GB means far fewer files, but if one fails to download you redo more. If you'll save the archives to a FAT32 drive, stay at 2 GB, because FAT32 can't hold a file of 4 GB or more. I'd pick 10 GB for most libraries. Zip opens everywhere; .tgz can be awkward on Windows.
Google emails you when the export is ready. That can take hours or days for a big library. The links expire after about a week, and each archive can only be downloaded a limited number of times, so plan to download soon after.
Step 2: Download the archives to the NAS
Download on a computer with a wired connection if you can, and save the archives straight into a folder on the NAS, for example Takeout/zips, mapped or mounted over SMB. Keep the zips until you've finished and checked everything. They're your way back if a step goes wrong.
Some NAS systems can also download with their own download manager, but Takeout links need you to be signed in to Google, so a browser on a computer is usually simpler.
Step 3: Extract everything into one folder
Extract all the archives into one folder, for example Takeout/extracted. They share a folder structure (Takeout/Google Photos/...), so extracting them together merges the year and album folders. Do this on the NAS if it has an archive tool, or on a computer writing to the NAS.
Step 4: Put the dates back into the files
Without this step, a NAS photo app may show thousands of photos on the day you exported them, which one ExifTool forum poster found after a long indexing run on their NAS. Camera photos usually still have their date inside the file; screenshots, images saved from chats, and photos whose date you corrected in Google Photos are the ones that depend on the JSON.
The free, popular tool for this is Google Photos Takeout Helper (GPTH), a community project. It matches each photo with its JSON, sets the dates, removes the duplicates from album folders, and can sort everything into year and month folders. Notes:
- Work on a copy, and keep the original zips. GPTH moves files around, and if it stops part-way you start again from the zips.
- Some versions set the file's modified date rather than writing the date inside the photo. NAS photo apps generally read the date inside the file, so check what your version does, and use ExifTool to write the dates in if needed.
- A few photos will end up without a date, often because Google truncated a long filename and the JSON no longer matches. Expect a small "date unknown" folder to sort by hand.
- The JSON naming has changed over time (newer exports use names like
IMG_1234.jpg.supplemental-metadata.json), so use a recent version of whatever tool you choose.
Paid tools do the same job with a graphical interface. If you plan to run Immich on the NAS, its immich-go uploader can read a Takeout archive directly.
Step 5: Check before you delete anything from Google
- Compare counts. Google Photos doesn't show a total in one place, but the size of your library in Google's storage settings against the size of the sorted folder is a reasonable first check.
- Spot-check a sample: an old photo, a screenshot, a video, a Live Photo and something from a shared album. Open each on the NAS and check the date.
- Keep a second copy of the sorted library somewhere other than the NAS before you delete anything from Google. Freeing up storage safely has a verification routine that applies here too.
The photos still on your iPhone
If your iPhone has been backing up to Google Photos, the phone's Photos library may still hold the originals, including any that Google stored in Storage saver. Those are better copies than the Takeout versions. Send them from the iPhone to the NAS directly, then keep the Takeout export for everything that's no longer on the phone. If you also used iCloud Photos, moving iCloud Photos to a NAS covers getting those originals out.
Where SMBDrop fits
Disclosure: I make SMBDrop. It can't read your Google Photos library or a Takeout archive; the steps above are done on a computer.
It helps with the iPhone side. It sends the photos and videos in your iPhone's Photos library to a folder on the NAS as the original files, with Live Photos as both halves and dates and metadata kept in the files, so they need no JSON clean-up. With YYYY/MM date folders turned on, they land in year and month folders, which you can line up with how you sorted the Takeout export. Files with the same name and size already on the share are skipped.
FAQ
Can my NAS download my Google Photos library directly?
Not in a practical way. Google Takeout is the route that gets the whole library: export from takeout.google.com, download the archives to the NAS, and then fix dates and duplicates.
Why are the dates wrong on photos from Google Takeout?
Takeout puts each photo's date, location and description in a separate JSON file. Files without a date inside them, such as screenshots, show the export date until a tool like Google Photos Takeout Helper or ExifTool writes the dates back.
Does Google Takeout give me my original photos?
It gives you what Google stored. Photos uploaded in Storage saver were compressed when uploaded, and Takeout can't restore them. Use the originals on your iPhone or computer if you still have them.
Which Takeout file size should I choose?
Larger archives mean fewer files to download, but a failed download costs more. 10 GB suits most libraries. Use 2 GB if you'll save to a FAT32 drive, which can't hold files of 4 GB or more.
