Aspect ratio. Find the missing width or height for any ratio, or simplify a size to its ratio.
How it works
Pick a ratio
16:9, 4:3, 1:1, 3:2 and other common ones, or your own.
Enter one side
Type the width or the height and get the other.
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
- Grid calculator: Column widths from columns, gutters and margins.
- PX to REM: Pixels to rem and back, for any root size.
- Palette from image: The main colours of any photo or screenshot.