Generate dimensions from an aspect ratio
Enter a ratio such as 16:9 or dimensions such as 1920x1080. The calculator simplifies the ratio and generates equivalent pixel sizes at common widths. Use those sizes to plan an image, video frame, or responsive container.
To calculate a height yourself, multiply the target width by the ratio's height and divide by its width. A 16:9 frame at 1280 pixels wide is 1280 × 9 ÷ 16 = 720 pixels high. The results table rounds heights to whole pixels.
Choose a ratio for your image or video
A 1:1 ratio is square. A 16:9 ratio is widescreen, and 4:3 is a common photo and display format. Swap the numbers to describe a portrait frame, such as 9:16. A ratio describes the shape, so 1920x1080 and 1280x720 both simplify to 16:9.
This tool generates dimensions and does not resize or crop an image file. In CSS, aspect-ratio: 16 / 9 describes the same proportions. Use the px to rem converter if you also need to convert layout measurements.
Common questions
- How do I generate a 16:9 aspect ratio?
- Enter 16:9 in the dimensions field. The table shows proportional sizes at common widths, including 1280 by 720 and 1920 by 1080 pixels.
- Does the aspect ratio generator create images?
- No. It calculates proportional dimensions and simplified ratios. Use an image editor to resize or crop your actual image.