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
- In “Ratio”, enter width and height to get the reduced ratio and the nearest common one.
- In “Resize”, choose a ratio and type the width or height; the other is calculated.
- 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
DPI & PPI CalculatorWork out screen PPI from resolution and diagonal, the print size of an image at any DPI, the pixels needed to print A4 or any size, and whether your image is sharp enough to print.Resize ImagesResize images by pixels, by percentage or to a common preset, one image or a whole batch at once. The format stays the same (JPG, PNG or WebP) and everything runs on your device.Crop ImageCrop any part of an image with a box you drag over the preview, using a free or fixed ratio (1:1, 4:3, 3:4, 16:9) or exact pixel numbers. Cropping runs on your device at full resolution.Golden Ratio CalculatorSplit any length by the golden ratio 1.618, scale it up or down, get a golden size sequence and a main/sidebar layout split for your page with ready CSS and a diagram.