Stop downloaded files opening automatically on Mac
If files spring open the instant a download finishes, Safari's "open safe files" setting is doing it. Uncheck it in Safari → Settings → General and every download lands quietly in your Downloads folder, waiting for you to look it over and open it on your own terms. Note this controls Safari's downloads; other browsers manage their own.
Turn off the auto-open behaviour
- Open Safari and choose Safari → Settings (Cmd+,).
- Select the General tab.
- Uncheck Open "safe" files after downloading.
Downloads now finish and stop — no app launches, no window pops up. If you prefer setting it from the command line, this is the exact preference, with its reverse below:
# Keep downloads from opening on their own
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
# Undo — let safe files open automatically again
defaults write com.apple.Safari AutoOpenSafeDownloads -bool true
Restart Safari to apply it. Because Safari's preferences sit in a protected container, the Terminal command needs Terminal to have Full Disk Access; if that's a hassle, the checkbox is simpler. Both work on macOS 13 Ventura, 14 Sonoma, and 15 Sequoia.
Your review-before-opening routine
The point of turning this off is to put a beat between "downloaded" and "opened." Here's a quick routine that fits into that gap:
- Go to the file, not through the app. Click the Downloads button in Safari's toolbar, or open your Downloads folder in Finder, and find the file rather than letting it find an app.
- Peek first with Quick Look. Select the file and press Space to preview a PDF, image, or document without fully opening it — enough to confirm it's what you expected. See using Quick Look for more.
- Check the details. Press Cmd+I for Get Info to see the true file type, size, and where it came from before you commit.
- Open only what you trust. Double-click when you're satisfied — or drag it to the Trash if anything looks off.
Mainspring makes Safari's auto-open setting a labelled toggle you flip without Terminal or Full Disk Access — off so downloads wait for you, on again whenever. It's one of 90+ hidden macOS settings it surfaces.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
This is a Safari setting
The checkbox lives in Safari and changes only how Safari handles its downloads. Chrome, Firefox, and Edge each decide on their own whether to open files after downloading, so if you switch browsers you'll need to set it there too. While you're organising, a tidy Downloads folder makes reviewing new arrivals far easier — clutter is where a rogue file hides.