Aspect ratio calculator

Reduce integer image or video dimensions to an exact ratio, then scale by a target width or height to the nearest whole pixel.

Input

Result

16:9

The other scaled dimension is rounded to the nearest pixel; exact half pixels round up.

1280 × 720 px
1280 × 720 px

Aspect ratio calculator

Reduce integer image or video dimensions to an exact ratio, then scale by a target width or height to the nearest whole pixel.

Usage guide