- Published on
- Updated Oct 20, 2026
- 2 min read
> How to Change the Screenshot Location on Mac
macOS saves screenshots to your Desktop by default, which gets messy fast if you take a lot of them. There are two ways to change this: Terminal or the built-in Screenshot app.
Terminal Method
Create your destination folder and set it as the default:
mkdir -p ~/Pictures/Screenshots
defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall SystemUIServer
That last command restarts the system service so the change takes effect immediately.
You can use any path you want. Some other options:
# Documents folder
defaults write com.apple.screencapture location ~/Documents/Screenshots
# iCloud Drive (if you want them synced)
defaults write com.apple.screencapture location ~/Library/Mobile\ Documents/com~apple~CloudDocs/Screenshots
To switch back to Desktop:
defaults write com.apple.screencapture location ~/Desktop
killall SystemUIServer
Using Command-Shift-5
If you'd rather not use Terminal, press Command-Shift-5 to open the Screenshot toolbar.

Click Options, then pick a location under "Save to" or choose Other Location... to select a custom folder.

The change applies immediately.
Changing the File Format
While you're at it, you can also change the default format from PNG if you want smaller files:
defaults write com.apple.screencapture type jpg
killall SystemUIServer
Other options are png (default), pdf, and tiff.
// Continue_Learning
Why Xcode Takes So Much Space (and How to Free 50GB+)
Xcode eats storage through DerivedData, old simulators, device support files, and archives. Here's what each folder is and what is safe to delete.
Prevent Your Mac from Sleeping While Claude Code Works
Set up Claude Code to automatically keep your Mac awake during long tasks and let it sleep again when finished, using hooks and the caffeinate command.
Expo on a Device over LAN: REACT_NATIVE_PACKAGER_HOSTNAME
Set REACT_NATIVE_PACKAGER_HOSTNAME to your Mac's .local name so an Expo dev build on a physical device finds Metro over Bonjour, no Expo Go needed.
// Stay Updated
Get notified when I publish new tutorials on Swift, SwiftUI, and iOS development. No spam, unsubscribe anytime.