Skip to main content
DevTools24

Aspect Ratio Calculator

Calculate image dimensions while maintaining aspect ratio. Essential for responsive design and image resizing.

Ratio
16:9
Decimal
1.7778
Pixels
2,073,600
1920 × 1080

Aspect Ratios - Technical Details

Common aspect ratios include 16:9 (HD video), 4:3 (classic TV), 1:1 (square), 3:2 (35mm photography), and 21:9 (ultrawide). The aspect ratio is the proportional relationship between width and height.

Command-line Alternative

# Calculate with ffprobe
ffprobe -v error -select_streams v:0 -show_entries stream=width,height image.jpg

# Resize with ImageMagick maintaining aspect ratio
convert input.jpg -resize 800x600 output.jpg