Guide
How to reduce image file size for Instagram and social media
Every major social platform re-compresses your images automatically. The best way to preserve quality is to upload at the correct dimensions and let the platform work from a good source. This guide covers what that looks like for each major network.
Why social platforms re-compress your images
Every major social media platform — Instagram, Facebook, Twitter/X, LinkedIn, TikTok — automatically re-compresses images after upload. They do this to reduce storage costs and speed up content delivery across their global networks. No matter how carefully you compress an image before uploading, the platform will run it through its own pipeline.
This creates a practical implication: uploading an already heavily compressed image compounds the damage. The platform starts with a lower-quality source and then applies its own compression on top, producing a result that is visibly worse than it would have been from a better original.
The right strategy for social media is therefore the opposite of what many people assume. Upload at good quality and the right dimensions. Let the platform do the compression. Do not pre-compress aggressively and then upload a degraded file as the source.
Instagram: dimensions and what matters most
Instagram supports three main aspect ratios for feed posts: square (1:1), portrait (4:5), and landscape (1.91:1). Portrait 4:5 is generally considered the best choice for feed posts because it takes up the most vertical screen space, which keeps content visible in the feed longer as users scroll.
For feed posts, Instagram recommends 1080 pixels wide. For portrait orientation at 4:5, that means 1080 by 1350 pixels. For square posts, 1080 by 1080 pixels. For landscape, 1080 by 566 pixels. Uploading at exactly these dimensions means Instagram does not need to resize the image before its compression pipeline, which produces cleaner results.
Instagram Stories and Reels use a 9:16 vertical format at 1080 by 1920 pixels. For Stories, this is the only ratio that fills the screen correctly. Uploading at any other ratio will either be letterboxed or cropped in ways you cannot control.
- Feed portrait (best for engagement): 1080 x 1350 px (4:5 ratio).
- Feed square: 1080 x 1080 px (1:1 ratio).
- Feed landscape: 1080 x 566 px (1.91:1 ratio).
- Stories and Reels: 1080 x 1920 px (9:16 ratio).
- Upload as JPG at quality 85+ for best post-compression results.
Facebook: feed posts, covers, and ads
Facebook feed posts display images at 1200 by 628 pixels for link previews and at up to 1200 by 1200 pixels for square photo posts. Profile cover photos are 820 by 312 pixels on desktop. For Facebook ads, the recommended size is 1200 by 628 pixels for link ads, though 1:1 square at 1080 by 1080 pixels tends to perform better on mobile placements.
Facebook re-compresses images significantly, and its compression is particularly aggressive for images that contain large areas of flat color, gradients, or text overlays. If you are creating graphic images with text for Facebook posts, you may notice banding or blurring in those areas after upload. Using PNG instead of JPG for text-heavy graphics can help because PNG is lossless and gives the Facebook compression a better source to work from.
For standard photo posts on Facebook, upload as JPG at quality 85 or higher at the correct dimensions. For graphics with text or flat colors, use PNG as the source format for better results after the platform's compression.
Twitter/X, LinkedIn, and other platforms
Twitter/X recommends images at 1200 by 675 pixels for in-feed photos in a 16:9 landscape format. The platform supports up to 5 MB for JPG and PNG uploads. Twitter's re-compression is less aggressive than Instagram's and Facebook's for standard photos, but text overlays and detailed graphics can still suffer. Upload at the correct dimensions and quality 85 or higher.
LinkedIn recommends 1200 by 627 pixels for post images. Profile background photos should be 1584 by 396 pixels. LinkedIn's compression for standard photos is generally reasonable, but the platform has historically applied heavy compression to images that contain large amounts of text. Keep text overlays minimal or design at a larger base size than you think you need.
Pinterest recommends a 2:3 ratio — for example, 1000 by 1500 pixels — because its vertical feed is designed for portrait content. TikTok posts are primarily video, but cover thumbnails follow the same 9:16 vertical format as Instagram Reels. YouTube thumbnails are 1280 by 720 pixels in a 16:9 format.
What format to use for social media uploads
JPG is the most practical format for photo content across all platforms. Upload at quality 85 to 90, at the correct dimensions, and the platform compression pipeline will produce the best possible result for your content type.
PNG is better for graphics with text, logos, illustrations, and images with large areas of flat color. The lossless source gives the platform's compression a higher-quality input, which tends to produce less banding and blurring in flat areas.
WebP is not widely supported as an upload format on social media platforms. Most platforms will reject WebP uploads or convert them in ways you cannot control. Convert WebP images to JPG or PNG before uploading to social media.
- Photos: upload as JPG at quality 85 to 90.
- Graphics with text or flat color: upload as PNG.
- Convert WebP to JPG or PNG before uploading to any social platform.
- Do not heavily pre-compress images before uploading — let the platform do it from a good source.
A simple social media image workflow
The most reliable workflow is: prepare the image at the correct dimensions for the specific platform and placement, save at high quality in the right format, and upload directly. Avoid adding extra compression steps before the upload.
If you are creating content across multiple platforms, start with the largest required dimensions and resize down for each platform rather than starting small and trying to upscale. A 1080 by 1920 pixel Stories image can be cropped and resized for a 1080 by 1080 feed post cleanly. Trying to scale a 1080 by 1080 image up to 1080 by 1920 will not work.
Keep a simple reference sheet of the dimensions you use most often for the platforms you post to regularly. The few seconds it takes to resize to the right target before uploading will produce noticeably better results than uploading mismatched dimensions and hoping the platform handles them well.