Vertical video is 9:16 at 1080x1920: TikTok ads take 540x960 and up, Meta recommends 1440x2560 for Reels ads, and Shorts run up to 3 minutes. ReelSDK's free vertical video converter turns a landscape clip into one in your browser.

Vertical video dimensions

Full-screen vertical video is 1080 pixels wide and 1920 tall, and ReelSDK's API crops a 16:9 clip to it in about 10 seconds. ffmpeg either keeps the middle 1080 columns or pads the whole frame with bars; setsar=1 keeps the pixels square.

GuidesUpdated

fill
ffmpeg -i landscape.mp4 \
  -vf "scale=-2:1920,crop=1080:1920,setsar=1" \
  -c:a copy vertical.mp4

Scale the video to 1920 pixels tall, which turns 1920x1080 into 3414x1920, then keep the middle 1080 columns. The sides are cut off. setsar=1 keeps the pixels square, and the result is 1080x1920 at 9:16.

Variations

The other commands you will need

  1. Fit the whole frame with bars

    Scale to 1080 wide, which gives 1080x608, then pad to 1080x1920 with the picture in the middle. Nothing is cut, and the black bars make the file smaller: about 2.5 MB against 4.4 MB for the crop.

    fit
    ffmpeg -i landscape.mp4 \
      -vf "scale=1080:-2,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,setsar=1" \
      -c:a copy letterbox.mp4
  2. Make a smaller 720x1280 copy

    When the file size matters more than sharpness, scale a 1080x1920 video down to 720x1280. Our clip went from about 5.5 MB to 2.4 MB, well under half.

    720p
    ffmpeg -i clip.mp4 -vf scale=720:1280 -c:a copy clip-720.mp4
  3. Crop 9:16 to 4:5 for a feed post

    A 4:5 feed video is shorter than a full-screen one. Keep the full width and take a height of 5/4 times the width: 1080x1350 from our 1080x1920 clip.

    4x5
    ffmpeg -i clip.mp4 -vf "crop=iw:iw*5/4" -c:a copy feed-4x5.mp4

The flags

The flags in these commands

The flags in these commands
FlagWhat it doesUsed here
scale=-2:1920Scales to 1920 tall and picks an even width that keeps the shapeFill
crop=1080:1920Keeps a 1080x1920 window, centered when you give no positionFill
scale=1080:-2Scales to 1080 wide with an even heightFit
pad=1080:1920:(ow-iw)/2:(oh-ih)/2Adds black bars to reach 1080x1920 and centers the pictureFit
setsar=1Marks the pixels as square so players don't stretch the frameFill, fit
crop=iw:iw*5/4Keeps the full width and a height of 5/4 of it4:5 feed
-c:a copyCopies the audio while the video is re-encodedAll

Sources: ffmpeg filters: scale, ffmpeg filters: crop, ffmpeg filters: pad, checked November 2026.

What each platform asks for

All three take 9:16 at 1080x1920. The limits differ, and the ad specs give the most exact numbers:

  • TikTok in-feed ads: 9:16 recommended, at least 540x960 px; 16:9 and 1:1 also accepted; .mp4, .mov, .mpeg, .3gp or .avi; up to 10 minutes and 500 MB; at least 516 kbps.
  • Instagram Reels ads: 9:16 at 1440x2560 recommended; MP4 or MOV with H.264, square pixels, a fixed frame rate and stereo AAC at 128 kbps or more; up to 15 minutes and 4 GB.
  • YouTube Shorts: any square or vertical upload of up to 3 minutes, from October 15, 2024 on. A 16:9 upload stays a regular video.

Keep text out of the edges

The app draws its own buttons and captions over the video. Meta asks Reels advertisers to leave at least 14% of the top, 35% of the bottom and 6% of each side free of text and logos; TikTok publishes safe-zone files for each format. On a 1080x1920 frame, keep titles and burned-in captions in the middle band.

Meta's spec also rules out edit lists in the file, and ffmpeg writes one per track by default: our 1080x1920 output had two. -use_editlist 0 leaves them out, and the API accepts it too. Check the result, though: on our test encode the video then started two frames after the audio.

Why setsar=1 is in both commands

When scale rounds a side to an even number, it stores a pixel shape that keeps the picture's proportions. Without setsar=1, our fit command wrote a 1080x1920 file with a sample aspect ratio of 1216:1215, so players would show it at 76:135 instead of 9:16. Meta asks for square pixels; setsar=1 gives you SAR 1:1 and a clean 9:16.

To move or size the crop window, see the crop guide. For other target sizes and the even-number rule, see how to resize a video with ffmpeg. Turning a clip on its side with rotate and flip also gives 1080x1920, but the scene lies sideways.

Without installing ffmpeg

The same command as one API call

Send the fill command to POST /v1/ffmpeg with the clip's URL in inputs. Each job runs ffmpeg 8.1 on a fresh machine at $0.02 per compute minute, billed per second; this one finished in about 10 seconds, download and upload included, and cost under half a cent.

terminalTry it
curl "https://api.reelsdk.com/v1/ffmpeg?wait=60" \
  -H "Authorization: Bearer $REELSDK_KEY" \
  --json '{
    "inputs": {
      "landscape.mp4": "https://api.reelsdk.com/f/lib/demo/landscape.mp4"
    },
    "args": [
      "-i", "landscape.mp4", "-vf", "scale=-2:1920,crop=1080:1920,setsar=1",
      "-c:a", "copy", "vertical.mp4"
    ],
    "outputs": ["vertical.mp4"]
  }'
vertical.mp4 from the API: 1080x1920 at 9:16 with square pixels.Input: landscape.mp4

FAQ

Questions, answered

What is the best resolution for vertical video?

1080x1920 at 9:16. TikTok, Instagram Reels and YouTube Shorts all take it; Meta recommends 1440x2560 for Reels ads, and TikTok's ad specs accept anything from 540x960 up.

What aspect ratio is a vertical video?

9:16, the phone screen held upright: 1080 pixels wide by 1920 tall. A 4:5 video, 1080x1350, is the shorter vertical format for feed posts.

How do I turn a horizontal video into a vertical one with ffmpeg?

To fill the screen, scale to 1920 tall and crop the middle: -vf "scale=-2:1920,crop=1080:1920,setsar=1". To keep the whole picture, scale to 1080 wide and pad to 1080x1920 with bars instead.

How long can a YouTube Short be?

Up to 3 minutes. Since October 15, 2024, YouTube files any square or vertical upload of that length or less as a Short.

Can I convert videos to 9:16 with an API?

Yes. Send the same ffmpeg args to POST https://api.reelsdk.com/v1/ffmpeg; it runs ffmpeg 8.1 on a fresh machine per job for $0.02 per compute minute, billed per second, and failed jobs are free.

Ready to build?

Ship video from your app today

Your first $0.50 is free, and one key covers every endpoint.

Moonlit lake with a lit cabin under the mountains