Enter a width and height to get the reduced ratio (1920×1080 becomes 16:9), its decimal value, the closest common ratio and a ready aspect-ratio CSS line. Some resolutions do not reduce neatly: 1366×768 is 683:384, which is within 0.05% of 16:9, so the closest-match line is often the more useful one.

The second section keeps a ratio fixed while you resize. Enter a new width to get the height, or a new height to get the width. The preset buttons fill in common ratios such as 16:9 for video, 4:3 for older displays, 21:9 for ultrawide, 1:1 for avatars and 9:16 for vertical video.

Decimal inputs are supported; results are rounded to two decimals.