Page speed · free

Aspect ratio calculator

Change one number and get the other, so nothing ends up stretched.

Your dimensions

Type an original size, then change either new box. The other follows.

px
Example: 1920
px
Example: 1080
px
Example: 1200 — height follows automatically
px
Example: 675 — width follows automatically

Result

New size
Aspect ratioIn simplest whole numbers
As a decimal
Shape
Scale
CSSTo stop layout shift

Why this matters beyond not squashing things

Knowing the ratio lets you put real width and height attributes on your image tags. That is the single easiest fix for layout shift — the thing where you go to tap a link and the page jumps because an image finally loaded above it.

<img src="photo.jpg" width="1200" height="675" alt="...">

The browser reads those two numbers, works out the shape, and reserves exactly the right space before the file arrives. Cumulative Layout Shift is one of the three Core Web Vitals, and this is most of the fix.

The ratios worth memorising

RatioPixelsWhere
1:11080 × 1080Square posts. Safe everywhere.
4:51080 × 1350Instagram and Facebook feed. Most screen space.
9:161080 × 1920Reels, Stories, TikTok, Shorts
16:91920 × 1080YouTube, presentations, hero images
1.91:11200 × 630Link previews on every platform

Resize versus crop

They are different jobs and mixing them up is what produces stretched faces.

  • Resizing keeps the shape and changes the size. Nothing is lost.
  • Cropping changes the shape by cutting parts off.

If your target size is a different ratio, you must crop — there is no way to change the shape without either cutting something off or distorting it. The calculator above warns you when the size you have typed would distort.

Common questions

What is an aspect ratio?

The relationship between width and height, written as two numbers. 16:9 means for every 16 across there are 9 down. It stays the same at any size.

Why do my images look stretched?

Because they are being displayed at a different ratio than they were made. Usually a CSS rule setting both width and height. Set one and let the other be auto, or use object-fit: cover.

Does this help my page speed score?

Indirectly and meaningfully. Putting real width and height attributes on images fixes layout shift, which is one of the three Core Web Vitals Google measures.

What size should I export for the web?

No wider than the space it will fill, then double it for high-resolution screens. A 600px wide slot wants a 1200px image — anything more is wasted bandwidth.

Want this checked on your real account?

A tool can only work with the numbers you give it. If you want someone to look at what is actually happening in your ad account, the first conversation is free.

Book a free consultation

Related