Image Fit and Crop Calculator

Find the scaled image size and centred offsets for fitting or filling a box.

Result

Enter your values to see the result.

How it works

Use the smaller scale to fit the entire image or the larger scale to fill the box. Centre the result by halving the remaining horizontal and vertical space.

Filling a 500 × 500 box with a 1,000 × 500 image crops 250 pixels from each side.

Related calculators