Aspect Ratio Calculator
Simplify width-to-height ratios, scale dimensions proportionally, and copy modern CSS aspect-ratio rules.
Related design tools
All Design toolsAbout Aspect Ratio Calculator
Simplify any pixel dimensions to their exact lowest aspect ratio, scale width or height proportionally, preview the box shape, and copy modern CSS aspect-ratio rules.
How to use Aspect Ratio Calculator
- 1
Choose a common preset (16:9, 9:16, 4:5, 1:1, 21:9, A4) or type any base width and height.
- 2
Read the simplified ratio, decimal ratio, and classic padding-top percentage instantly.
- 3
Enter a new target width or height to calculate the exact proportional counterpart, or copy the CSS aspect-ratio snippet.
Frequently asked questions
How is the simplified aspect ratio computed?
It divides both width and height by their greatest common divisor (GCD) so 1920×1080 simplifies cleanly to 16:9.
What is the Padding Hack percentage used for?
Older CSS layouts used padding-top: (height / width * 100)% on a wrapper to reserve responsive video or card height before CSS aspect-ratio became universal.
Can I use this for social media and video crops?
Yes. Lock in presets like 9:16 (Reels/Shorts), 4:5 (Instagram portrait), or 16:9 (YouTube) and scale to any target resolution.
