Guide

MEDIA & DESIGN · ASPECT RATIO, PROPORTIONAL RESIZER & CSS SNIPPETS

Aspect Ratio Calculator,
exact ratios, Mod-16 video & CSS snippets.

Simplify image and video resolutions to exact ratios, resize proportionally by width or height, check Mod-16 video safety, and copy CSS or Tailwind snippets.

Source Resolution & Scaler

Proportional Resize

Calculated Output
1280 × 720 px
Matching Resolution Ladder (16:9) — click to copy

Aspect Ratio & Code Snippets

Landscape · 16:9 Widescreen (YouTube / HD / 4K)
Ratio16:9
Decimal1.7778:1
Megapixels2.07 MP
Mod-16 Video1280×720
1920 × 108016:9
aspect-ratio: 16 / 9;
aspect-video
padding-top: 56.25%;

SCREEN & SOCIAL MEDIA RATIO CHEAT SHEET

Standard aspect ratios and recommended pixel dimensions.

RatioCommon ResolutionBest Used For
16:91920×1080, 3840×2160YouTube, TV, widescreen monitors
9:161080×1920TikTok, Instagram Reels, YouTube Shorts
4:51080×1350Instagram & LinkedIn portrait posts
1:11080×1080Profile avatars, square carousel cards
3:26000×4000DSLR & mirrorless photography
21:93440×1440Ultrawide monitors, cinematic film

Related Media & Design Tools

Exact Euclidean GCD Math

Every resolution is reduced cleanly via Euclidean GCD, alongside its nearest broadcast/social standard and total megapixel count.

Frequently Asked Questions

How is an aspect ratio simplified?

Divide both the width and height by their Greatest Common Divisor (GCD). For example, 1920 and 1080 share a GCD of 120, which simplifies 1920×1080 cleanly to 16:9.

What are H.264 Mod-16 safe video dimensions?

Video codecs like H.264 and HEVC divide frames into 16×16 pixel macroblocks. Rounding your target resolution to multiples of 16 (Mod-16) avoids green-edge artifacts, chroma subsampling errors, and encoder rejections.

What aspect ratios are best for YouTube, Instagram, and TikTok?

YouTube long-form uses 16:9 (1920×1080 or 3840×2160), TikTok/Reels/Shorts use 9:16 (1080×1920), and Instagram feed portraits perform best at 4:5 (1080×1350).

How do I keep an aspect ratio responsive in CSS?

Use the modern CSS property aspect-ratio: 16 / 9; (or Tailwind’s aspect-video / aspect-[4/5]). For legacy email clients or older browsers, use the padding-top percentage snippet provided above.

Can I resize by height instead of width?

Yes. Click "By Height" in the Proportional Resize section and type your target height in pixels to solve for the exact proportional width.