Aspect Ratio Converter
Calculate letterbox, pillarbox, and crop dimensions between aspect ratios.
About this calculator
Converting between aspect ratios always comes down to a mismatch between Source Width / Source Height and the Target Aspect Ratio, and this calculator shows both ways to resolve it: adding bars (preserving every source pixel) or cropping (filling the frame, losing some source area). When the source is relatively wider than the target -- a 21:9 cinematic source going onto a 16:9 display, for example -- fitting the full width means adding Letterbox Bar Height above and below, while filling the frame without bars means trimming Crop Width down and keeping the full Source Height. When the source is relatively narrower than the target -- a 4:3 source going onto a 16:9 display -- fitting the full height means adding Pillarbox Bar Width on both sides, while filling the frame means trimming Crop Height down and keeping the full Source Width.
Only one of Letterbox Bar Height or Pillarbox Bar Width is ever non-zero for a given conversion, since a source can't simultaneously be both relatively wider and relatively narrower than the target. Image Retained is the share of the original pixel area the crop option keeps -- it's always 100% for the bars approach, since letterboxing and pillarboxing never discard source pixels, only add blank space around them. Pixel Loss is the flip side: the actual pixel-area difference between the source and the cropped output.
Inputs
Results
Letterbox Bar Height
0 px
How to Use This Calculator
- Enter the Source Width and Source Height in pixels — the resolution of your original footage.
- Input the Target Aspect Ratio (e.g., 16:9, 2.39:1) to see how your image fits the new frame.
- Review Letterbox Bar Height (px) to see top/bottom padding needed for widescreen formats.
- Check Pillarbox Bar Width (px) for side padding when converting to narrower ratios.
- Use Crop Width and Crop Height (px) if you prefer to fill the frame by trimming edges.
- Image Retained (%) tells you how much of the original frame survives the conversion.
What each input means
- Source Width
- Width of the source video in pixels.
- Source Height
- Height of the source video in pixels.
- Target Ratio Width
- Width component of target aspect ratio (e.g., 21 for 21:9).
- Target Ratio Height
- Height component of target aspect ratio (e.g., 9 for 21:9).
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersSource Width = 1920, Source Height = 1080, Target Ratio Width = 21, Target Ratio Height = 9 = 4 input(s) provided
- Calculate Letterbox Bar HeightLetterbox Bar Height = abs(letterboxHeight)0 = 0
- Calculate Pillarbox Bar WidthPillarbox Bar Width = abs(pillarboxWidth)300 = 300
- Calculate Crop WidthCrop Width1920 = 1920
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Can Letterbox Bar Height and Pillarbox Bar Width both be non-zero at once?
No. A source frame is either relatively wider than the target aspect ratio (which calls for letterboxing) or relatively narrower than it (which calls for pillarboxing) -- never both at the same time. Whichever one doesn't apply to your conversion is reported as zero.
Does the crop option ever lose pixels when converting to the same aspect ratio?
No. When Source Width and Source Height already match the Target Aspect Ratio exactly, Crop Width and Crop Height equal the original source dimensions, Image Retained reports 100%, and Pixel Loss is zero -- there's nothing to trim because the frame already fits.
Why would I choose cropping over letterboxing or pillarboxing?
Cropping fills the entire target frame with no blank bars, which looks better on displays that don't handle bars gracefully, at the cost of trimming some of the original image -- shown here as Pixel Loss and the complementary Image Retained percentage. Letterboxing or pillarboxing instead keeps every source pixel visible but adds black bars to fill the mismatched space.
Does Image Retained ever apply to the letterbox/pillarbox bars option?
No, Image Retained and Pixel Loss describe only the crop path -- adding bars never discards any source pixels, so that approach always retains 100% of the original image by definition. The two figures exist specifically to quantify what the crop alternative gives up.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Frame Rate Converter Calculator
Convert between frame rates and understand the effects on speed, duration, and frame interpolation requirements.
Film & VideoVideo Bitrate Calculator
Calculate optimal bitrate and file size from resolution, frame rate, and codec.
Photography BusinessAspect Ratio Calculator
Calculate the aspect ratio of an image or video. Compare to standard ratios and get crop suggestions for common formats.
Graphic DesignImage Crop Calculator
Calculate crop dimensions to fit a target aspect ratio while maximizing area.
Naval ArchitectureRudder Area Calculator
Calculate minimum rudder area and dimensions from lateral plane area and desired percentage.
More in Creative, Media & Design.