FFmpeg Command Generator
Build ffmpeg commands for video and audio with explained flags.
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.mp4What 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.
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 presetOutput
ffmpeg -y -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4Video to GIF
15 fps, 480px wideOutput
Two-pass palettegen / paletteuse commandKeyboard 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
FFmpeg Cheatsheet
Dev Utilities
Searchable ffmpeg command examples for video, audio and streaming.
FFmpeg Online — Run Commands in Your Browser
Dev Utilities
Run real ffmpeg commands on your video, audio or image — no install.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Bash Alias Generator
Dev Utilities
Create shell aliases for Bash, Zsh or Fish with correct quoting.
Chmod Calculator
Dev Utilities
Unix permission calculator: checkboxes, octal, and symbolic.
Code Comment Stripper
Dev Utilities
Remove comments from JS, HTML, Python, or SQL source.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-14 · Runs entirely in your browser