Letterbox & crop calculator

Putting a 4:3 clip into a 16:9 timeline, or a landscape photo into a square post? See the scaled size and the bars or the crop.

Fit or fill

How it is worked out

Fit uses the smaller of the two scale factors, fill uses the larger:

scale = min(frameW ÷ srcW, frameH ÷ srcH)  (fit)
scale = max(frameW ÷ srcW, frameH ÷ srcH)  (fill)

Example: a 4:3 picture into 1920 × 1080. Fit scale = min(1920/4, 1080/3) = 360, giving 1440 × 1080 and two 240 px side bars. Fill scale = 480, giving 1920 × 1440, so 360 px of height is cropped, 180 px top and bottom.

Need just the other side of a size? Use the aspect ratio calculator.

Questions

What is letterboxing?

Scaling a picture to fit entirely inside a frame of a different shape and filling the leftover space with bars. Bars top and bottom are letterboxing; bars at the sides are pillarboxing.

What does fill (crop) do?

It scales the picture until the frame is completely covered, then trims whatever spills over. No bars, but you lose some of the picture.

How big are the bars for 4:3 on a 1920 × 1080 screen?

The picture becomes 1440 × 1080, leaving 240 px bars on the left and right.