Image & Media · RATIO

Image, Video & Screen Aspect Ratio Calculator

Enter any pixel width and height to reduce to its exact simplified ratio (16:9, 4:5, 21:9), inspect decimal aspect ratio, and calculate exact distortion-free scaled resolutions.

✓ 100% Browser-Local · Zero Upload Reviewed: 2026-11-26

Initializing local browser workspace...

Prevent Image Distortion and Cumulative Layout Shift (CLS)

Hardcoding wrong width/height HTML attributes stretches photos or triggers Google Core Web Vitals Cumulative Layout Shift (CLS) penalties when pages load. Computing exact proportional dimensions guarantees rock-solid responsive boxes.

  • Exact Euclidean Greatest Common Divisor (GCD) ratio simplification (e.g. 1920×1080 -> 16:9)
  • Proportional resolution calculator computing exact scaled height from any target width
  • One-click media presets: 16:9 HD, Open Graph 1200×630, 9:16 Reels/Shorts, 4:5 Social, 21:9 Ultrawide
  • Displays decimal aspect ratio (e.g. 1.7778:1) ready for CSS aspect-ratio declarations
  • Instant Landscape, Portrait, or Square orientation classification
  • Zero-latency browser calculation for responsive CSS, video editing, and ad creative sizing

Step-by-Step Guide

  1. Click a standard video/social preset (16:9 HD, OG Card, 9:16 Reels, 4:5 Social) or type your image's native Source Width and Height.
  2. Read the simplified integer ratio (e.g. 16:9) and decimal aspect ratio immediately.
  3. Enter any new target pixel width inside Scale to New Width to find the exact distortion-free height.
  4. Jump straight into our Local Image Resizer to crop or export your asset to those exact pixels.

Responsive Media & Aspect Ratio Traps

Using Odd Pixel Heights for H.264 / MP4 Video Exports

Video codecs (x264/H.264, H.265) require even pixel dimensions (multiples of 2 or 16) for YUV 4:2:0 chroma subsampling. Round scaled video heights to the nearest even integer.

Omitting HTML width/height or CSS aspect-ratio on Responsive Images

Without explicit dimensions, browsers cannot reserve vertical space before an image finishes downloading—hurting Google AdSense viewability and CLS scores.

Mixing 1200×630 (1.9048:1) With 16:9 (1.7778:1) Ad Assets

Open Graph link previews use 1.91:1 while YouTube thumbnails use 16:9. Reusing one file across both trims headlines near top and bottom margins.

Design, Video & Web Performance Workflows

  • Calculating distortion-free width/height attributes for responsive blog hero images and <iframe> embeds.
  • Scaling 4K video masters down to 1080p, 720p, or vertical 9:16 social clips cleanly.
  • Verifying exact aspect ratios for Google Display Ads, Meta feeds, and Open Graph cards.

Frequently Asked Questions

How is the simplified aspect ratio computed?

The calculator divides both width and height by their Greatest Common Divisor (GCD)—for example, GCD(1920, 1080) = 120, yielding exact 16:9.

Can I use raw pixel ratios directly in modern CSS aspect-ratio?

Yes! Modern CSS accepts aspect-ratio: 16 / 9 or even aspect-ratio: 1200 / 630 directly across Chrome, Safari, Edge, and Firefox.

What is the standard aspect ratio for YouTube Shorts and TikTok?

Vertical short-form video platforms standardize on 9:16 (1080 × 1920 pixels).

Local Privacy Guarantee: Aspect ratio and resolution scaling run completely offline inside your browser.