Free Online Image Aspect Ratio Calculator
An aspect ratio compares the width of an image with its height. A 1920 by 1080 image is 16:9, a 1200 by 800 image is 3:2 and a square image is 1:1. The ratio describes shape only: it says nothing about resolution, sharpness or file size.
Enter the pixel dimensions you have and the calculator simplifies the ratio with the greatest common divisor. Switch modes to keep that ratio while changing one dimension, which is what you need when you resize a photo, prepare a video thumbnail or set a container size in CSS.
How to use the aspect ratio calculator
- Choose Ratio from Width and Height to simplify the dimensions you already have.
- Choose Height from Width or Width from Height to resize while keeping a ratio.
- Enter whole numbers or decimals. Widths, heights and ratio values have to be greater than zero.
- Click Calculate to see the simplified ratio, the decimal value and, when there is one, the matching standard format.
How the ratio is simplified
Both numbers are divided by their greatest common divisor. For 1920 and 1080 that divisor is 120, so the ratio reduces to 16:9. For 1080 and 1080 the divisor is 1080 and the ratio is 1:1.
Decimals are handled by scaling both numbers to whole numbers first, adding the same number of decimal places to each. A 1.5 by 1 image is measured as 15 by 10, which simplifies to 3:2 exactly as you would expect.
Common ratios and where they appear
1:1 is the square crop used by profile pictures and product tiles. 4:3 was the classic television and monitor shape and is still common in presentations. 3:2 comes from 35 mm film and is used by most DSLR and mirrorless cameras. 16:9 is the shape of HDTV, most online video and the usual thumbnail. 21:9 is the ultrawide cinema format and 9:16 is the vertical shape used by phone video and stories.
The calculator reports the closest common ratio when the simplified ratio is within one percent of a familiar format, and labels the result as an exact standard ratio when it matches one precisely.
Resizing without stretching
Keeping the ratio is what prevents a stretched or squashed image. When you enter a new width, the height is calculated as the new width multiplied by the ratio height and divided by the ratio width, and the answer is rounded to the nearest whole pixel because an image has whole pixels only.
Changing the ratio means cropping or padding. A 16:9 video placed in a 4:3 player is letterboxed with black bars, cropped at the sides or stretched. The calculator will not choose for you, it only reports the numbers.
Do I need to upload my image?
No, and there is nothing to upload. The calculator works with the numbers you type, so a photo, a design file or an internal asset never leaves your computer. No image is read from your device and no request is sent anywhere.
Frequently Asked Questions
No. Aspect ratio is the relationship between width and height, while resolution is the actual number of pixels. A 1280 by 720 image and a 1920 by 1080 image share the 16:9 ratio but have different resolutions. File size and image quality depend on pixel count, compression and other factors that a ratio cannot describe.
It is the width divided by the height. 16 divided by 9 is 1.7778, so a 16:9 image is about 1.78 times wider than it is tall. The decimal form is convenient for CSS and for layout code that expects a single number.
Because heights have to be whole pixels. A ratio rarely divides a chosen width into an integer height, so the result is rounded to the nearest pixel and the ratio stays accurate to within half a pixel.
Set aspect-ratio: 16 / 9 on the element and let the width be fluid. The browser then derives the height from the ratio, so the container keeps its shape at any width.