b2KIT

Photo Aspect Ratio Fitter

Fit images to target aspect ratios by adding letterbox bars or cropping.

Tested tool guide Tested browser tools Checked August 16, 2026

What Photo Aspect Ratio Fitter does, with a checked example

Cameras produce 4:3, 3:2, and 1:1 photos, but the frames you place them in - social posts, video timelines, print sizes - usually want 16:9, 1:1, or 9:16. This tool compares the photo's width and height with the ratio you enter and matches the frame exactly one of two ways: letterboxing adds solid-color bars on the short side and keeps every pixel; cropping removes the overflow and fills the frame completely. Content is never stretched or resampled. What surprises people: the bars are permanent pixels in the output file, visible in prints and thumbnails, and cropping permanently deletes what it cuts away.

Worked example

A concrete input and expected output from the current implementation.

Input

1920x1080 photo, target ratio 1:1, run in both modes

Expected output

Letterbox: 1920x1920 image, 420px bars across top and bottom. Crop: 1080x1080 image, 420px removed from each side.

A square must be built from the 1080px height, since the photo is wider than 1:1. Letterboxing pads the height from 1080 to 1920, adding 420px of bars above and below; cropping cuts the width from 1920 to 1080, removing 420px from each side.

How the result is produced

1

How the fit is decided

The tool divides the photo's width by its height and compares that ratio with the one you entered. If the photo is wider than the target, the fit is built on the height: letterboxing pads above and below, cropping trims left and right. If the photo is narrower, the roles swap: bars go on the sides, or the top and bottom get cut. When the ratios already match, nothing changes.

2

What happens to the pixels

Letterboxing appends solid-color rows or columns so the image's pixel dimensions match the target ratio while every original pixel stays untouched. Cropping discards the overflow rows or columns, shrinking the pixel dimensions. Neither mode scales the photo, so fitting is not resizing: a 4000x3000 photo fitted to 16:9 becomes about 5333x3000 with bars, or 4000x2250 cropped - never 1920x1080. Fractional results like 5333.33px round to whole pixels.

Good uses

  • Fitting a camera photo into a 16:9 social cover or video frame without stretching the subject.
  • Making a square 1:1 avatar or product thumbnail from a 4:3 or 3:2 original.
  • Choosing yourself what a print shop's fixed-ratio crop (5x7, 8x10) removes, instead of letting the lab cut your composition.

Limits and checks

  • Cropping deletes pixels permanently: the removed rows and columns are gone from the output. Keep the original file if you might want the full frame later, because the tool does not restore what crop mode cuts away.
  • Ratio order is orientation: 16:9 is landscape and 9:16 is portrait. Entering the reversed pair gives the opposite orientation, and the comparison always uses width divided by height, so a 3000x4000 photo is 3:4 no matter its pixel count.
  • Fitting is not resizing. The output keeps the source's binding dimension, so a 4000x3000 photo fitted to 16:9 returns as about 5333x3000 or 4000x2250 - not 1920x1080. If you need an exact resolution, resize the result separately.

Common questions

Will the letterbox bars disappear when I post the image online?

No. The bars are baked into the file as ordinary pixels, so every destination shows them - the post, the thumbnail, the print. Platforms that add their own frame stack it on top of yours, which can double the bars. If you want the frame filled edge to edge, crop instead and accept the lost edges.

Does fitting damage the photo or lower its quality?

Neither mode resamples, so the pixels that remain are the original pixels at full quality: no blur, no softening. Letterboxing adds pixels, cropping removes them. The real cost is compositional - bars change the frame's shape, cropping changes the content. To hit a specific resolution afterward, resize separately.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools