Skip to contentSkip to the inputSkip to the result

Aspect ratio & resize calculator

Find a ratio and resize dimensions proportionally.

Loading tool

Instructions

Aspect ratio & resize calculator

How to use

  1. Enter the original size, choose a width or height to fit and enter the target.

Supported input

  • Positive integer dimensions, or a ratio typed as 16:9; the other side is rounded to the nearest pixel, or to an even number for video.
  • Odd ratios also show the nearest common one.

Input example

1920 × 1080; target width 1280

Result example

3:2 · 600×400px

Troubleshooting

  • Check required inputs, numeric ranges and the selected conversion direction.

How it works

  • Find a ratio and resize dimensions proportionally.

Resizing photos and video without changing their shape

Before you export

  • A 4000×3000 camera photo going into a 1080 px wide blog column: how tall will it be?
  • Re-exporting an Instagram portrait (4:5) or a Short or Reel (9:16) at another resolution
  • Checking whether a 3440×1440 ultrawide monitor really is 21:9
  • Picking the height for a 1920 px wide video in the 2.39:1 cinema ratio

The ratio by greatest common divisor, the size by proportion

The width and height are divided by their greatest common divisor to give the smallest whole-number ratio. 4000×3000 divides by 1000 to give 4:3; 1440×900 gives 8:5, the shape usually sold as 16:10; 1280×1024 gives 5:4.

The other side is target width × original height ÷ original width, rounded to the nearest whole pixel. Fitting 4000×3000 to a width of 1080 gives 810 px; 6000×4000 at a width of 2000 gives 1333.33…, so 1333 px. A result under one pixel is refused.

An unfamiliar ratio is named by a familiar one

3440×1440 reduces to 43:18. The tool looks for the nearest of 1:1, 5:4, 4:3, 3:2, 16:10, 16:9, 2:1, 21:9 and 32:9, or their portrait versions, and when it is within about 2.5% it adds "Nearest common ratio: 21:9 (2.39:1)" with the decimal form. 21 ÷ 9 is 2.33 while 3440 ÷ 1440 is 2.39, so "21:9" is closer to a marketing label than to an exact ratio.

You can also type a ratio into the Enter a ratio box: "2.39:1" fills in an original width of 239 and height of 100, and "9/16" fills in 9 and 16. Decimals are read to four places.

Worked example: 2.39:1 at a width of 1920

  1. 1Type 2.39:1 in Enter a ratio and 1920 as the target width: the height is 803 px (1920 ÷ 2.39 = 803.35…).
  2. 2Choose Round to even and it becomes 804 px. Most video uses 4:2:0 chroma subsampling, which stores colour for blocks of two by two pixels, so many encoders reject odd dimensions or quietly crop a pixel.
  3. 3In the same way 1920×800 (12:5) at a width of 1280 gives 533 px, or 534 px rounded to even.
  4. 4Round to even applies to the target you type as well as to the side it works out. 4000×3000 fitted to a height of 1001 is 1335×1001 px, but 1336×1002 px rounded to even.

The stray pixel from rounding

Because sizes are rounded to whole pixels, the result can be very slightly off the original shape. 1366×768 fitted to a width of 1000 gives 1000×562, rounded down from 562.2, and that no longer reduces to the original 683:384. Nobody will see it on screen, but the error builds up if you scale down and up repeatedly, so always work from the original dimensions.

This tool only does the arithmetic. To change an actual image file, put the result into the image resize tool; to fit a frame of a different shape, crop the image instead of stretching it.

Checked

Frequently asked questions

Which resolutions are 16:9?

1280×720, 1920×1080, 2560×1440 and 3840×2160 are all 16:9. Enter 1920×1080 with a target width of 1280 and the height comes out as 720 px.

Why is 1366×768 shown as 683:384, not 16:9?

The tool reduces the exact ratio by the greatest common divisor. 1366×768 is close to 16:9 but not equal, so it gives 683:384. Likewise 2560×1080, often called 21:9, is exactly 64:27.

Can I calculate the width from a height?

Yes. Set Fit by to height and the width for your target height is calculated. Results are rounded to the nearest whole pixel, so the ratio can be off by about 1 px. For video, choose Round to even; type a ratio such as 2.39:1 straight into the ratio box.