Powered by WebAssembly

Resize Video for Twitter/X (Free, Online, No Upload)

Resize any video to Twitter/X's recommended dimensions right in your browser. Nothing gets uploaded to a server. Get the right aspect ratio and resolution so your video displays correctly in the timeline without cropping. The processing runs locally on your device.

Try it in your browser

Loading FFmpeg engine... (~31 MB)

Use the API

curl -X POST https://renderio.dev/api/v1/run-ffmpeg-command \
  -H "X-API-KEY: ffsk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "ffmpeg_command": "-i {in_video} -t 140 -vf \"scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black\" -c:v libx264 -crf 23 -c:a aac {out_video}",
  "input_files": {
    "in_video": "https://example.com/input.mp4"
  },
  "output_files": {
    "out_video": "output.mp4"
  }
}'

Need an API key? Get your free API key to start processing files programmatically.

Common Variations

Vertical format (9:16)
-i input.mp4 -t 140 -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:-1:-1:color=black" -c:v libx264 -crf 23 -c:a aac output.mp4
Square format (1:1)
-i input.mp4 -t 140 -vf "scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:-1:-1:color=black" -c:v libx264 -crf 23 -c:a aac output.mp4
Optimized for fast start
-i input.mp4 -t 140 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black" -c:v libx264 -crf 23 -movflags +faststart -c:a aac output.mp4

Platform Specs

Width

1920px

Height

1080px

Aspect Ratio

16:9

Max Duration

2:20

Related Operations

Need to process at scale?

Automate this with the RenderIO FFmpeg API. Process thousands of files programmatically or through no-code video automation.