Other

Aspect Fit Calculator

Scale an image to fit inside a box (contain).

Free to use — no sign-up or login.

Fitted width

Fitted height

Scale

This free Aspect Fit Calculator covers Scale an image to fit inside a box (contain).

Uniform scale so the image fits in the box. Related other tools sit beside How it works, with no account required.

Using the Aspect Fit Calculator

Scale an image to fit inside a box (contain). Typical inputs are Image width, Image height, Box width and Box height. How it works beside the form states the identity the Aspect Fit Calculator applies.

FAQ

How do I use the Aspect Fit Calculator?

Open the Aspect Fit Calculator, fill Image width, Image height, Box width and Box height, and read the result. Enter Image width, Image height, Box width, and Box height for the Aspect Fit Calculator; use finite values in the indicated domain. The calculator reports Fitted width, Fitted height, and Scale: Uniform scale so the image fits in the box. Compare like-for-like units and account for rounding in the displayed values.

What formula does the Aspect Fit Calculator use?

The Aspect Fit Calculator uses the identity in How it works. In words: Enter Image width, Image height, Box width, and Box height for the Aspect Fit Calculator; use finite values in the indicated domain. The calculator reports Fitted width, Fitted height, and Scale: Uniform scale so the image fits in the box. Compare like-for-like units and account for rounding in the displayed values.