A Quick Note Before We Dive In
Ready to upgrade your daily cognitive routine without the caffeine crash? Use discount code backup25 at checkout to save $25 on your order of NEWBRAIN.
Running an independent, bootstrapped brand takes relentless work. If this guide saved you hours of frustration and you want to support small business independence, you can also leave a direct tip via Venmo at @postawa
By: Danny Postawa | Updated: November 2026
How to Download Your Entire iCloud Photo Library Directly to an External Hard Drive on a Mac (Step-by-Step Beginner's Guide)
Back up thousands of original-quality photos and videos without filling up your Mac's storage, paying for additional backup software, or knowing anything about coding.
If you've ever tried downloading thousands of photos and videos from iCloud, you know how frustrating it can be.
Apple gives you ways to download your photos, but downloading an enormous library to an external hard drive isn't always straightforward, especially if you don't want to fill your Mac's internal storage first.
Fortunately, there's a free tool called iCloud Photos Downloader (icloudpd) that can download your iCloud photos and videos directly to an external hard drive.
I used this method for an iCloud library containing approximately 55,000 photos and videos, totaling nearly 700 GB.
And the best part? You don't need to be a programmer or know how to code.
I'm going to walk you through the entire process, including exactly what to copy and paste, what buttons to click, and how to avoid some frustrating errors I encountered along the way.
What You'll Need
- A Mac computer running a compatible version of macOS.
- An external hard drive or SSD with enough free space for your photos and videos.
- A reliable internet connection.
- Your Apple Account email address and password.
- Your iPhone or another trusted Apple device nearby for verification.
- Access to an administrator account on your Mac.
Cost: FREE. Both Homebrew and icloudpd are free, open-source tools.
Compatibility note: As of November 2026, Homebrew officially supports macOS Sequoia 15 and newer on supported Apple Silicon Macs. Some older macOS versions and Intel Macs may still work, but aren't fully supported.
Step 1: Prepare Your External Hard Drive
First, connect your external hard drive to your Mac.
Open Finder, which is the blue smiling-face icon in your Dock.
Your external hard drive should appear under Locations in the left sidebar.
Click the drive to make sure it opens.
Check the drive's format
Mac computers can read several different drive formats, but not all formats allow you to write files to the drive.
To check:
- Open Finder.
- Right-click your external hard drive.
- Select Get Info.
- Find the section labeled Format.
| Drive format | What you need to know |
|---|---|
| APFS | Excellent for drives used exclusively with Macs. |
| exFAT | Good for drives shared between Mac and Windows computers. |
| Mac OS Extended (Journaled) | Works with Macs, including external backup drives. |
| NTFS | Macs can normally read these drives but cannot write to them without additional software. |
If your drive is already APFS or exFAT and working properly, you can skip formatting.
WARNING: Formatting erases everything on the selected drive.
Do not do this if your drive contains files you want to keep.
How to format an external hard drive for Mac
If you have a new, empty drive that needs formatting:
- Press Command + Space.
- Type Disk Utility.
- Open Disk Utility.
- Select View → Show All Devices.
- Select your external hard drive's physical device in the sidebar. Double-check that it is NOT your Mac's internal drive.
- Click Erase.
- Give the drive a name, such as
iCloud Backup. - Choose APFS for Mac-only use or exFAT for Mac and Windows compatibility.
- Choose GUID Partition Map under Scheme.
- Click Erase and allow the process to finish.
Your drive is now ready.
Important: You don't need to install Western Digital, Seagate, or another manufacturer's management software just to use a normal, unlocked external hard drive. macOS already includes the tools you need.
Step 2: Install Homebrew
We're going to install something called Homebrew.
Homebrew is a free software manager for Mac computers. It makes installing utilities like icloudpd much easier.
You won't need to download a bunch of separate programs or learn programming.
Open Terminal
Terminal is already installed on your Mac.
To open it:
- Press Command + Space.
- Type Terminal.
- Press Return.
A window will appear, usually containing some text and a blinking cursor. Don't let it intimidate you. We're simply going to copy and paste commands.
Check if Homebrew is already installed
Copy the following text:
brew --version
Paste it into Terminal and press Return.
If you see a Homebrew version number, it's already installed. Skip ahead to Step 3.
If you see something like zsh: command not found: brew, Homebrew isn't available in your Terminal session yet.
Install Homebrew
Go to the official website at brew.sh, or copy the official installation command directly:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Paste it into Terminal and press Return.
The installer may ask for your Mac administrator password.
Important: When you type your password in Terminal, nothing appears on the screen. No dots, asterisks, or letters. This is normal. Type your password blindly and press Return.
You may also see a message telling you to press Return to continue. Follow the on-screen instructions.
Homebrew may need to install additional Apple Command Line Tools. Allow the installation to finish.
Don't skip the "Next steps" section
When Homebrew finishes, you should see Installation successful!
Below that, there may be a section labeled Next steps:. These instructions tell your Mac where Homebrew was installed. You must complete these steps.
On many modern Apple Silicon Macs, the commands will resemble:
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Copy and run each command separately, pressing Return after each. These example commands are for Apple Silicon Macs using the standard Homebrew location. If your installer displays different instructions, follow those instead.
Verify Homebrew was installed
Type brew --version and press Return. You should now see a Homebrew version number. Congratulations! Homebrew is installed.
Optional: Homebrew enables anonymous usage analytics by default. If you prefer to disable them, enter brew analytics off and press Return.
Step 3: Install iCloud Photos Downloader
Now we're going to install the program that will download your photos and videos. It's called icloudpd, short for iCloud Photos Downloader.
Official documentation: iCloud Photos Downloader Docs
With Terminal open, copy and paste:
brew install icloudpd
Press Return.
Homebrew will automatically download and install icloudpd and any necessary supporting software. You do not need to download Python or install anything else separately.
Verify the installation
Once Terminal finishes, type:
icloudpd --version
Press Return. You should see a version number (for example, version:1.33.0, though your version may differ). You've now successfully installed both programs.
Step 4: Create Your Photo Backup Folder
Now we're going to tell icloudpd where to download your photos. This part is especially important because we want the photos going directly to the external hard drive, not your Mac's internal storage.
- Open Finder.
- Click your external hard drive under Locations.
- Press Command + Shift + N to create a new folder.
- Name it:
iCloud Photos By Year
That's where we're going to save the backup. We're organizing the files by year instead of creating hundreds of individual folders for different days and months.
Your finished backup structure will look like this:
External Hard Drive
│
└── iCloud Photos By Year
│
├── 2021
├── 2022
├── 2023
├── 2024
├── 2025
└── 2026
Each year will contain the photos and videos from that year.
Step 5: Tell icloudpd Where to Save Your Photos
This is the step that ensures your files download directly to the external drive.
Open Terminal again. Copy and paste the following, but DO NOT press Return yet:
icloudpd --directory
(Make sure there is a space after --directory.)
Now:
- Open Finder.
- Locate the
iCloud Photos By Yearfolder you just created. - Drag that folder directly from Finder into your Terminal window.
Your Mac will automatically insert the folder's exact location into the command. It might look something like this:
icloudpd --directory /Volumes/iCloud\ Backup/iCloud\ Photos\ By\ Year
Your drive may have a different name, and that's completely fine. Do not replace the automatically inserted location with the example above. This method avoids having to manually figure out file paths.
Verify: Make sure the path contains /Volumes/ followed by the name of your external drive, and confirm the drive is connected. Do not press Return yet.
Step 6: Add Your Apple Account and Download Settings
With the previous command still sitting in Terminal, press Space once at the end.
Now copy and paste this text right after it:
--username "YOUR-APPLE-EMAIL" --password-provider console --size original --folder-structure "{:%Y}" --file-match-policy name-id7 --recent 10 --log-level info
Replace YOUR-APPLE-EMAIL with the email address associated with your Apple Account. Keep the quotation marks around your email.
Your complete command should look similar to this:
icloudpd --directory /Volumes/MyDrive/iCloud\ Photos\ By\ Year --username "you@example.com" --password-provider console --size original --folder-structure "{:%Y}" --file-match-policy name-id7 --recent 10 --log-level info
What do these settings mean? Don't worry about coding; here is what we're telling the program:
-
--directory: Download files into your external hard drive folder. -
--username: Use your Apple Account to access iCloud. -
--password-provider console: Ask for your password securely inside Terminal instead of exposing it in the command. -
--size original: Request original-quality photos and videos. -
--folder-structure "{:%Y}": Organize everything into folders based on the year created. -
--file-match-policy name-id7: Add unique identifiers to filenames to avoid conflicts. -
--recent 10: Download only 10 recent items for our initial test. -
--log-level info: Display basic progress information.
This test lets us confirm that everything is working before downloading thousands of files.
Step 7: Sign In to iCloud
Now press Return in Terminal.
icloudpd will attempt to connect to your Apple Account. You may see a prompt asking for your iCloud password. Enter your password directly into Terminal. (Remember, characters won't show on screen as you type).
Apple Two-Factor Authentication
Apple will send a verification code or approval request to your iPhone or another trusted device. Make sure your device has internet access.
When prompted for the six-digit code, enter it directly into Terminal. Everything happens inside Terminal; you will not see a separate application window open.
Step 8: What If Apple Authentication Fails?
If you see an error like:
Apple iCloud setup is not complete.
Please log into https://icloud.com/
(AUTHENTICATION_FAILED)
Your Apple Account may require additional action, such as accepting updated terms and conditions.
Here's how to fix it:
- Open Safari.
- Visit iCloud.com.
- Sign in with the same Apple Account.
- Accept any updated terms and conditions if prompted.
- Open Photos on iCloud.com to confirm your library opens properly.
- Return to Terminal and try your test download command again.
Security Note: Avoid posting screenshots of your complete authentication output online, as diagnostic responses can contain session data.
Step 9: Verify Your Test Download
Once Terminal finishes downloading your test files:
- Open Finder.
- Click your external hard drive.
- Open
iCloud Photos By Year. - Look for folders named after years and open one.
- Open several files to make sure they display correctly.
If the files are there and open correctly, congratulations! Your setup is working.
Step 10: Download Your Entire iCloud Photo Library
Now we're ready for the full backup. This time, we're removing the option that limits the download to 10 items.
- Return to Terminal. Press the Up Arrow on your keyboard until you see your complete icloudpd download command from earlier.
- Find this exact text inside the command:
--recent 10 - Delete only those three words, leaving the rest of your command untouched.
Your command should still feature --size original --folder-structure "{:%Y}" --file-match-policy name-id7 --log-level info and point to your external drive directory.
Press Return.
icloudpd will begin processing your entire library. Files already downloaded during your test will be recognized automatically rather than downloaded twice. The program's standard copy mode does not delete your photos from iCloud.
Step 11: Prevent Your Mac From Falling Asleep
If you're downloading hundreds of gigabytes, the process could run for many hours. You don't want your computer falling asleep halfway through.
Change your Mac's power settings
- Click the Apple menu.
- Open System Settings.
- Select Energy (or Energy Saver).
- Find Prevent automatic sleeping when the display is off and turn it ON.
Use the built-in caffeinate command
For extra protection while your download runs:
- Open a second Terminal window using Command + N.
- Type
caffeinate -iand press Return.
This prevents idle sleep while running. When your download finishes later, return to that window and press Control + C to stop it.
Step 12: What If the Download Stops or Gets Interrupted?
This is one of the best features of icloudpd. If your connection drops, your Mac restarts, or you need to pause:
- Click the main Terminal window.
- Press Control + C to stop the active download.
- When ready to resume, ensure your external drive is plugged in, press the Up Arrow to pull up your full-download command, and press Return.
It will automatically pick up where it left off without duplicating downloaded files.
Step 13: Verify That Your Entire Library Downloaded
When Terminal finishes running:
- Open your backup folder in Finder.
- Check that folders for expected years are present.
- Open photos and video clips from different years to test them.
- Right-click your main backup folder and select Get Info to inspect the total storage size.
Note: Apple Live Photos may download as separate image and video files. Furthermore, icloudpd backs up asset files rather than replicating Apple Photos app albums and internal edits. For total safety, maintain multiple backup copies.
Frequently Asked Questions
Does icloudpd download photos directly to my external hard drive?
Yes. As long as your directory path points to your connected external drive, files are written right there without flooding your Mac's internal storage.
Will downloading my photos delete them from iCloud?
No, the commands in this guide use safe copy mode. Your photos remain safely in iCloud.
Can I still use my Mac and iPhone while downloading?
Yes. You can use your computer and phone normally while the download runs quietly in the background.
How much hard drive space do I need?
Your external drive should have more available space than your total iCloud photo library size (e.g., if you have 700 GB of photos, a 1 TB or larger drive is recommended).
Final Thoughts
Downloading a massive iCloud photo library doesn't require selecting thousands of images manually or buying expensive commercial software.
Using Homebrew and icloudpd, you maintain complete control, save your files directly to an external drive, and keep your memories safe outside of cloud dependence.
Official Resources
- Homebrew: brew.sh
- Homebrew Documentation: docs.brew.sh/Installation
- iCloud Photos Downloader: icloud-photos-downloader.github.io
- icloudpd Command Reference: Reference Guide
- icloudpd Naming Options: Folder Structure Options
Guide prepared November 2026. Software instructions and Apple authentication requirements may change. Always verify commands against official developer documentation before installing software.
