By default, macOS saves screenshots in the PNG format on your desktop. However, you can change this default file format to JPEG, GIF, TIFF, or PDF using simple Terminal commands.
Supported File Formats
macOS allows you to change the default screenshot file format to the following:
JPEG
GIF
TIFF
PDF