By default, screenshots save as .png files in macOS. They look awesome but they are not compressed and take a lot of disk space.
If you’re sharing to Facebook and Twitter and don’t really care about screenshot quality, open Terminal and paste the following command:
defaults write com.apple.screencapture type jpg
You can also use other formats like .pdf, .tiff, etc. Just change the last letters of the code to your preference.