Set A Screenshot’s Default File Type In Mac OS Terminal

Input/Output #6 Terminal Hacks: Set Screenshot's Default File Type artwork

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

Change Default File Type

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste one of the following…

JPG Joint Photographic Experts Group [raster format]
defaults write com.apple.screencapture type JPG

PDF Portable Document Format [vector format]
defaults write com.apple.screencapture type PDF

PNG Portable Network Graphics [raster format]
defaults write com.apple.screencapture type PNG

TIFF Tagged Image File Format [raster format]
defaults write com.apple.screencapture type TIFF

(return)

Dates posted and updated.

Originally posted 27 April, 2025.

Other Posts