Skip to content

Sizes and storage

Letterboxing and Pillarboxing: Why Black Bars Appear and How to Avoid Them

Black bars above, below or beside a picture are what happens when two shapes meet. Why they appear, how much space they take and your options.

3 min read · Published 16 November 2026

Black bars on a video are not a fault. They are what happens when a picture of one shape is displayed in a frame of another and nothing is cropped or stretched. Bars at the top and bottom are called letterboxing, and bars at the sides are called pillarboxing. Understanding why they appear, and the three things you can do about them, makes a lot of aspect ratio confusion disappear.

This article explains the geometry, gives the real proportions involved and compares the options for dealing with bars, including when leaving them is the right choice.

What causes them

Every video has an aspect ratio, which is the relationship between its width and its height. Every screen or player has one too. When they match, the picture fills the frame. When they do not, something has to give: the picture can be shrunk to fit inside, leaving empty bars, cropped to fill, losing some of the image, or stretched, distorting it. Bars are the first option, and they preserve everything in the picture.

Letterboxing

Letterboxing happens when a picture is wider than the frame it is shown in. A cinema style wide film on a more squarish screen is the classic case, giving bars above and below. A wide 16 by 9 picture shown in a four by three frame leaves bars totalling a quarter of the frame height, so about an eighth at the top and an eighth at the bottom.

Pillarboxing

Pillarboxing is the reverse: the picture is narrower than the frame, so bars appear at the sides. A four by three picture on a modern widescreen display, or a vertical phone video on a landscape screen, are typical. A four by three picture in a 16 by 9 frame leaves bars totalling a quarter of the frame width. A vertical video on a landscape screen leaves far more: roughly seventy percent of the width is bars.

Picture shapeFrame shapeResultShare of frame that is bars
16:94:3Letterbox25 percent, top and bottom
4:316:9Pillarbox25 percent, left and right
9:16 vertical16:9Heavy pillarboxAbout 68 percent of the width
16:99:16 verticalHeavy letterboxAbout 68 percent of the height
16:916:9NoneZero

Your three options

  1. Leave the bars. Nothing is lost or distorted, which is right for film, archive footage and anywhere the framing is deliberate.
  2. Crop to fill. The bars disappear, but you lose the edges of the picture, so check that nothing important is cut off.
  3. Fill the bars with something. A blurred, enlarged copy of the picture behind it, or a plain colour, makes the empty space look intentional.

Stretching the picture to fill the frame is the fourth option, and almost never a good one, because it distorts everything. People look wide, circles become ovals and the result looks wrong even to viewers who cannot say why.

Choosing for the destination

For a vertical platform, cutting a landscape video down to fill the frame requires a crop, and the subject must be planned to survive it. For a landscape platform, a vertical video is best shown with filled bars or recomposed for the wider frame. The aspect ratio calculator on this site gives the exact dimensions for each, which prevents the small errors that cause a thin black line down one edge.

The thin black line

A narrow strip of black at one edge is usually a rounding error, not deliberate letterboxing. It appears when a crop is a pixel or two short of the frame size, or when the dimensions are not divisible by the numbers the codec prefers. The fix is to scale slightly larger than the frame and crop, not to scale to fit.

Bars cost nothing in file size, because black compresses to almost nothing, but they cost screen space. On a small phone screen, a video with heavy bars is shown much smaller than it needs to be, which is a good reason to deliver in the shape of the place it will be seen.

Common questions

What is the difference between letterboxing and pillarboxing?

Letterboxing puts bars above and below a picture that is wider than its frame. Pillarboxing puts bars at the sides of a picture that is narrower than its frame.

How much of the frame do bars take?

A 16:9 picture in a 4:3 frame leaves bars totalling 25 percent of the height. A vertical video on a landscape screen leaves about 68 percent of the width as bars.

How can I get rid of black bars?

Crop the picture to fill the frame, accepting that some of the edges will be lost, or fill the bars with a blurred copy of the picture. Stretching distorts the image and is rarely a good idea.

Why is there a thin black line on one edge?

Usually a rounding error: the crop is a pixel or two short of the frame. Scale slightly larger than the frame and crop, rather than scaling to fit.

Tools for this

Everything below runs in your browser. No file leaves your machine.

Aspect Ratio Calculator

Resize without distorting

Resolution Reference

Look up any common resolution

Related reading