This brief tutorial will show you how to change the default file format for screenshot (which is .png) to .jpg, .gif or even .pdf.

As we outlined in the introduction to Apple Keyboard shortcuts tutorial, taking a screenshot in OS X is as easy as apple command key + apple shift key + 3 (Command+Shift+3, to take a screenshot of the entire screen) or apple command key + apple shift key + 4 (Command+Shift+4, to take a screenshot of a region of the screen). The resulting screenshots will appear on your Desktop as PNG files.

a png file on the OS X desktop

Open up a Terminal by selecting Applications -> Utilities -> Terminal. Enter the following command:

defaults write com.apple.screencapture type PDF

OS X Terminal issuing the command to change the default screenshot typeNow sign out (click the “Apple Button” from the Menu Bar and select Log Out Your Name…. Remember to save all open documents etc before you log out.

When you sign back in again, take another screenshot. This time it will be a PDF.

OS X desktop with a PDF file

To change formats again replace PDF in the line “defaults write com.apple.screencapture type PDF” to JPG, GIF or PNG to reset it back to the default.