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
Scale to Target Width (Locked Ratio)
aspect-ratio: 16 / 9; Landscape2026 Platform & Video Presets
| 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 |
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
- Enter the original pixel width and height of your photo, video canvas, or UI container.
- Inspect the simplified ratio (computed via Greatest Common Divisor), decimal factor, and total megapixel count.
- Type a desired new width in the locked scaler to compute the exact proportional height in pixels.
- 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.