# Choose screenshot format

Choose the screenshots image format.

  • Tested on macOS:
    • Big Sur
    • Catalina
    • Mojave
  • Parameter type: string

# Set to png (default value)

defaults write com.apple.screencapture type -string png
  • The generated image is a png

# Set to jpg

defaults write com.apple.screencapture type -string jpg
  • The generated image is a jpg

# Read current value

defaults read com.apple.screencapture type

# Delete current value

defaults delete com.apple.screencapture type