FFmpeg Cookbook
JA

Video Format Converter

Convert a video to MP4, WebM, MOV, MKV, AVI or GIF. Use it when a file will not play where you need it.

Your file is not uploaded
Drag & drop a video, or click to select
Supported: MP4, MOV, AVI, MKV, WebM, FLV, etc. / Max 500 MB
—
—
Processing… 0%
Input
—
Output
—
Input size
—
Output size
—
Download converted file

Equivalent FFmpeg command

CLI command for your current settings. Updates live as you change controls.

ffmpeg -y -i input.mp4 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 23 -preset fast -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart output.mp4
Popular uses
Convert MOV/MKV to MP4Improve upload compatibilityFix playback format issues

How to use

  1. Pick a videoMP4, MOV, MKV, WebM, AVI and so on, up to 500 MB.
  2. Pick output formatMP4 / WebM / MOV / MKV / AVI / GIF.
  3. Pick qualityHigh quality, Balanced or Small size (not available for GIF).
  4. ConvertWhen it finishes, "Download converted file" appears.

Recommended settings

iPhone .mov for sharing
MP4, Balanced
An MP4 with H.264 and AAC plays on both iPhone and Android.
Web embed
WebM, Balanced
Browser-oriented format (VP8 video, Opus audio).
Embedded in a slide deck
MP4, High quality
PowerPoint recommends MP4 files with H.264 video and AAC audio.

When it goes wrong

WebM won't play somewhere

Cause: Some players and social sites do not support WebM.

Fix: Use MP4 (H.264); it plays in the most places.

Quality dropped

Cause: Small size is selected, or the source was already heavily compressed. The tool always re-encodes, so some quality is always lost.

Fix: Pick High quality.

Questions

Audio-only output?

No. To take only the sound from a video, use the Audio Extractor.

No re-encode just to change container?

Not in this tool: it always re-encodes. To change only the container without losing quality, use FFmpeg with `-c copy` (for example `ffmpeg -i input.mkv -c copy output.mp4`). It fails if the new container cannot hold the video or audio format.

MKV vs MP4?

Use MP4 for sharing: more devices and apps play it. MKV makes it easy to keep subtitles and several audio tracks in one file, but some devices cannot open it in their built-in video app.

More detail (settings, limits, FFmpeg commands)

What each setting means

Output format
MP4, MOV, MKV and AVI get H.264 video and AAC audio. WebM gets VP8 video and Opus audio. GIF has no sound and is 15 fps and 320px wide.
Quality
High quality is CRF 18, Balanced is CRF 23 and Small size is CRF 32. A lower number means better quality and a bigger file.

Browsers and limits

  • MP4 / WebM / MOV / MKV / AVI / GIF outputs
  • Up to 500MB input

The same job with the FFmpeg command line

MOV → MP4
ffmpeg -i input.mov -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 23 -preset fast -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart output.mp4
The same settings as the tool's MP4 at Balanced. -pix_fmt yuv420p writes 8-bit 4:2:0, and the scale makes the width and height even.
MP4 → WebM (VP8, standard quality)
ffmpeg -i input.mp4 -c:v libvpx -crf 23 -b:v 4M -c:a libopus -b:a 128k output.webm
For VP8, -crf is used together with -b:v (the bitrate ceiling). The values match the tool's WebM at Balanced.