Aspect Ratio Calculator
Find the missing dimension for any aspect ratio, and see the common video, print and social sizes at once.
Processed on your device — no upload
- 16:9The simplest form of 1920 × 1080
- 1.7778As a decimal — width divided by height
- aspect-ratio: 16 / 9;The CSS property — holds the space before the image loads
Setting aspect-ratio on an image container is the fix for the page jumping about as images arrive. The browser reserves the right amount of space immediately instead of reflowing everything once the file has downloaded — which is most of what a poor Cumulative Layout Shift score is made of.
How to use it
- Choose a ratio.
- Type the dimension you know.
- Read the other one.
How it works
An aspect ratio is width divided by height, expressed as two whole numbers. 16:9 means sixteen units across for every nine down, which is 1.7778 — and a 1920 × 1080 screen, a 1280 × 720 video and a 3840 × 2160 television are all the same shape.
Type one dimension and the other follows. Whichever field you last edited is the one held constant. The reduced form underneath answers the question from the other direction: given 1512 × 982, what ratio is that? Divide both by their greatest common divisor and you have it.
The CSS property is the part that matters most. Setting aspect-ratio: 16 / 9 on a container makes the browser reserve exactly the right space before the image or video has downloaded. Without it, the box is zero-height until the file arrives and then everything below jumps down — which is most of what a poor Cumulative Layout Shift score is made of, and it is a Core Web Vital.
Some ratios are not whole numbers. A4 paper is 1:√2, chosen so that folding it in half gives the same shape again — which is why A4, A5 and A3 are all proportional. The preset here approximates it as 1414:1000, which is accurate to four decimal places and rather easier to type.
A worked example
A real case. You need a thumbnail 400px wide, matching your 16:9 video. Type 400 into width and you get 225. Not 240, which is what you get by halving 480 without thinking, and not 250, which is what looks about right. Nine-sixteenths of 400 is 225, and anything else stretches faces.
The vertical ratios are the ones people get wrong. 9:16 is not 16:9 rotated in your head. It is a different number, and Instagram Stories, TikTok and YouTube Shorts all use it. Press "Turn it on its side" and watch the dimensions swap correctly.
1.91:1 is the one nobody remembers. It is the Open Graph preview ratio — 1200 × 630 — and it is neither 16:9 nor 2:1. A share image made at 16:9 gets cropped top and bottom, which is how a logo ends up with its edges shaved off in every feed. The meta tag generator declares the dimensions; this tells you what they should be.
Contain, cover, or neither. If your source is a different ratio from your target, something must give. object-fit: contain shows all of it and leaves bars; cover fills the box and crops. Stretching it — no object-fit at all, both dimensions forced — is the only genuinely wrong answer, and it is what happens by default.
To actually change an image to these dimensions, the resizer keeps the ratio for you, and the cropper handles the case where the ratio has to change.
Questions
What is 16:9 as a decimal?
1.7778. A 1920 × 1080 screen, a 1280 × 720 video and a 3840 × 2160 television are all exactly this shape.
What ratio are my dimensions?
Type them into the width and height fields — the simplest form is shown underneath, reduced by the greatest common divisor.
Why does my page jump as images load?
Because nothing reserved the space. Set aspect-ratio on the container, or width and height attributes on the image, and the browser holds the room from the start.
What ratio should a social preview image be?
1.91:1 — usually 1200 × 630. It is not 16:9, and using 16:9 gets your image cropped top and bottom.
What is the ratio of A4 paper?
1:√2, about 1:1.414. It is chosen so that folding the sheet in half produces the same shape, which is why every A size is proportional to every other.
How do I fit an image of the wrong ratio?
object-fit: cover fills the box and crops; contain shows everything and leaves empty bars. Forcing both dimensions stretches the image and is always wrong.
Does aspect-ratio work everywhere?
Yes, in every current browser. The older padding-top percentage trick still works but is no longer necessary.
What is 21:9?
Ultrawide — closer to 64:27 in practice. Cinema uses 2.39:1, which is wider still, and is why films have black bars even on an ultrawide monitor.
Related Web tools
Color Converter
HEX, RGB, HSL, HSV, CMYK
open$termiva contrast --wcagColor Contrast Checker
WCAG AA and AAA, with a fix
open$termiva palette --triadicColor Palette Generator
Harmonies and a full tint scale
open$termiva gradient --linearCSS Gradient Generator
Linear, radial and conic
open