Aspect Ratio Calculator
Scale dimensions without distortion
Aspect ratios are the reason a thumbnail ends up letterboxed or a photo stretches. Supply the current width and height, then one dimension you want to change, and the tool hands back the other so the proportions hold. A 1920 by 1080 frame narrowed to 1280 wide comes out at 1280 by 720, and a portrait crop of the same original forced to 720 tall gives 480 by 720. It also reduces the original pair to lowest terms with a greatest common divisor, so 1920 by 1080 is reported as the familiar 16:9 rather than a pair of large numbers, and prints the decimal form to four places for ratios that do not reduce cleanly. That decimal is the value to type into a CSS aspect-ratio rule or a video export dialog.
Calculate matching dimensions for any aspect ratio — enter an original width and height and a target size to keep the image perfectly proportional. Essential for design and video work.
Private Aspect Ratio Calculator In Your Browser
Aspect Ratio Calculator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Aspect Ratio Calculator
Enter the current Width and Height of the source image or video.
Type your desired figure into the New width (or height) field.
Use the `The new value is` selector to declare whether that figure is a width or a height.
Read the matching dimension, then copy the reduced ratio or the decimal form for use in CSS or export settings.
- The source pair is reduced to lowest terms by greatest common divisor, so 1920:1080 is reported as 16:9 and 1024:768 as 4:3.
- A selector decides whether your new figure is a width or a height, which keeps the calculation unambiguous in portrait as well as landscape.
- A decimal form printed to four places covers ratios that do not reduce to whole numbers.
- The matching dimension is rounded to whole pixels, which is the precision an export dialog or an image editor will use anyway.
- A designer resizes a hero image to fit a new container width and needs the exact height that will not distort it.
- A video editor exports a 16:9 project to a 1:1 or 9:16 deliverable and needs the matching dimension.
- A developer sets an aspect-ratio rule in CSS and wants the decimal value rather than the fraction notation.