How do I remove black bars from a video?
Crop the frame to the picture and export at that size, for example 1920 x 804 for a 2.39:1 film look or 1440 x 1080 for 4:3 footage, instead of 1920 x 1080. YouTube’s player fits itself to each video’s shape, so bars baked into the file only add black on every screen. Zooming in also hides them, but it cuts off part of the picture.
The steps at a glance
Black bars are either part of your file or drawn around it by the player. Only the first kind can be fixed in the edit, and the right fix depends on where they came from:
- Find out which kind of bars you have.
- Measure the picture inside the bars.
- Choose: crop the frame, zoom the picture or keep the bars.
- Remove them in Premiere Pro, DaVinci Resolve or ffmpeg.
- Treat vertical clips and Shorts on their own terms.
- Check the new export before you upload.
Written by Kevin Tabares, long-form YouTube editor since 2015: 1,277 videos and 152.2M+ views tracked on YT Jobs.
Stray black bars are one of the things I look for before an export leaves my desk, so I built the free black bars checker this guide uses. The 2.39:1 and 4:3 crops on this page were tested with ffmpeg on October 19, 2026.
Step 1: Find out which kind of bars you have
Bars inside the file are rows or columns of black pixels exported with the video. They are named by position: letterbox bars sit above and below a wide picture, pillarbox bars sit left and right of a narrow one, and a windowbox has both, a small picture floating in a black frame. They travel with the file, so they show on phones, televisions and computers alike.
Bars drawn by the player are not in the file at all. YouTube Help (Video resolution and aspect ratios, read October 19, 2026) says the player changes to the ideal size for the video and the viewer’s device, and that for some shapes, such as a 9:16 vertical video in a computer browser, YouTube may add padding around it: white by default, dark gray with Dark theme on. No edit removes that padding, and none is needed. It is the player making room.
The usual sources of bars inside the file:
- A clip of another shape on the timeline: 4:3 archive or old console footage, a vertical phone clip, a square screen recording.
- A “cinematic bars” preset or overlay added for a film look.
- A sequence or export preset set to the wrong frame size, which puts the whole picture inside black.
- A screen recording of a window smaller than the capture area.
Step 2: Measure the picture inside the bars
Cropping needs the exact size of the picture. The free black bars checker opens your export in the browser, samples 40 frames across it and reports the real picture size, its aspect ratio, the thickness of each bar, whether the bars run through every scene or only some, and an ffmpeg crop line for that file. Fades to black are ignored, so a dark transition isn’t mistaken for a bar. The video never leaves your device.
In a terminal, FFmpeg’s cropdetect filter does a similar job: its documentation describes it as auto-detecting the crop size and printing the recommended parameters. On a 1920 x 1080 test file I made with a 2.39:1 picture inside, it reported crop=1920:804:0:138: the size of the picture, then where it starts, below a 138 pixel bar.
Common shapes inside a 1920 x 1080 frame, with even numbers, which H.264 MP4 files need:
| Picture inside the frame | Picture size | Bars | ffmpeg crop |
|---|---|---|---|
| 2.39:1 film look | 1920 x 804 | 138 px above and below | crop=1920:804:0:138 |
| 2:1 | 1920 x 960 | 60 px above and below | crop=1920:960:0:60 |
| 4:3 archive or older footage | 1440 x 1080 | 240 px left and right | crop=1440:1080:240:0 |
| 1:1 square | 1080 x 1080 | 420 px left and right | crop=1080:1080:420:0 |
| 9:16 vertical clip | 608 x 1080 | 656 px left and right | crop=608:1080:656:0 |
Step 3: Choose: crop the frame, zoom the picture or keep the bars
There are three ways to deal with bars, and they don’t cost the same:
| Option | What happens | Use it for |
|---|---|---|
| Crop the frame to the picture | Every pixel of the picture stays and nothing is enlarged. The file takes the picture’s shape (1920 x 804, 1440 x 1080) and YouTube’s player fits around it. | Bars that run through the whole video |
| Zoom the picture to fill 16:9 | The bars go, and so do the edges. The picture is also enlarged, so it gets softer. | A clip with nothing important near its edges |
| Keep the bars | Nothing is lost; that part of the video keeps its bars. | Bars in some scenes only, used on purpose |
The arithmetic behind the zoom: a 4:3 picture has to grow by a third (1920 divided by 1440) to fill a 16:9 width, and a quarter of its height then falls outside the frame, an eighth at the top and an eighth at the bottom. A 2.39:1 picture zoomed to fill the height grows about 34% and loses about a quarter of its width. That is fine for a sky or a floor, and a problem for a face, a subtitle or a game’s health bar near the edge.
Step 4: Remove them in Premiere Pro, DaVinci Resolve or ffmpeg
- Premiere Pro: set the sequence frame size to the picture size, for example 1920 x 804, and keep the clip at 100% scale, centered. Export at the sequence size.
- DaVinci Resolve: set a custom timeline resolution matching the picture, and for mismatched files choose center crop with no resizing, so clips are not scaled to the new frame.
- ffmpeg: crop the export directly. FFmpeg’s documentation defines the crop filter as the output width and height, then the x and y position of the top left corner of the area kept.
ffmpeg -i input.mp4 -vf "crop=1920:804:0:138" -c:v libx264 -crf 18 -c:a copy output.mp4
I ran that exact line on the 2.39:1 test file from Step 2: the result measured 1920 x 804, and cropdetect on the new file found no black left to remove. Cropping means the video is encoded again, so keep the quality setting high; the audio is copied untouched. A 4:3 picture in a 1080p frame works the same way with crop=1440:1080:240:0, which is also what cropdetect reported on my 4:3 test file.
Whatever tool you use, don’t scale the cropped picture back to 1920 x 1080. Stretching it distorts the image, and fitting it inside 1920 x 1080 brings the bars straight back.
Step 5: Treat vertical clips and Shorts on their own terms
A vertical picture inside a horizontal file is still a horizontal file. According to YouTube Help’s three-minute Shorts page (read October 19, 2026), a video counts as a Short when it is square or vertical and no longer than three minutes, for uploads from October 15, 2024 on. A 9:16 picture between two black slabs in a 1920 x 1080 file is a 16:9 upload, so it plays as a regular video with its bars.
For a Short, crop to the picture (about 608 x 1080 in a 1080p frame), or better, export again from the original vertical clip at full size. In the other direction, a horizontal video becoming a Short needs reframing, not a 16:9 export dropped into a 9:16 frame with black above and below. The Shorts crop preview shows what a 9:16 crop keeps, and how to turn a long video into Shorts covers the rest of that job. The rule also works in reverse: to keep a square or vertical video under three minutes from becoming a Short, YouTube Help says to use a wider aspect ratio such as 16:9.
Inside a long-form video, a vertical phone clip has a few ways out: reframe it to 16:9 if the action fits, place a blurred, enlarged copy of the same clip behind it, or keep it small over a designed background. Any of them looks more deliberate than two flat black columns.
Step 6: Check the new export before you upload
Run the new file through the black bars checker again. It should report no bars, or bars only in the scenes where you kept them on purpose. Then check resolution, frame rate and the rest of the file with the video upload checker; the full pre-upload list is in what to check before uploading to YouTube.
What YouTube’s player does with each shape
Summarized from both versions of YouTube Help’s aspect ratio page, computer and Android, read October 19, 2026:
| Your file | What viewers get |
|---|---|
| 16:9 with no bars (1920 x 1080, 3840 x 2160) | Fills the player: 16:9 is YouTube’s standard shape on computers. |
| Any other shape with no bars (1920 x 804, 1440 x 1080) | The player resizes to suit the video and the screen. |
| 9:16 vertical, in a computer browser | YouTube may add padding around it, white by default and dark gray in Dark theme. |
| Any shape, in the Android app | The vertical player follows the video: it grows for square and vertical videos and shrinks for wide ones. |
| Bars inside the file | They are pixels of the picture, so every screen shows them. YouTube Help asks you not to add them, since padding inside the file stops the player from adjusting to each video and device. |
When I keep bars, and when I don’t
Bars are not always a mistake. For The Spy Show, a narrated spy-history series I edit, I source archive footage alongside licensed stock, and archive clips are often 4:3. In narrated documentaries I usually leave that footage pillarboxed inside the 16:9 edit: enlarging it enough to fill the width would cost a quarter of every shot and add softness to footage that is already soft. For a video like that, a checker’s verdict of bars in part of the video is exactly right.
Shorts are the opposite case. The Shorts I cut each week for English by Erin Marie come from the same recording as the long lesson, reframed vertical. Starting from the source like that, rather than from a finished horizontal export, is the simplest way to keep black out of a Short. The bars I go looking for are the accidental kind: a whole video sitting inside black because a sequence was set to the wrong size. When a checker finds bars in every single scene, that is nearly always the reason. More on documentary edits: documentary YouTube channels.
Common black bar mistakes
- Zooming everything by default. It hides bars by throwing away part of every shot.
- Scaling the crop back to 1920 x 1080. That either stretches the picture or rebuilds the bars.
- Making a Short from a 16:9 export with bars. The file stays horizontal and the black stays with it.
- Odd numbers in the crop. Keep the crop width and height even for H.264 MP4 files.
- Cropping a whole video for bars in one scene. The crop cuts every other scene too.
- Treating the player’s padding as a bug. White or dark gray space around a vertical video on a computer comes from YouTube, not from your file.
Black bars FAQ
How do I remove black bars from a video without losing quality?
Crop instead of zooming. Cropping the frame to the picture keeps every pixel at its original size and removes only the black, while zooming enlarges the picture and cuts its edges. Export at the picture’s own size, such as 1920 x 804 or 1440 x 1080, with a high quality setting, since the video is encoded again.
Does YouTube remove black bars automatically?
YouTube Help doesn’t describe any automatic removal. It advises against adding padding or black bars to the video itself, because they interfere with the player resizing to the video and the viewer’s device. Bars inside the file show on every screen, so crop them before you upload.
Why does my vertical video have white or gray bars on a computer?
That padding comes from YouTube, not from your file. YouTube Help says that for some shapes, such as 9:16 vertical videos in computer browsers, it may add padding, white by default and dark gray in Dark theme. In the Android app, the player adapts to the shape of the video.
Does a vertical clip with black side bars count as a YouTube Short?
No. The file around it is 16:9, so YouTube sees a horizontal upload, plays it as a regular video and keeps the bars. Crop to the vertical picture or export again from the original clip; once the file itself is square or vertical and three minutes or shorter, it counts as a Short.
What size is a 2.39:1 video at 1080p?
1920 x 804, rounded to an even number of rows. Inside a 1920 x 1080 frame that leaves 138 pixels of black above and below, so the ffmpeg crop is crop=1920:804:0:138.
Sources
How the player handles shapes and padding, and the advice against black bars: YouTube Help, Video resolution & aspect ratios and its Android version, read October 19, 2026. Which videos count as Shorts and how to avoid it: YouTube Help, Understand three-minute YouTube Shorts, read October 19, 2026. The crop syntax and cropdetect: FFmpeg documentation, crop and cropdetect, read October 19, 2026. The crop sizes and both ffmpeg results: my own test files (a 2.39:1 and a 4:3 picture inside 1920 x 1080), October 19, 2026. The checker’s method and the Premiere Pro and DaVinci Resolve settings: the black bars checker page. Archive and stock for The Spy Show: how to edit stock footage videos; the Erin Marie Shorts: English teaching channels.