How To Correctly Migrate Away From Google Photos (to iCloud)

Downloading all pictures from Google Photos via Takeout often messes up the EXIF data of images. If re-importing elsewhere, it's important to fix that data in order to have a successful import that stays in chronological order and with the correct GPS coordinates.

Downloading All Files From Google Photos

  1. Navigate to Google Takeout
  2. Deselect all, and select the Photos archive
  3. Download and unzip your archive.

Each picture and video from Takeout will be accompanied by a metadata.json file containing all the EXIF data. Some pictures will even be stripped of their own EXIF data, usually Location and Date values, making the import process to another platform messy. We will need to merge the JSON and image file back together if we want to correctly import those images elsewhere.

Fixing Image EXIF Data

  1. Install This will allow us to read and write EXIF data, specifically from the JSON to the image/video.
  2. Open Terminal and use the below line in the codeblock. Replace <DirToProcess> with your unzipped folder of images (you can drag the folder in terminal and it will populate the path). The ExifTool will go through all subdirectories so use the root folder’s path.

exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" -ext jpg -overwrite_original -progress <DirToProcess>

This will copy all GPS location data, tags, captions, descriptions, dates and time taken information.

Replace jpg with png if you have any, followed by mp4 or mov or any other video format you might have in there until you are sure you have processed all file types within the archive.


  • See all Google Takeout’s JSON file data and names here.
  • See all Exiftool options here.
  • Note that this will overwrite all files in that directory so keep the original archive zip as a backup.
  • As mentioned in the comments, you can also use -ext "*" to select all file types, however, I have not tested it.

Moving Library to iCloud

  1. Use on Mac to upload your pictures. Make sure to use the File > Import instead of dragging everything in the app, it works much better for large libraries.
  2. Everything should import well. If there are some pictures that show up at the wrong date, manually correct them with Image > Adjust Date and Time.

Taking Care of Your Existing Google Photos Library

  1. If you are keeping Google Photos as a secondary backup, there’s a couple of things to do. The Google Photos phone app will recognize all newly added pictures in your iCloud as new pictures and will start uploading them again as duplicates. I couldn’t find a way to prevent that so I let the Google Photos app upload the whole library again.
  2. Once all pictures are uploaded to Google Photos, navigate to where pictures will be sorted by Upload Time. Select all newly added pictures and delete them. Google Photos will not reupload the deleted duplicates. It will continue uploading new pictures you take on your phone in the future as usual.