Aspect Ratio Calculator
Simplify width and height to a ratio.
About this tool
Enter a width and a height and get the aspect ratio in simplest form, plus the decimal value.
How to use
How it works
Both numbers are divided by their greatest common divisor, which gives the smallest whole-number ratio. The decimal is width divided by height. Ratios that do not reduce neatly, such as 1366 × 768, stay large (683:384).
ratio = (width ÷ g) : (height ÷ g), where g = greatest common divisor of width and height
Worked example
Full HD
- Input
- 1920 × 1080
- Output
- 16:9, decimal 1.7778
- Walkthrough
- The greatest common divisor is 120. 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9.
Limitations
- Whole-number sizes work best; decimals may not reduce cleanly.
- Does not resize an image.
- Awkward sizes like 1366 × 768 give 683:384 rather than a common ratio.
Questions
What is the aspect ratio of 1920 × 1080?
What is the ratio of 1080 × 1350?
Why does 1366 × 768 not give 16:9?
Features
- Simplified ratio
- Decimal value
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Working with Responsive Images
Chrome for Developers
Practical responsive-image patterns for web exports.
Watch on YouTubeHow Image Compression Works
Leo Isikdogan
Compression intuition for resize and optimize image tools.
Watch on YouTube
- Use WebP images
web.dev
When next-gen formats beat shipping oversized PNGs.
- Use image CDNs to optimize images
web.dev
Production optimization context after local browser edits.