THE QUICK GUIDE
A ratio is a shape,
not a size.
Aspect ratio describes the relationship between width and height. A 1920 × 1080 image has a 16:9 ratio. So does a 1280 × 720 image: fewer pixels, same proportions.
To calculate a new height, divide the original height by the original width, then multiply by your new width. For 16:9 at 1280 pixels wide, that gives 720 pixels high.
How do I find an image’s aspect ratio?
Enter its width and height. The calculator divides both numbers by their greatest common divisor: 1920:1080 becomes 16:9. The preview shows the resulting shape.
Can I calculate a size from a ratio?
Yes. Enter the ratio as your original dimensions, such as width 16 and height 9. Then enter your desired width or height under “Calculate a new size”.
Which aspect ratio should I use?
16:9 is a common landscape video format, 9:16 is vertical, and 1:1 is square. Choose the shape that suits your destination and check its current upload requirements before exporting.
What does the CSS value do?
Use aspect-ratio: 16 / 9; to give a web element those
proportions. Set its width and let its height adjust
automatically. Use object-fit: cover; if an image
needs to fill the container with cropping.