Exact Euclidean GCD Math
Every resolution is reduced cleanly via Euclidean GCD, alongside its nearest broadcast/social standard and total megapixel count.
MEDIA & DESIGN · ASPECT RATIO, PROPORTIONAL RESIZER & 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.
aspect-ratio: 16 / 9;aspect-videopadding-top: 56.25%;SCREEN & SOCIAL MEDIA RATIO CHEAT SHEET
| Ratio | Common Resolution | Best Used For |
|---|---|---|
| 16:9 | 1920×1080, 3840×2160 | YouTube, TV, widescreen monitors |
| 9:16 | 1080×1920 | TikTok, Instagram Reels, YouTube Shorts |
| 4:5 | 1080×1350 | Instagram & LinkedIn portrait posts |
| 1:1 | 1080×1080 | Profile avatars, square carousel cards |
| 3:2 | 6000×4000 | DSLR & mirrorless photography |
| 21:9 | 3440×1440 | Ultrawide monitors, cinematic film |
Every resolution is reduced cleanly via Euclidean GCD, alongside its nearest broadcast/social standard and total megapixel count.
Pair with Image to Base64, PX to REM Converter, or Color Contrast Checker.
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.
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.
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).
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.
Yes. Click "By Height" in the Proportional Resize section and type your target height in pixels to solve for the exact proportional width.