Color & CSS

Runs 100% locally in your browser

Aspect Ratio Calculator

Find simplified ratios, resize widths and heights proportionally, and preview common web and video frames.

Common presets

Source dimensions

Enter any positive width and height to calculate the simplified ratio.

Simplified ratio

16:9

Decimal ratio

1.78:1

Orientation

landscape

2,073,600 px

Scale target dimensions

Lock the ratio to compute matching target width or height automatically.

Target ratio: 16:9 (1.78:1)Exact match

Proportional preview

Scaled proportionally within a fixed-height preview frame.

16:9

1,920 × 1,080

CSS aspect-ratio

.media-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1280px;
}

How to calculate and resize image and video aspect ratios

How image and video aspect ratios scale without distortion

An aspect ratio expresses the proportional relationship between width and height in lowest terms using the greatest common divisor. Locking that ratio lets you calculate new target dimensions for responsive images, hero banners, and video embeds without stretching or unexpected cropping.

Common 16:9, 4:3, 1:1, and 9:16 web and social sizes

Use 16:9 (1920 x 1080) for widescreen video and hero containers, 4:3 for product cards, 1:1 for square avatars, 1.91:1 (1200 x 630) for Open Graph social previews, and 9:16 for vertical reels. Modern CSS supports the native aspect-ratio property to reserve layout space before images load.

Aspect Ratio frequently asked questions

How is the simplified aspect ratio calculated?
Both width and height are divided by their greatest common divisor (GCD). For example, 1920 and 1080 share a GCD of 120, which simplifies to 16:9.
Why does reserving an aspect ratio improve Core Web Vitals?
Setting width, height, or the CSS aspect-ratio property lets the browser reserve the exact box height before the image downloads, keeping Cumulative Layout Shift (CLS) near zero.
Does this aspect ratio calculator upload any data?
No. All dimension calculations and CSS snippets run instantly in your browser with JavaScript.

Related tools

More browser utilities that run locally with zero uploads.

All tools

Instant AI

Launching a site with these assets?

Find a clean domain name and connect AI agents through Instant AI to research availability and launch faster.

Explore Instant