Aspect Ratio & Responsive Image Srcset Sizer

Calculate proportional media dimensions, CSS aspect-ratio properties, and retina 1x/2x/3x srcset tags.

Presets:
Decimal Aspect Ratio: 1.7778 (e.g. aspect-ratio: 16 / 9)
Visual Proportions Preview
16:91920 ร— 1080px
CSS Aspect Ratio Rule
Responsive HTML <img srcset>

Preventing Layout Shifts with CSS aspect-ratio

When web pages load images or video embeds without predetermined height dimensions, the browser dynamically reflows the page as media assets finish downloading. This causes jarring Cumulative Layout Shifts (CLS), damaging Google Core Web Vitals scores.

Modern Aspect Ratio Standards

  • 16:9 (1.7778): The international widescreen video standard for YouTube, Vimeo, and modern desktop video players.
  • 9:16 (0.5625): Vertical full-screen smartphone orientation used by TikTok, Instagram Reels, and YouTube Shorts.
  • 1:1 (Square): Standard for profile avatars, product thumbnail grids, and social post cards.
  • 21:9 (2.3333): Anamorphic ultrawide aspect ratio for cinematic trailers and panoramic banner headers.