Aspect ratio calculator
Reduce width and height to a simple ratio.
Your result will appear here.
Enter your input, then run the tool.How to use the aspect ratio calculator
An aspect ratio describes a picture’s shape regardless of its size. This tool turns a width and height into the simplest whole-number ratio, so you can match images, screens and videos.
Type the width and height separated by a comma, for example 1920, 1080, and run the tool to read the ratio.
- The Input box starts with an example, 1920, 1080. Replace it with your width and height, separated by a comma.
- Press Run tool.
- Read the ratio in the result, written as width:height.
- Use Copy result, or download it as a small text file.
Good to know
- Both numbers must be positive whole numbers.
- The ratio is reduced with the greatest common divisor, so 1920, 1080 gives 16:9 and 1000, 1000 gives 1:1.
- Unusual sizes give exact but unfamiliar ratios, for example 1366, 768 becomes 683:384.
- Everything is calculated in your browser; nothing you type is sent to HandyTechHelper.
Examples
- 3024, 4032 (an upright phone photo) gives 3:4.
- 1080, 1350 gives 4:5, a common portrait post size.
- 2560, 1080 gives 64:27, the exact ratio of screens sold as 21:9.
If something goes wrong
“Enter two finite numbers separated by a comma.”
Use a comma between the numbers. 1920x1080 or 1920 1080 are not read.
“Dimensions must be positive safe integers.”
Both values must be whole numbers of 1 or more: no decimals, zero or negatives.
Questions
How do I find a height for a new width?
Divide the new width by the ratio: for 16:9 at 1280 wide, 1280 ÷ 16 × 9 = 720.
Why isn’t my ratio 16:9?
The reduced ratio is exact. A size that is a few pixels off, such as 1366 × 768, is close to 16:9 but not equal to it.
Can it work with decimals?
No. Enter whole pixel counts.
Does the order matter?
Yes. Width comes first, so 1080, 1920 gives 9:16, an upright shape, while 1920, 1080 gives 16:9.
Background reading: How to resize an image without stretching or squashing it
Next steps: Image resize · Image crop · Geometry calculator
