Video, Web & Social Media Tool

Aspect Ratio & Social Media Image Size Calculator

Find the exact simplified aspect ratio of any pixel resolution, scale widths and heights proportionally without distortion, and grab ready-to-use 2026 presets for YouTube, TikTok, Instagram, and Open Graph banners.

Calculate & Scale Dimensions

Aspect Ratio
16:9
Decimal
1.78
Megapixels
2.07 MP

Scale to Target Width (Locked Ratio)

720 px
CSS Snippet: aspect-ratio: 16 / 9; Landscape

2026 Platform & Video Presets

16:9
Platform / Format Dimensions Ratio
YouTube / 4K UHD 3840 ร— 2160 16:9
YouTube Thumbnail / HD 1280 ร— 720 16:9
TikTok / Reels / Shorts 1080 ร— 1920 9:16
Instagram Portrait Feed 1080 ร— 1350 4:5
Instagram Square 1080 ร— 1080 1:1
Open Graph / LinkedIn Share 1200 ร— 630 40:21
Tool Documentation & Guide

How to Calculate & Scale Pixel Aspect Ratios Without Distortion

An aspect ratio expresses the proportional relationship between an image or video width and height (such as 16:9 widescreen, 9:16 vertical short-form video, or 4:5 portrait feeds). Calculating exact simplified ratios and locked heights prevents stretched faces, letterboxed black bars, and awkward social-feed auto-crops.

Step-by-Step Instructions

  1. Enter the original pixel width and height of your photo, video canvas, or UI container.
  2. Inspect the simplified ratio (computed via Greatest Common Divisor), decimal factor, and total megapixel count.
  3. Type a desired new width in the locked scaler to compute the exact proportional height in pixels.
  4. Or select a 2026 preset (YouTube, TikTok/Reels, Instagram 4:5, Open Graph 1200ร—630) and copy the CSS aspect-ratio rule.

Worked Example & Methodology

Scaling a 3840ร—2160 4K UHD thumbnail (16:9 ratio, 1.78 decimal) down to a blog hero width of 1200px gives a locked height of 1200 ร— 9 รท 16 = 675pxโ€”keeping zero distortion while cutting pixel payload by over 90%.

Privacy & Verification: All calculations execute instantaneously in local JavaScript with zero server requests.

Frequently Asked Questions

What is the best aspect ratio for Open Graph and LinkedIn share images?

Use 1200ร—630 pixels (~1.91:1 ratio). Both LinkedIn, Facebook, Slack, and X render 1200ร—630 cleanly without slicing off headlines.

Why does Instagram recommend 4:5 (1080ร—1350) over 1:1 square?

A 4:5 vertical portrait occupies 25% more vertical screen area on mobile feeds than a 1:1 square without getting cropped in the main feed.

How does CSS aspect-ratio prevent Cumulative Layout Shift (CLS)?

Declaring aspect-ratio: 16 / 9; on responsive media containers reserves exact vertical height before images download, improving Core Web Vitals.

Does changing resolution alter aspect ratio?

Not if width and height scale by the exact same multiplierโ€”3840ร—2160, 1920ร—1080, and 1280ร—720 all share an identical 16:9 ratio.