Aspect ratio. Find the missing width or height for any ratio, or simplify a size to its ratio.

How it works

  1. Pick a ratio

    16:9, 4:3, 1:1, 3:2 and other common ones, or your own.

  2. Enter one side

    Type the width or the height and get the other.

  3. Copy the CSS

    The aspect-ratio value for images, videos and embeds.

Questions

How do I keep an image's shape in CSS?

Set aspect-ratio on the element and width: 100%. Add object-fit: cover to an image so it fills the box without stretching.

What's the ratio of 1920 × 1080?

16:9, the standard for video and most screens.

More design tools