How to Compress Images for Social Media (Instagram, Facebook, X, LinkedIn)
Every platform recompresses your images. Here's how to stay one step ahead so your photos still look sharp after they're done with them.
You post a photo. It looks great on your phone. But the moment Instagram gets its hands on it, something shifts. Colors go a little flat. Edges soften. That sharp product shot you spent twenty minutes getting right now looks like it was taken through a screen door.
It's not your camera. It's not your editing. It's compression, and every single platform does it to your images the moment you hit upload.
Here's the thing most people don't realise: the platforms aren't doing this to be difficult. They're serving billions of images every day, and they need to keep file sizes manageable. So they recompress everything. The question isn't whether they'll compress your images. It's whether your images were in good shape before they got there.
This is why compressing your own images first, on your own terms, makes such a difference. When you upload a bloated 8MB photo, the platform has to work hard to shrink it, and the results are unpredictable. When you upload a clean 400KB image that's already at the right dimensions, the platform has almost nothing left to do. What you see in preview is what your audience gets.
Let's go through each platform, what it actually wants, and how to get your images there without losing the quality you worked for.
Why Platforms Recompress Your Images (And What That Means for You)
Every major social platform runs its own compression pipeline. When you upload an image, it doesn't just sit there. It goes through resizing, format conversion, and quality reduction before it ever appears in anyone's feed.
Most social platforms recompress uploaded images anyway, so uploading already-optimised files ensures better final quality. Think of it like this: if you hand someone a crumpled piece of paper and ask them to flatten it, the result isn't going to be as clean as if you'd handed them a flat sheet to begin with.
The other thing platforms do is strip your metadata. GPS coordinates, camera model, date taken, all of it goes. Which is actually a good thing from a privacy standpoint, but it means any metadata you're carrying around in that file is just extra weight until they remove it. Camera images contain EXIF data that can add 10-20% to file size. Removing this metadata before uploading to social reduces unnecessary size.
When you use a tool like ImgTweak, that metadata gets stripped automatically before you even think about uploading. Your GPS location doesn't go along for the ride. Neither does the camera model, the timestamp, or any of the other tags your phone embeds without asking.
Instagram: The Platform That Penalises Oversized Images the Most
Instagram's compression is aggressive, and it disproportionately punishes images that are either too large or in the wrong aspect ratio. The algorithm has to do more work, and the results show.
What Instagram actually wants
The recommended image aspect ratio for Instagram feed posts is between 1.91:1 for horizontal images and 4:5 for vertical images. Square photos (1:1) should be 1080 x 1080 pixels, horizontal (1.91:1) should be 1080 x 566 pixels, and vertical (4:5) should be 1080 x 1350 pixels.
The 4:5 vertical format is worth paying attention to. It takes up significantly more screen space in the feed, and most users are scrolling on a phone held vertically. More screen space means more time in front of eyes before the scroll continues.
As of January 2025, Instagram has started rolling out a tall grid with a 3:4 aspect ratio, since most people are sharing vertical images and videos. So if you're optimising for how your profile looks as a grid, 3:4 (1080 x 1440 pixels) is worth considering for new posts.
For Stories and Reels, the format is 1080 x 1920 pixels. That's the full 9:16 vertical. If you're posting a photo to Stories that wasn't shot vertically, it'll get pillarboxed with a blurred version of itself as the background. Not the worst look, but it's not intentional either.
Quality settings for Instagram
For Instagram, aim for 85-95% JPEG quality since they apply additional compression on top. You want to give the platform the best version you can so that after their pass, it still looks clean.
JPEG works well for photos. If you're posting graphics with text or a logo, PNG keeps the edges sharp. Instagram accepts both, and the platform handles each differently.
The one thing people get wrong
Uploading a 4000-pixel wide image to Instagram doesn't make it look better. It makes it look worse, because the platform's compression has to work harder. Start at 1080 pixels wide. That's the sweet spot. Anything beyond that is just giving Instagram more to strip away.
Facebook: Bigger Audience, More Forgiving Specs
Facebook's compression isn't as punishing as Instagram's, but the platform has a wider variety of image placements, each with its own requirements.
For Facebook feed posts, 1080 x 1080 pixels works well for square images, and 1080 x 1920 pixels for full-screen Stories formats.
For shared link previews, the image that appears when you paste a URL, the sweet spot is 1200 x 628 pixels at a 1.91:1 ratio. This is one of the most common placements and one of the most neglected. A blurry link preview image can make a professional article look amateurish.
Facebook and Instagram increasingly share content through Meta's integrated systems, which means the optimal approach is to use 1080 x 1350 pixel images (4:5 ratio), which display correctly in both Instagram's full-width format and Facebook's variable-width feed. If you're posting to both, that format is your safest bet for not having to prepare two separate files.
For Facebook, aim for 80-90% JPEG quality since it applies aggressive compression to larger displays. The larger display sizes mean the platform has more surface to cover, so it tends to be heavier-handed with its compression pipeline.
One practical tip: Facebook compresses significantly less if you upload images at exactly the right dimensions rather than oversized. A 1200 x 628 pixel link preview image uploaded at precisely that size will look noticeably sharper than the same image uploaded at 2400 x 1256 and scaled down by Facebook.
X (Twitter): Fast Feed, Specific Quirks
X moves fast. Images need to grab attention in a fraction of a second, and the platform has some specific quirks around how it handles aspect ratios.
For X, landscape images and link preview images work best at 1200 x 675 pixels (16:9). X supports JPG, PNG, and GIF for post images.
X profile photos should be at least 400 x 400 pixels and will be displayed as a circle, so keep key content centered. The header image works best at 1500 x 500 pixels, and since screens crop a bit from the top and bottom, keeping important content in the center band prevents anything from disappearing.
The one thing that trips people up on X is the in-feed crop preview. When you attach an image to a post, X shows a cropped preview in the timeline before anyone clicks. The crop isn't always centred. If you have a subject in the lower third of your image, the preview might show nothing but sky. Always check how the crop preview looks before posting, especially for portrait images.
For 1:1 square images, X handles them cleanly. For anything taller than 16:9, expect the feed preview to crop. The full image is visible when someone taps, but the first impression is the crop.
LinkedIn: Where Image Quality Signals Professionalism
LinkedIn is different from the other platforms in one specific way: the audience is more likely to judge your content by how polished it looks. A slightly blurry image on Instagram might go unnoticed. On LinkedIn, it can read as careless.
LinkedIn's standard posts now display best at 1200 x 627 pixels, while their Professional Stories format requires 1080 x 1920 pixels.
LinkedIn profile photos should be 400 x 400 pixels or larger, cropped into a circle on personal profiles. The profile header displays at a 4:1 aspect ratio, with recommended dimensions of 1584 x 396 pixels.
For document posts and carousels (the swipeable slide format that tends to get strong engagement on LinkedIn), each slide is 1920 x 1080 pixels. These perform well because they give people a reason to interact rather than scroll past.
The format guidance for LinkedIn is simple: JPEG for photos, PNG for anything with text, sharp edges, or a transparent background. LinkedIn's own compression is relatively light compared to Instagram, which means uploading a properly prepared image at the right dimensions gives you a clean result almost every time.
How to Actually Prepare Images for Social Media
So here's the workflow that makes this practical rather than theoretical.
Start with the highest quality version of your image. This is your master file. Don't compress it yet. Don't resize it yet.
Decide which platform you're posting to, and crop to that aspect ratio first. This is where ImgTweak's crop tool comes in useful. It has presets for the exact aspect ratios you need: 1:1 for square, 4:5 for Instagram feed, 9:16 for Stories and Reels, 16:9 for landscape. You're not guessing at pixels. You're setting the ratio and dragging to where it looks right.
After cropping, resize. Most platforms want 1080 pixels wide. Set that as your target width with aspect ratio locked, and the height follows automatically.
Then compress. For photos going to Instagram or Facebook, JPEG at 85% quality is the right call. For graphics with text or transparency, PNG. For X, same approach. For LinkedIn, slightly higher quality (90%) since the platform is less aggressive and your audience is more critical.
The whole process takes about two minutes per image once you know the specs. The first few times you do it, refer back to the numbers. After a while, it becomes automatic.
The Metadata Thing (And Why It Matters More Than You Think)
Here's something that doesn't come up enough in conversations about social media images. Every photo you take on your phone contains hidden data that you probably don't want attached to a public post.
Your phone embeds GPS coordinates in every photo. Not just the city. The exact latitude and longitude of where you were standing when you pressed the shutter. It also records the time, the device model, the camera settings, and sometimes even the altitude.
Most platforms strip this data when they process your upload. But "most" isn't "all," and even when they do strip it, there's a window between upload and processing where the raw file exists on their servers.
Stripping metadata before you upload takes the question off the table entirely. ImgTweak does this automatically. Every image you export has the EXIF data removed. No GPS. No timestamps. No device fingerprints. Just the image.
This is less of a concern if you're posting a photo of a coffee shop and more of a concern if you're posting from your home, a personal location, or somewhere you'd rather not advertise publicly.
A Quick Reference for the Four Main Platforms
Since you'll come back to these numbers regularly, here they are in plain language.
Instagram feed photos work best at 1080 x 1350 pixels (4:5) for vertical, 1080 x 1080 for square, and 1080 x 566 for landscape. Stories and Reels are 1080 x 1920. Use JPEG at 85-90% quality for photos, PNG for graphics.
Facebook feed posts at 1080 x 1080 for square, 1200 x 628 for link previews. Stories at 1080 x 1920. Use JPEG at 80-90% quality.
X in-feed images at 1200 x 675 (16:9) for landscape or 1080 x 1080 for square. Profile photo 400 x 400. Use JPEG at 85-90%.
LinkedIn feed posts at 1200 x 627. Profile photo 400 x 400. Header 1584 x 396. Document slides at 1920 x 1080. Use JPEG at 85-90% for photos, PNG for slide graphics with text.
Keep file sizes under 1MB for most social images. Under 500KB is even better. The platforms upload faster, compress less, and the final result is cleaner.
What Good Looks Like vs What Doesn't
You can tell the difference between an image that was prepared and one that wasn't. The prepared image has sharp edges, accurate colors, and reads cleanly on a phone screen at arm's length. The unprepared one has a slight muddy quality to it. Skin tones go slightly orange. Text gets blurry at small sizes. Background gradients develop banding.
The difference isn't always dramatic. But it accumulates. Over a feed of twelve posts, the prepared images make the account look considered. The unprepared ones make it look like the person is figuring things out.
You don't need to be a photographer or a designer to get this right. You just need to know the dimensions, set the quality, and let the tools do the work.
ImgTweak handles the compression, the metadata stripping, and the resize, all in your browser, with nothing uploaded to any server. Drop your image in, set your dimensions, pick your quality, and download. That's the whole process.
Do it before every social post. Make it part of the routine. Your images will look better, upload faster, and survive the platform's compression in much better shape than they would otherwise.