Aspect ratio calculator
How to use
Enter a width and height to get the simplified ratio, the inverted
ratio, a decimal, and a CSS aspect-ratio value. Or pick
a ratio and one side to find the other. Nothing is stored or sent
anywhere.
About
Width and height are reduced by their greatest common divisor. Decimal
values such as 1.5 by 1 are scaled to
integers first (here, 3:2). The result is exact for the
digits you type; a size such as 1366×768 simplifies to
683:384, not 16:9. Optional pixel rounding uses
Math.round. Input is capped at 1e15. Nothing is stored
or sent anywhere.