Terminal Hacks - Set Screenshot's Default File Type

When using the macOS Screenshot application, screenshots are saved as PNG images (.png files) by default. This post will show you how you can change this default file type.

Terminal Hacks - Set Screenshot's Default File Type

Change Default File Type

Open Terminal: Finder > Applications > Utilities

In Terminal, type or paste one of the following…

defaults write com.apple.screencapture type JPG

JPG Joint Photographic Experts Group [raster format]

defaults write com.apple.screencapture type PDF

PDF Portable Document Format [vector format]

defaults write com.apple.screencapture type PNG

PNG Portable Network Graphics [raster format]

defaults write com.apple.screencapture type TIFF

TIFF Tagged Image File Format [raster format]

(return)


Originally posted 11 January, 2025. Updated 27 July, 2026.

Read on Medium

Apple macOS Terminal system management How To...