Kharabeesh
On-device ع

Aspect Ratio & Resolution Calculator

Find the ratio of any size (1920×1080 = 16:9), fill in the missing width or height when resizing, work out megapixels, compare standard resolutions and fit an image in a frame.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. In “Ratio”, enter width and height to get the reduced ratio and the nearest common one.
  2. In “Resize”, choose a ratio and type the width or height; the other is calculated.
  3. In “Resolution”, see megapixels and standard resolutions with the same ratio, and fit the size into a frame.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Why is 1366×768 683:384 and not 16:9?

Because it is not exactly 16:9 (16:9 at 1366 wide gives 768.375). The reduced ratio is mathematically exact, and we show the nearest common ratio and the difference beside it.

What is the difference between contain and cover?

Contain fits the whole image inside the frame and leaves gaps. Cover fills the whole frame and crops the overflow, the same as object-fit in CSS.

How do I use the ratio in CSS?

Use aspect-ratio: 16 / 9 on the element. The older padding-top trick uses height ÷ width × 100 as a percentage; we give you both.

Related tools