The Aspect Ratio Crop & Letterbox Calculator turns one resolution into another aspect ratio and shows you exactly what it costs in pixels. Give it a source size and a target ratio and it returns two complete plans: a crop-to-fill that trims the frame so it fills the new ratio edge to edge, and a letterbox-to-fit that keeps every pixel by adding bars. It is built for video editors retargeting a 16:9 master to 9:16 Reels, photographers fitting a 3:2 DSLR shot into a 4:5 Instagram portrait, and developers generating thumbnail variants who need to know how much of each frame survives and how much disk a whole batch will eat.
How it works
Every aspect ratio is just width divided by height. The tool reduces your source resolution and your target ratio to decimals and compares them. When the source is wider than the target, a fill crop keeps the full height and trims the sides; when the source is taller, it keeps the full width and trims the top and bottom. The cropped output always lands on the exact target ratio, and the tool reports how many pixels you cut from each edge, the percentage of frame area you keep, and the raw pixel count discarded.
The letterbox plan does the opposite. Instead of cropping, it grows a target-ratio canvas around your untouched source, so a wide source gains top-and-bottom letterbox bars and a narrow source gains left-and-right pillarbox bars. You see the padded canvas size, the bar thickness on each side, and what share of that canvas the real picture fills.
The storage estimate multiplies the cropped pixel area by a bytes-per-pixel figure for your output format, then by the number of assets, to project total size and a monthly storage bill at your chosen price per GB. Pick JPEG, WebP, PNG-24 or raw RGBA, or type your own measured bytes-per-pixel for a tighter number.
Worked example
Take a 4K UHD master at 3840 x 2160 (16:9) and retarget it to 9:16 vertical for a
short-form clip. The source is far wider than 9:16, so a fill crop keeps the full height of
2160 and trims the width down to 2160 x 9 / 16, giving a crop of about 1215 x 2160. That
keeps only around 31.6% of the original frame area, trimming roughly 1313 pixels off each
side, which is why vertical reframing usually needs the subject re-centred.
If you would rather keep the whole shot, the letterbox plan pads the 3840 width up to a
3840 x 6827 canvas, adding tall pillarbox bars of about 2334 pixels on each side so the
landscape picture floats in the middle of a portrait frame. For a batch of 1000 cropped
JPEGs at roughly 0.30 bytes per pixel, the tool estimates about 790 MB total and a few
US cents per month at typical object-storage pricing.
Formula reference
For a source Ws x Hs and a target ratio Rt = Wt / Ht, the crop-to-fill output is
Wc = Hs x Rt, Hc = Hs when Ws/Hs > Rt, otherwise Wc = Ws, Hc = Ws / Rt. Area kept is
(Wc x Hc) / (Ws x Hs). The letterbox canvas is the mirror image: a wider source pads to
Ws x (Ws / Rt) and a narrower source pads to (Hs x Rt) x Hs. Storage is
area x bytesPerPixel x assets, converted to GB by dividing by 1024^3.
Every figure is calculated in your browser from the numbers you enter, and nothing is uploaded or stored.