Video, Image & CSS Sizing

Aspect Ratio & Pixel Dimension Calculator

Find exact simplified aspect ratios from any pixel resolution, scale widths and heights without stretching, and copy responsive CSS aspect-ratio rules.

AllOmnitools Editorial TeamNov 25, 2026Updated Nov 25, 20265 min readBeginner

Ratio Presets & Dimensions

1. Base Width & Height (sets ratio)
2. Resize Proportionally (type either side)
Responsive CSS Snippet
aspect-ratio: 16 / 9; width: 100%; height: auto;
Simplified Ratio
16:9
1.78:1 • Landscape
Scaled Resolution
1280 × 720
0.92 MP (66.7% scale)
16:9
Matching Standard Sizes

Standard Video, Social & Open Graph Aspect Ratios

Platform / UseRatioStandard HDHigh-Res / 4K
YouTube / Widescreen Video16 : 91920 × 10803840 × 2160
Shorts / Reels / TikTok9 : 161080 × 19202160 × 3840
Instagram Portrait Post4 : 51080 × 13501440 × 1800
Open Graph Social Link Card1.91 : 11200 × 6302400 × 1260

Preventing Layout Shifts With Native CSS `aspect-ratio`

Applying aspect-ratio: 16 / 9; width: 100%; height: auto; reserves exact vertical space before images or video iframes finish downloading, keeping your Cumulative Layout Shift (CLS) score at 0.

How to Use This Tool

  1. 1 Click a preset ratio chip (16:9, 9:16, 4:5, 1:1, 1.91:1) or enter any custom Width and Height in Section 1.
  2. 2 Type either Target Width or Target Height in Section 2 to calculate the exact matching pixel dimension live.
  3. 3 Click Flip W ⇄ H anytime to switch between landscape and portrait orientations.
  4. 4 Copy the generated CSS aspect-ratio snippet or click a standard width row on the right.

FAQ

Divide original height by original width, then multiply by your new target width: H2 = (H1 ÷ W1) × W2.