NEW · MediaPipe · 100% Browser-Based

Video Face Auto-Crop

Reframe landscape videos to vertical with face tracking: MediaPipe Face Detection steers a crop window that pans to keep the subject in frame. 9:16 / 1:1 / 4:5 / custom. Browser-based, no upload, no signup.

🎬
Drop a video file
MP4 · MOV · WebM · MKV · AVI · GIF
Files stay on your device · Never uploaded

Related Tools on UDT

Video Background Remover →
Remove or replace video backgrounds with MediaPipe Selfie Segmentation — color, image, or transparent WebM.
Video Resizer →
Resize to 9:16 vertical, 1:1 square, or any aspect ratio with positioned crop, letterbox or blur fill.
Video Trimmer →
Trim videos with frame-accurate precision in your browser.
All Video Tools →
Browse the full Video Suite — 12+ tools, all in-browser.

Why Do This in Your Browser?

Auto-reframing has become a paid feature on every major editor — Premiere's Auto Reframe, Descript's Reframe, Vimeo's smart crop, Veed's reframe. They all do roughly the same thing: detect the most important content in each frame and pan the crop window to follow it. The detection logic is small; the friction is paying for it and uploading.

MediaPipe Face Detection returns a face bounding box for each frame it checks, which is enough to steer a crop window. Combined with FFmpeg.wasm for the final re-encode, the whole reframe runs in your browser. In our test a 6-second 1280×720 clip took about 20 seconds end to end, including the engine downloads.

How It Works

Drop a landscape video. The tool checks 10 frames per second with MediaPipe Face Detection and records where the largest face is. Gaps where no face was found are filled by drawing a straight line between the detections either side. The path is then smoothed with a moving average (the Crop Smoothing setting picks a window of about 1/3, 1 or 2 seconds), and FFmpeg.wasm re-encodes the video with the crop window panning along that path.

If several faces are in a frame, the tool follows the largest one, assumed to be the foreground subject; there is no way to pick a different face. If no face is found anywhere in the clip, or you choose Centre crop, the window stays in the middle.

Tip: The Video Resizer crops a fixed window you position, which suits any content where the subject stays put. This tool follows a face, so it suits talking-head clips. For the inverse workflow — reframing a clip without a face — use the Video Resizer. Combine with the Video Watermark tool to add captions to the reframed vertical clip.

Common Use Cases

Landscape Interview → TikTok
Recorded in 16:9 widescreen, post in 9:16 vertical — the face stays centered as the speaker moves.
Webinar Clips for Shorts
Cut a 60-second highlight from a Zoom recording, then auto-reframe to 9:16 for YouTube Shorts and Reels.
Podcast Video Reels
For a single-speaker reel from a multi-person podcast, trim to the stretch where that host is the largest face in frame.
Course Lesson Excerpts
Pull a single talking moment from a long course video and post it as a vertical promo clip.
Sales Demo Highlights
Extract a 30-second product walk-through from a wider sales recording, reframed for mobile preview.
Event Speaker Recap
Conference talk → vertical highlight reel without a manual keyframed pan.

What the crop keeps, and how it follows a face

The crop always keeps the full height of the video and cuts the width to the ratio you choose (for a ratio wider than the source, such as 21:9 from 16:9, it keeps the full width and cuts the height instead), and it never scales. These are the exact sizes the tool's formula produces:

TargetFrom 1920 × 1080From 3840 × 2160Share of the frame kept
9:16 (TikTok, Reels, Shorts)608 × 10801216 × 216031.7%
4:5 (Instagram portrait)864 × 10801728 × 216045.0%
1:1 (Instagram square)1080 × 10802160 × 216056.2%
21:9 (cinematic)1920 × 8223840 × 164676.1%

A vertical 9:16 crop keeps less than a third of a landscape frame, so the window has only about two thirds of the frame width to travel in. That is enough to follow one person walking across a room; with two people far apart the tool follows the larger face (usually the one nearer the camera) and the other leaves the shot.

How the window moves. The tool looks for faces 10 times per second with MediaPipe's face detector, takes the centre of the largest face, fills short gaps with a straight line between the detections either side, and then averages the path over a window centred on each moment, so it reacts to a move as early as it lags behind it. The smoothing presets set that window: Light averages over 0.5 seconds, Balanced over 1.1 seconds and Heavy over 2.1 seconds. Heavy suits interviews and talking heads; Light suits fast movement, at the cost of a slightly busier pan. If no face is found anywhere in the clip, or with Centre crop chosen, the window stays in the middle.

Expect the detection pass to take longer than the encode on long clips: a 60-second video means 600 detections in your browser before FFmpeg starts.

Frequently Asked Questions

Is this auto-crop really free?+
Yes — completely free, no watermark, no time limits, no signup.
How does face tracking work?+
MediaPipe Face Detection (BlazeFace short-range, a small on-device model) finds faces in 10 frames per second of your video. The tool takes the largest face in each, fills frames with no detection by interpolating between the neighbouring detections, smooths the path with a moving average, and sends it to FFmpeg's crop filter as timed position commands, so the window pans with the face. After processing, a note under the button reports how many sampled frames had a face. BlazeFace short-range is built for faces close to the camera, so small or distant faces may be missed.
Are my videos uploaded anywhere?+
No. MediaPipe runs in your browser; FFmpeg.wasm re-encodes locally. The MediaPipe model (~200KB) and the FFmpeg engine (~32MB) download once and cache. Once it has loaded, processing needs no network connection while the page stays open.
What if there are multiple people in the frame?+
The tool follows whichever face is largest in each sampled frame. If two people are similar in size, the crop can drift between them; trim the clip to the part where your subject is the clear foreground, or use the Video Resizer's positioned crop to fix the window yourself.
What happens on frames without a face?+
Between two detections, the crop moves in a straight line from one to the other. Before the first detection and after the last, it holds that position. If no face is found in the whole clip, the crop stays centred.
Which output aspect ratios are supported?+
9:16 (TikTok, Reels, Shorts), 1:1, 4:5, 21:9 and custom ratios. The output keeps your video's full height and the width follows the ratio; for a ratio wider than the source, such as 21:9 from 16:9, it keeps the full width and trims the height instead, centred.
How long does processing take?+
It depends on clip length and your device. Every tenth of a second of video is checked for faces, then the whole clip is re-encoded with FFmpeg.wasm on your CPU (no GPU acceleration). In our test, a 6-second 720p clip took about 20 seconds including the one-time engine downloads. Expect minutes for clips of a few minutes, longer on phones, and very long clips can run out of browser memory.
What's the underlying engine and license?+
MediaPipe Tasks Vision (Apache 2.0) for face detection and FFmpeg.wasm for re-encoding. FFmpeg itself is LGPL by default, but the @ffmpeg/core build this tool loads includes x264, which makes that build GPL; the wasm wrapper is MIT. Both load unmodified from public CDNs.