macos

Change Screenshots Directory in macOS

macOS saves all screenshots to the Desktop by default. If you take screenshots frequently – for documentation, bug reports, or content creation – your Desktop fills up fast and becomes hard to navigate. The fix is to redirect screenshots to a dedicated folder and customize settings like file format, naming prefix, and shadow effects.

Original content from computingforgeeks.com - post 62856

This guide covers how to change the screenshots directory in macOS using both the Terminal and the built-in Screenshot app. We also cover changing the default file format, renaming the filename prefix, disabling drop shadows, and resetting everything back to defaults. These steps work on macOS Ventura, Sonoma, Sequoia, and newer releases. For a full list of essential macOS keyboard shortcuts, check out our dedicated cheat sheet.

Prerequisites

  • A Mac running macOS Monterey 12 or later (all steps tested on macOS Sequoia 15)
  • Access to the Terminal app (Applications > Utilities > Terminal)
  • Basic comfort running commands in Terminal

Step 1: Create the Destination Folder

Before changing the screenshot location, create the folder where you want screenshots stored. A common choice is a Screenshots folder inside your Pictures directory.

mkdir -p ~/Pictures/Screenshots

You can choose any location you prefer – ~/Documents/Screenshots, ~/Desktop/Screenshots, or even a folder inside a cloud sync service like iCloud Drive or Dropbox.

Step 2: Change Screenshots Directory with Terminal

The defaults write command modifies macOS system preferences from the command line. Use it to set the com.apple.screencapture location to your new folder.

defaults write com.apple.screencapture location ~/Pictures/Screenshots

Verify the new location is set correctly by reading the preference back.

defaults read com.apple.screencapture location

The command should return the full path to your new screenshots folder:

/Users/yourusername/Pictures/Screenshots

Step 3: Restart SystemUIServer

The screenshot service is managed by SystemUIServer. Restart it so macOS picks up the new location immediately without needing to log out.

killall SystemUIServer

Your menu bar icons may briefly disappear and reappear – that is normal. Take a test screenshot with Cmd+Shift+3 and confirm it lands in your new folder.

ls ~/Pictures/Screenshots/

You should see your new screenshot file listed in the output.

Step 4: Change Screenshot Location via the Screenshot App

If you prefer a graphical approach, macOS Mojave and later include a built-in Screenshot app with a location picker. This is the easiest method for users who want to avoid the Terminal entirely.

  • Press Cmd+Shift+5 to open the Screenshot toolbar at the bottom of the screen
  • Click Options in the toolbar
  • Under Save to, select one of the preset locations (Desktop, Documents, Clipboard, Mail, Messages, Preview) or click Other Location to choose a custom folder
  • Navigate to your target folder (e.g. ~/Pictures/Screenshots) and click Choose

The change takes effect immediately – no restart needed. Any screenshot you take from this point forward saves to the selected folder. This method sets the same com.apple.screencapture location preference that the Terminal command uses, so both methods are interchangeable. Refer to the official Apple screenshot documentation for more details on the Screenshot toolbar options.

Step 5: Change the Screenshot File Format

macOS saves screenshots as PNG by default. PNG is lossless and works well for most cases, but you can switch to other formats depending on your needs. If you work with Zsh on macOS or manage content workflows, choosing the right format saves disk space and processing time.

Supported formats are png, jpg, tiff, gif, pdf, and bmp. To switch to JPG for smaller file sizes:

defaults write com.apple.screencapture type jpg

To switch to PDF (useful for documentation that needs to stay scalable):

defaults write com.apple.screencapture type pdf

To switch to TIFF (lossless, larger files):

defaults write com.apple.screencapture type tiff

Verify the current format setting:

defaults read com.apple.screencapture type

The output shows the currently configured format, for example jpg if you set JPG above.

Step 6: Change the Screenshot Filename Prefix

By default, macOS names screenshots Screenshot YYYY-MM-DD at HH.MM.SS. You can change the prefix to something shorter or more descriptive for better file organization.

defaults write com.apple.screencapture name "capture"

After setting this, new screenshots will be named capture YYYY-MM-DD at HH.MM.SS.png. You can use any prefix you want – screen, snap, your project name, or anything that fits your workflow.

Confirm the new prefix is active:

defaults read com.apple.screencapture name

The command returns the prefix string you just set.

Step 7: Disable Screenshot Drop Shadow

When you capture a single window with Cmd+Shift+4+Space, macOS adds a drop shadow around the window. This looks nice in presentations but adds extra padding and file size. For technical documentation or blog content, disabling the shadow produces cleaner images.

defaults write com.apple.screencapture disable-shadow -bool true

Restart SystemUIServer to apply the change:

killall SystemUIServer

Take a window screenshot to confirm – the captured image should have clean edges with no shadow padding. If you manage a Homebrew setup on macOS, this pairs well with automating screenshot workflows via Homebrew-installed tools.

Step 8: Reset Screenshot Settings to Default

If you want to undo all customizations and go back to the macOS defaults, delete each preference key individually.

Reset the screenshot location back to Desktop:

defaults delete com.apple.screencapture location

Reset the file format back to PNG:

defaults delete com.apple.screencapture type

Reset the filename prefix back to “Screenshot”:

defaults delete com.apple.screencapture name

Re-enable window screenshot shadows:

defaults delete com.apple.screencapture disable-shadow

Restart SystemUIServer to apply all resets:

killall SystemUIServer

After restarting, screenshots will save to the Desktop in PNG format with the default “Screenshot” prefix and window shadows enabled.

macOS Screenshot Keyboard Shortcuts Reference

Here is a quick reference for the built-in screenshot keyboard shortcuts available in macOS.

ShortcutAction
Cmd+Shift+3Capture the entire screen
Cmd+Shift+4Capture a selected area (drag crosshair)
Cmd+Shift+4+SpaceCapture a specific window or menu
Cmd+Shift+5Open the Screenshot toolbar with all options
Cmd+Shift+6Capture the Touch Bar (MacBook Pro with Touch Bar only)

Hold Control along with any shortcut above to copy the screenshot to the clipboard instead of saving it as a file. This is useful when you want to paste directly into a document or chat application without cluttering your screenshots folder.

Conclusion

You now have full control over where macOS saves screenshots, what format it uses, the filename prefix, and whether window shadows are included. Setting a dedicated screenshots folder keeps your Desktop clean and makes it easier to find captures when you need them. For related terminal productivity tools on macOS, consider trying Nu Shell as an alternative to the default shell.

Related Articles

Backup Backup Linux, Mac, and Windows Systems using Duplicati macos Setup Local ad blocker on Linux | macOS using Maza Containers How To Run macOS in Docker Container using Docker-OSX macos Analyze and Clean Your macOS using Clean Me

Leave a Comment

Press ESC to close