Reduction uses the greatest common divisor
Rounded positive dimensions are divided by their greatest shared factor. This gives the smallest equivalent whole-number ratio.
Calculate and convert aspect ratios for images, videos, and responsive containers.
Type the width and height of your image or video.
View the simplified aspect ratio calculated from your dimensions.
Enter a new width or height and get the matching dimension.
Aspect ratio compares width with height independent of physical size. The calculator reduces integer dimensions with their greatest common divisor, displays a decimal ratio, and can calculate a missing dimension while preserving the relationship. Presets provide common screen and social-media sizes as convenient starting points.
A concrete input and expected output from the current implementation.
Input
Width 1920, height 1080
Expected output
16:9; decimal 1.7778
The greatest common divisor of 1920 and 1080 is 120. Dividing both dimensions by 120 produces 16 and 9.
Rounded positive dimensions are divided by their greatest shared factor. This gives the smallest equivalent whole-number ratio.
For a known ratio, new height equals width divided by width-to-height ratio. New width equals height multiplied by that ratio, with pixel results rounded to whole numbers.
Yes. Both reduce to 16:9, although their pixel counts and potential sharpness differ.
Raster dimensions normally require whole pixels. Rounding can introduce a tiny ratio difference at small sizes.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Pick colors visually and convert between HEX, RGB, HSL, and CMYK formats.
Preview how screen colors translate to print with CMYK simulation and proofing.
Preview any Google Font at various sizes, weights, and with custom sample text.
Create linear, radial, and conic CSS gradients with a visual editor and code output.
Generate harmonious color palettes from a base color using color theory rules.
Simulate how colors appear to people with various types of color vision deficiency.