Skip to content

Aspect ratio calculator

Calculate the dimensions of an image or a video while keeping its ratio (16:9, 4:3…).

Ratio settings

Original dimensions (base) Ratio: {{ ratioString }}
Width (W1)
:
Height (H1)
New target dimensions
New width (W2)
=
New height (H2)
{{ w2 }}px {{ h2 }}px
{{ ratioString }}

What is aspect ratio?

L'Aspect Ratio (or image format) describes the proportional relationship between the width and height of an image or screen. It is usually expressed as two numbers separated by a colon (e.g.: 16:9).

This calculation is essential in web design and video editing. If you resize an image by changing its width without adjusting its height proportionally, the image will be squashed or stretched (distortion). This calculator does the cross-multiplication for you.

The most common ratios on the web and in media

  • 16:9 : The absolute standard for video (YouTube, HD TV, 1920x1080, 4K).
  • 9:16 : The vertical format, a must for smartphones (TikTok, Instagram Reels, YouTube Shorts).
  • 4:3 : The traditional format of older televisions, still widely used in digital photography.
  • 1:1 : The square format, perfect for profile photos, classic Instagram posts and icons.
  • 21:9 : The "ultra-wide" format, used in cinema and on modern panoramic computer monitors.

Why does it matter for SEO (CLS)?

In modern web development, setting the exact width and height attributes on your <img> tags or your iframes lets the browser reserve the necessary space before the image has even loaded. This prevents content jumps (Cumulative Layout Shift, CLS), a major criterion of Google’s Core Web Vitals for good search rankings.

More UI design tools:

How it works

How to use the aspect ratio calculator

Calculate the dimensions of an image or a video while keeping its ratio (16:9, 4:3…).

  1. Enter the values

    The ratio or the original dimensions.

  2. Change one dimension

    Enter the new width or height.

  3. Read the result

    The other dimension is calculated automatically.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the aspect ratio calculator

Keeping the ratio avoids stretched images. Common formats: 16:9 (video), 4:3, 1:1 (Instagram), 9:16 (stories).

aspect ratio calculator 16:9 calculator resize image keep ratio image ratio calculator video aspect ratio calculate height from width screen ratio calculator
FAQ

Frequently asked questions about the aspect ratio calculator

How do I calculate a 16:9 height?

Height = width × 9 ÷ 16. For 1920 px, that gives 1080 px.

Which ratio for YouTube?

16:9, for example 1920 × 1080.

And for stories?

9:16, which is 1080 × 1920.

How do I use it in CSS?

With the aspect-ratio: 16 / 9 property.

Esc
↑ ↓ navigateEnter open