FFmpeg Command Generator

Build ffmpeg commands for video and audio with explained flags.

Works Offline
Privacy First
No Login
No API

Build a command

Pick a task and tune the flags

Command

Copy and paste into your terminal

ffmpeg -y -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -movflags +faststart output.mp4

What each flag does

  • -yOverwrites the output file without asking.
  • -crf 23Quality target: lower is better quality and a bigger file (18 ≈ visually lossless, 28 ≈ small).
  • -preset mediumEncoding speed vs. compression — slower presets give smaller files.
  • -movflags +faststartMoves the index to the front so the MP4 starts playing before it finishes downloading.
Need something else? The FFmpeg cheatsheet has 46 ready-made commands for video, audio, GIF, HLS and subtitles.

Run it here

Add your video, audio or image and run this exact command in your browser

Drop a file here

Video, audio or image — up to 512 MB, processed locally with ffmpeg.wasm

Input files this command needs

  • input.mp4→ add a file above

The first run downloads the ffmpeg WebAssembly core (~32 MB) and then caches it. Encoding in the browser is slower than a native install, so keep clips short for heavy re-encodes.

About the FFmpeg Command Generator

Pick a task — compress, convert, resize, trim, extract audio, GIF or thumbnail — set codec, CRF, preset, bitrate and frame rate, and get a ready-to-paste ffmpeg command with a plain-English explanation of every flag.

Examples

Compress an MP4

H.264, CRF 23, medium preset

Output

ffmpeg -y -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4

Video to GIF

15 fps, 480px wide

Output

Two-pass palettegen / paletteuse command

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-14 · Runs entirely in your browser