Skip to content
Run here 100% in your browser, no upload, no login

Aspect Ratio Calculator

Find the simplest width-to-height ratio, recognize common ratios and resize keeping proportions.

Simplest ratio —

Resize keeping the ratio

Matching height —

Matching width —

How to use it

  1. Enter the width and height in pixels, millimeters or any unit - both sides must use the same one.
  2. The simplest integer ratio appears right away, for example 1920 x 1080 becomes 16 : 9.
  3. If the ratio matches a common format (1:1, 4:3, 3:2, 16:9, 21:9 and others), it is shown as a badge.
  4. To resize, type a new width to get the matching height, or a new height to get the matching width.
  5. Use Clear to reset all fields.

Common use cases

Why it stays private

The ratio math is a greatest-common-divisor calculation in your browser. Nothing is uploaded, nothing is stored, and the page makes no network requests after it loads.

FAQ

Q: My ratio is 16.00 : 9.01 - why is it not recognized as 16:9? A: Recognition compares the reduced integer ratio exactly. Values that are close but not exact stay unrecognized, which is often a hint that the source dimensions are slightly off.

Q: Does the tool work with decimal inputs? A: Yes. The ratio fields round to integers before reducing, and the resize fields accept decimals and return up to two decimal places.

Q: Can I use it for portrait sizes? A: Yes. Portrait formats like 9:16 are in the recognized list; enter the smaller number as the width and the larger as the height.

Your data stays on this device

Aspect Ratio Calculator runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.

Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.