DEV Community

Cover image for How to Resize Images for Social Media — The Right Dimensions for Every Platform
Shaishav Patel
Shaishav Patel

Posted on

How to Resize Images for Social Media — The Right Dimensions for Every Platform

Every social media platform has its own image dimensions — and using the wrong size means cropped photos, blurry thumbnails, or images that don't fill the frame correctly.

Here are the correct pixel dimensions for every major platform, and how to resize any image to match.


Why Dimensions Matter

Uploading an image that's the wrong size causes one of three problems:

  1. Platform crops it — Instagram crops non-square images to fit its feed format. Your subject might be cut off.
  2. Platform stretches it — Some platforms upscale small images, making them blurry.
  3. Platform letterboxes it — Black bars appear around images that don't match the expected ratio.

Using exact pixel dimensions avoids all three.


Instagram

Format Dimensions Ratio
Square post 1080 × 1080 px 1:1
Portrait post 1080 × 1350 px 4:5
Landscape post 1080 × 566 px 1.91:1
Story / Reel 1080 × 1920 px 9:16
Profile photo 320 × 320 px 1:1

Tip: Portrait (4:5) takes up the most vertical space in the feed and gets the most visibility. Square is the safest for repurposing one image across formats.


Twitter / X

Format Dimensions Ratio
In-feed image 1200 × 675 px 16:9
In-feed portrait 900 × 1200 px 3:4
Profile photo 400 × 400 px 1:1
Cover/header 1500 × 500 px 3:1

Tip: Twitter auto-crops images in the feed to a 16:9 preview. If your subject is off-center, it may be cropped out. Use 1200 × 675 px to control exactly what's shown.


LinkedIn

Format Dimensions Ratio
Post image 1200 × 627 px 1.91:1
Article cover 1920 × 1080 px 16:9
Profile photo 400 × 400 px 1:1
Cover photo 1584 × 396 px 4:1
Company logo 300 × 300 px 1:1
Company cover 1128 × 191 px ~6:1

Tip: LinkedIn post images at 1200 × 627 px display well on both desktop and mobile feed without cropping.


Facebook

Format Dimensions Ratio
Post image 1200 × 630 px ~1.91:1
Story 1080 × 1920 px 9:16
Profile photo 170 × 170 px (display) 1:1
Cover photo 820 × 312 px ~2.63:1
Event cover 1920 × 1005 px ~1.91:1

YouTube

Format Dimensions Ratio
Thumbnail 1280 × 720 px 16:9
Channel art 2560 × 1440 px 16:9
Profile photo 800 × 800 px 1:1

Tip: YouTube thumbnails display at 1280 × 720 px but are shown small in search results. Use large text and high contrast so they're readable at thumbnail size.


WhatsApp

Format Dimensions Notes
Status image 1080 × 1920 px 9:16, same as Stories
Profile photo 500 × 500 px 1:1

How to Resize to Exact Dimensions

The Image Resizer lets you set exact pixel width and height:

  1. Upload your image (JPG, PNG, WebP, GIF)
  2. Enter the target width and height in pixels
  3. Toggle Lock Aspect Ratio — on to scale proportionally, off to set exact dimensions
  4. Download the resized image

Everything runs in your browser — nothing is uploaded to a server.


Aspect Ratio vs. Exact Dimensions

There's an important difference:

Lock aspect ratio ON: the image scales proportionally. If you set width to 1080px, the height adjusts automatically to preserve the original ratio. You won't distort the image, but you might not hit the exact target height.

Lock aspect ratio OFF: you set both width and height independently. The image will match exactly, but may appear stretched if the original ratio doesn't match the target.

For most social media use cases:

  • Use ratio ON when the platform accepts a range of sizes
  • Use ratio OFF when the platform requires exact dimensions (profile photos, covers)

Batch Strategy

If you post the same image across multiple platforms, start with the largest dimension:

  1. Resize to 1920 × 1080 px (YouTube cover, LinkedIn article)
  2. Crop/resize to 1200 × 675 px (Twitter, Facebook, LinkedIn post)
  3. Resize to 1080 × 1080 px (Instagram square)
  4. Resize to 1080 × 1920 px (Stories, Reels)

Starting large preserves quality. Downscaling is always better than upscaling.


Resize any image to exact social media dimensions — free, no upload: Image Resizer

Top comments (0)