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.
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 / Use | Ratio | Standard HD | High-Res / 4K |
|---|---|---|---|
| YouTube / Widescreen Video | 16 : 9 | 1920 × 1080 | 3840 × 2160 |
| Shorts / Reels / TikTok | 9 : 16 | 1080 × 1920 | 2160 × 3840 |
| Instagram Portrait Post | 4 : 5 | 1080 × 1350 | 1440 × 1800 |
| Open Graph Social Link Card | 1.91 : 1 | 1200 × 630 | 2400 × 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 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 Type either Target Width or Target Height in Section 2 to calculate the exact matching pixel dimension live.
- 3 Click Flip W ⇄ H anytime to switch between landscape and portrait orientations.
- 4 Copy the generated CSS aspect-ratio snippet or click a standard width row on the right.