Social media image size and aspect ratio calculator

Find the right image size for every major platform, work out an aspect ratio, or calculate the missing width or height. Everything runs in your browser.

Recommended sizes

PlatformFormatPixelsRatio
InstagramSquare post1:1
InstagramPortrait post
Takes the most feed space.
4:5
InstagramStory or Reel
Keep text out of the top and bottom 250 px.
9:16
TikTokVideo or photo post9:16
YouTubeThumbnail
Under 2 MB.
16:9
YouTubeChannel banner
Safe area for text and logos: 1546 × 423 in the centre.
16:9
YouTubeShorts9:16
X (Twitter)Post image16:9
X (Twitter)Header3:1
FacebookFeed post4:5
FacebookPage cover205:78
Facebook / LinkedInLink preview (Open Graph)40:21
LinkedInFeed image1:1
LinkedInProfile banner4:1
PinterestStandard pin2:3
ThreadsPost image4:5

Aspect ratio from a size

Result

Aspect ratio 16:9 (1.778 : 1). Closest ratio AI image tools offer: 16:9.

Missing side from a ratio

Result

1080 × 1350 px

How to use it

  1. Pick a platform size

    Choose a format such as an Instagram portrait post or a YouTube thumbnail to see its pixels and ratio.

  2. Or enter your own size

    Type a width and height to get the ratio, or a ratio and one side to get the other.

  3. Generate at the right shape

    Use the closest ratio AI image tools offer, so you crop as little as possible.

Why aspect ratio matters

Platforms crop images that do not match their frame, often cutting faces or text. Creating at the right ratio from the start avoids that and keeps the full image visible in the feed.

Sizes change from time to time; the table lists each platform’s current recommendation and the note says where to keep text away from the edges.

Embed this tool on your site

Free for blogs, classrooms and creator sites. Paste the code where you want the tool to appear; keep the credit line under it.

<iframe src="https://brainbaby.ai/embed/aspect-ratio" title="Social media image size and aspect ratio calculator by Brainbaby" width="100%" height="560" style="max-width:440px;width:100%;border:0;border-radius:12px" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-forms" allow="clipboard-write" referrerpolicy="strict-origin-when-cross-origin"></iframe>
<p style="font-size:12px">Aspect ratio calculator by <a href="https://brainbaby.ai/social-media-image-size-calculator">Brainbaby</a></p>
More widgets

Make it in Brainbaby

The tools above are free without an account. Sign up to generate images and videos from your prompts, save them to your library and share them with credit.

Frequently asked questions

What is the best image size for Instagram?

A portrait post at 1080 × 1350 px (4:5) takes the most space in the feed. Square posts are 1080 × 1080 px and Stories or Reels 1080 × 1920 px (9:16).

What size is a YouTube thumbnail?

1280 × 720 px (16:9), under 2 MB.

How do I calculate an aspect ratio?

Divide width and height by their greatest common divisor: 1920 × 1080 becomes 16:9. Enter the two numbers above and the calculator does it for you.

Is my image uploaded?

No. The calculator only works with the numbers you type; no file is needed.

Related