Aspect Ratio

Calculate and maintain aspect ratios for images, videos and screens.

Auto-calculateCommon presetsLock ratio

① Enter width and height ② Or pick a preset ratio ③ Copy the CSS

Standard
Social

Custom ratio:
16:9
Aspect ratio
16:9
Dimensions
1920×1080
Decimal ratio
1.7778
CSS Output
aspect-ratio: 16 / 9;
padding-top: 56.2500%; /* legacy fallback */
width: 1920px;
height: 1080px;

What is aspect ratio and why does it matter?

The aspect ratio is the proportional relationship between an element's width and height, expressed as W:H — for example 16:9, 4:3, 1:1, or 9:16. It is fundamental to video production, photography, responsive web design, and UI layout. Modern CSS enforces ratios with the aspect-ratio property (e.g., aspect-ratio: 16 / 9), replacing the old padding-top hack (padding-top: 56.25%). Common use cases: YouTube thumbnails (1280×720, 16:9), Instagram posts (1080×1080, 1:1), TikTok and Stories (1080×1920, 9:16), Open Graph images (1200×630, ~1.91:1), LinkedIn banners (1200×627). This calculator covers standard presets, social media presets, custom ratio input, locked proportions, and instant CSS output.

Frequently asked questions

Aspect ratio is the proportional relationship between an element's width and its height, expressed as W:H. Common ratios include 16:9 (widescreen video), 4:3 (traditional TV/monitor), 1:1 (square), 21:9 (ultrawide), and 9:16 (vertical video for mobile).
To find the height from width and ratio: height = width × (ratio height ÷ ratio width). To find the width: width = height × (ratio width ÷ ratio height). Example: for 16:9 at 1920px wide → height = 1920 × (9 ÷ 16) = 1080px.
16:9 is the standard for widescreen video (HD, Full HD, 4K), most modern monitors, laptop screens, and YouTube thumbnails. It replaced the older 4:3 ratio as the broadcast standard in the early 2000s. 1920×1080 (1080p) and 3840×2160 (4K) are both 16:9.
Modern CSS: use the aspect-ratio property: `aspect-ratio: 16 / 9`. For older browsers: use the padding-top trick: `padding-top: 56.25%` (9/16 × 100) on a relative container with absolutely positioned content inside.
Aspect ratio is a proportional relationship (dimensionless ratio like 16:9). Resolution is the actual pixel count (1920×1080). Many different resolutions can share the same aspect ratio: 1280×720, 1920×1080, and 3840×2160 are all 16:9.
In HTML5, use the width and height attributes on <img> to define the intrinsic ratio, preventing layout shift (CLS). Add max-width: 100%; height: auto in CSS. For background images, use background-size: cover and aspect-ratio or the padding-top trick on the container.
Facebook/Instagram post: 1:1 (1080×1080). Instagram Story/Reels/TikTok: 9:16 (1080×1920). Twitter/X header: 3:1 (1500×500). LinkedIn banner: ~1.91:1 (1200×627). YouTube thumbnail: 16:9 (1280×720). Open Graph image: ~1.91:1 (1200×630).

Explore Our Network