Keep the shape when you resize.

Whether you are cropping a product photo, exporting a video or sizing a banner, the shape matters as much as the size. Enter a width and height to see the simplest ratio and whether it is landscape, portrait or square.

Lock a ratio and type a new width, and the height follows, so nothing gets squashed.

Runs in your browser. Nothing is uploaded.

Common ratios

More design & colour tools · All 54 tools

How to use it

  1. Enter the Width and Height of your image, video or screen to see its simplified ratio.
  2. To resize, set Ratio width and Ratio height, or click one of the Common ratios such as 16:9 or 4:5.
  3. With Keep ratio when I change width or height ticked, type a new width and the height is worked out for you, or the other way round.
  4. Press Copy CSS if you want a web page to hold that shape while an image or video loads.

Good to know

How a ratio is simplified

The width and height are divided by their greatest common divisor (GCD), the largest whole number that divides both exactly:

1920 × 1080   GCD 120   →  16:9
1200 × 630    GCD 30    →  40:21  (about 1.905:1)

Decimals work too: 1.91 by 1 becomes 191:100. The result also shows the ratio as a single number (width ÷ height), which makes shapes easy to compare: 16:9 is 1.7778:1.

Working out a missing side

new height = new width × ratio height ÷ ratio width
new width  = new height × ratio width ÷ ratio height

Example: a 4:5 portrait post that is 1080 pixels wide must be 1080 × 5 ÷ 4 = 1350 pixels tall. Results are rounded to two decimal places, so round to a whole pixel when you export.

Common shapes

RatioTypical use
16:9Widescreen video, TVs, most monitors
9:16Vertical video and stories
4:3Older screens and many tablets
3:2Many camera photos and some laptops
1:1Square posts and profile pictures
4:5Portrait feed posts
1.91:1Link preview images
21:9Ultrawide screens

The CSS

aspect-ratio: 16 / 9; tells the browser the shape of a box before its picture or video arrives, so the page does not jump as it loads. The second rule, padding-top: 56.25%, is the older technique for browsers that predate aspect-ratio: 56.25% is 1080 ÷ 1920 × 100. Current browsers only need the first line.

Questions.

What ratio is 1920 × 1080?

16:9. Both numbers divide by 120, leaving 16 and 9. 1280 × 720, 2560 × 1440 and 3840 × 2160 are the same shape.

Why does 1200 × 630 not show as 1.91:1?

Because it is not exactly that. 1200 ÷ 630 is about 1.905, which simplifies to 40:21. Many sites use 1.91:1 as a rounded name for this shape, and either size works for link previews.

Will changing the ratio crop my picture?

No, this tool only does the arithmetic. To change the shape of a real photo you need to crop it, or add space around it, in an image editor.

What does the Keep ratio box do?

When it is ticked, typing a new width updates the height, and typing a new height updates the width, using the Ratio width and Ratio height values. Ticking it fills those two boxes with the ratio of your current size.

Is aspect ratio the same as resolution?

No. Resolution is the number of pixels, such as 1920 × 1080. Aspect ratio is only the shape, so a small 640 × 360 clip and a 4K video share the same 16:9 ratio.