FFmpeg Cookbook

Crop Video Tool

Trim unwanted edges from a video. Useful for removing black bars or tightening framing.

Local processing only — your file never leaves the browser
🔲
Drag & drop a video, or tap to select
MP4 / MOV / WebM, up to 500 MB
🎬
Numbers are percent of the source video's width / height. Top 10% + bottom 10% leaves 80% of the height in the output.
Processing… 0%

Useful next tools

Popular uses
Remove black barsAdjust aspect ratioCrop for social formats

What this tool does

  • Per-side crop in % (top / bottom / left / right)
  • Presets for letterbox removal, square 1:1, vertical 9:16
  • Video re-encode; audio stream-copy (lossless)
  • Auto-rounds to even dimensions for libx264 compatibility
  • Local-only processing — your file never leaves the browser

How to use

  1. 1

    Drop the video

    MP4 / MOV / WebM, up to 500 MB.

  2. 2

    Pick a preset or enter values

    4 presets, or enter top/bottom/left/right percentages directly.

  3. 3

    Run

    Preview will appear; download the result.

What each setting means

Top / Bottom / Left / Right (%)
Percent of the source dimensions to remove from each side.
Preset: Remove black bars
Trims 12.5% from top and bottom — for cinemascope footage in 16:9 containers.
Preset: Square (1:1)
Trims 21.875% from each side of a 16:9 source for Instagram square posts.
Preset: Vertical (9:16)
Trims 28.125% from each side of a 16:9 source for TikTok / Shorts.

Recommended settings

Cinemascope clip in a 16:9 container
Top 12.5% + bottom 12.5%
Removes the 2.35:1 letterbox bars cleanly.
Landscape → Instagram square
Square preset (1:1)
Trims sides evenly to keep the center in frame.
Subject closer to center
Custom 15% on each side
Removes distracting edges and emphasizes the subject.

Common pitfalls

Symptom: Output has green or black borders

Cause: Crop went outside the frame, or odd dimensions.

Fix: The tool auto-rounds to even pixels; combined crop > 95% rejects.

Symptom: Cropped more than expected

Cause: Specified percentages on both sides.

Fix: Top 10% + bottom 10% removes 20% of the height. Set the side you don't want to crop to 0.

Symptom: Subject got cropped out

Cause: Preset assumes center framing.

Fix: Use custom mode and set asymmetric percentages to keep your subject in frame.

Equivalent FFmpeg commands

Reference commands you can run on the desktop FFmpeg CLI.

Trim 10% from top and bottom
ffmpeg -i input.mp4 -vf "crop=iw:ih*0.8:0:ih*0.1,scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 20 -c:a copy output.mp4
Square (16:9 → 1:1)
ffmpeg -i input.mp4 -vf "crop=ih:ih:(iw-ih)/2:0" -c:v libx264 -crf 20 -c:a copy output.mp4
Vertical (16:9 → 9:16)
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih:(iw-ih*9/16)/2:0,scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 20 -c:a copy output.mp4

Browser support & limits

  • Recommended max: 500 MB
  • Combined crop must stay below 95%
  • Drag-to-select region planned for a future update

Privacy

This tool runs ffmpeg.wasm directly in your browser. Files never leave your device — everything runs locally. Read the privacy policy →

Frequently asked questions

Can I crop off-center?

Yes — set one side to 0% and only crop the opposite side. "Left 20%, right 0%" produces a frame shifted to the right.

Do I need to know the source resolution first?

No. The tool uses FFmpeg expressions like iw*0.X internally, so the crop adapts to whatever dimensions the input has.

Does cropping affect audio?

No — audio is stream-copied unchanged.

Why 12.5% for letterbox removal?

2.35:1 cinemascope inside a 16:9 container leaves roughly 12.5% black on top and bottom. If your specific clip differs, adjust manually.

How does file size change?

Lower pixel count → 30–70% smaller at the same CRF.

Related tools