Enter the size
Width and height in pixels, or any unit.
Enter a width and a height to get the aspect ratio in its simplest form. Then enter a new width or height to find the other side so the proportions stay the same.
100% private — the calculation is done in your browser and nothing is sent to any server.
Width and height in pixels, or any unit.
The simplified ratio, its decimal value and the closest common one.
Enter a new width or height to get the matching side.
An aspect ratio describes the shape of a rectangle as the relation between its width and its height, written like 16:9. Two sizes with the same ratio have the same shape, whatever their size: a 1920 by 1080 image and a 1280 by 720 image are both 16:9. Knowing the ratio is essential when you resize an image, crop a photo for a social network, choose a video resolution, set the size of an embedded player or design a layout, because a wrong ratio means stretched, squashed or cropped content.
The width and the height are divided by their greatest common divisor, which reduces them to the smallest whole numbers with the same relation. 1920 and 1080 share a divisor of 120, giving 16 and 9. The decimal value, width divided by height, is shown too: 1.7778 for 16:9. When the ratio is not a whole-number pattern you recognise, the tool also names the closest common ratio if it is within about two percent, which helps with sizes that are rounded or cropped a little.
To scale an image, enter the width you need and the tool works out the height that keeps the same ratio, or the other way round. The result is shown with decimals and also rounded to a whole pixel, since pixel sizes must be whole numbers. Rounding may make the ratio differ very slightly, which is invisible in practice.
It works out proportions only. It does not resize or crop images; for that, use the image resizer, which can keep the ratio or fit an image to an exact size. Ratios involving physical print sizes also depend on resolution, which is not part of this calculation.
More utilities that also run without leaving your browser.