Save Mac files locally so they work offline
If you work on planes, trains, or Wi-Fi you can't trust, a file that lives in iCloud is a file that might not be there when you open your laptop. macOS defaults new documents to iCloud Drive, and cloud-first storage can offload the actual bytes to save space — leaving you staring at a spinner with no signal. Point new documents at your Mac's own disk and they're always physically present, online or off.
Set new documents to save on-device
One global preference decides whether a fresh Save sheet opens to iCloud Drive or to local storage. In Terminal (Applications → Utilities), run:
# New documents save to your Mac's disk, available offline
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Undo — send new documents back to iCloud Drive by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool true
After this, apps like TextEdit, Preview, Pages, and Numbers propose a folder on your Mac when you save something new. Quit and reopen an app (Cmd+Q, then launch it again) so it reads the new setting. The command works the same on macOS 13 Ventura through 15 Sequoia, and it changes only where new files land — it never moves anything already in iCloud.
Why "in iCloud" doesn't always mean "on your Mac"
The offline trap isn't just about the save location — it's about eviction. When storage runs low, iCloud Drive can remove the local copy of files you haven't opened recently, keeping only a placeholder with a small cloud-download icon. Online, that file re-downloads on demand and you barely notice. Offline, that download can't happen, and the document simply won't open. Saving locally sidesteps the whole mechanism: a file written to your Mac's disk stays on your Mac's disk.
If you want documents you've already got in iCloud to stay downloaded, that's a related setting — see how to keep iCloud files downloaded on Mac. The command here handles everything new from this point forward.
A reliable local folder to aim at
Once the default is local, it helps to have one folder you always save into so nothing goes missing before a trip. A simple routine:
- Keep a top-level ~/Work or ~/Offline folder outside anything synced.
- The first time you save after changing the setting, choose that folder — most apps remember it and reuse it as the default location next time.
- Before you go offline, open the folder in Finder and confirm the files show real sizes, not cloud-download badges.
That last check takes ten seconds and is the difference between a productive flight and a locked-out one.
Mainspring makes "Save new documents to the Mac" a single labelled toggle you flip before a trip and flip back after — no Terminal, one click to reverse. It's one of 90+ hidden macOS settings the app keeps honest and reversible.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Stop macOS offloading the copies you keep
Local-by-default handles new files; for the ones already on your Mac, the setting that offloads them is Optimize Mac Storage. Learn how Optimize Mac Storage works and when to turn it off so your important files stay downloaded.