It's best to use JPEG or PNG file formats when resizing images for social media as they are widely supported and maintain good quality.