Skip to main content
>_devtools

Aspect Ratio Calculator

Find the aspect ratio of a width and height, solve a missing dimension, pick common ratios and copy the CSS aspect-ratio rule.

What it does

Enter a width and height to reduce them to an aspect ratio, or choose a common ratio to solve for a missing dimension. Copy the resulting CSS aspect-ratio value.

Example

1920 × 1080 -> 16:9

Limits and behavior

  • Dimensions must be positive finite numbers.
  • The CSS ratio is independent of the physical size of an image.