Tool
Choose the video, audio and subtitle codecs of a file you are about to make (or already have) and the tool tells you whether each of the four containers can hold them, which tracks you would have to convert or drop, and builds example FFmpeg -map and -c options. Your input is processed only inside this browser and is never sent anywhere.
Common combinations
Video
Audio (pick several; the order you pick is the track order)
Subtitles (pick several; the order you pick is the track order)
Paste the output of ffprobe -v error -show_entries stream=codec_type,codec_name -of csv=p=0 file, or the Stream lines from ffmpeg -i file. The text is read only inside this browser.
MKV is the safest container for this combination
‘Fits in the container’ is not the same as ‘plays on your device’. When verdicts tie, the one earlier in the list (MP4 → MKV → WebM → MOV) is shown first.
FFmpeg command example for MKV
ffmpeg -i input.mkv \ -map 0:v:0 \ -map 0:a:0 \ -map 0:s:0 \ -c:v libx265 -crf 24 -preset medium \ -c:a:0 libopus -b:a 128k \ -c:s copy \ output.mkv
The -crf and -b:a values are starting examples, not values this tool measured. Track numbers (0:a:0 etc.) follow the order you picked, so change them to match the real file. Play the result on the device or app you plan to use and check it yourself.
MP4, MKV, WebM and MOV are boxes (containers) that hold video, audio and subtitle streams. Whether you put the same H.264 stream in MP4 or in MKV, the stream itself is identical, so switching containers does not change the quality. Two things matter when you choose a container: “does that box accept my combination of streams?” and “will the devices and apps I use open that box?” This tool answers the first question; the second you have to check yourself, as explained under the limitations below.
mov_text (MP4, MOV) or WebVTT (WebM) is the typical example, and ASS loses its styling in the process.The table behind these verdicts is this site’s summary of the container specifications and FFmpeg’s usual behavior, and it can vary with the FFmpeg version. Codecs that are not in the table are not judged, so that the tool never says “it works” about something it doesn’t know.
ffprobe output to fill them in.-map and -c example and run it. Choose “Encode new” when you are encoding fresh, or “Copy existing tracks” when you are moving tracks that are already encoded.This tool is a pre-selection tool for a combination you are going to make. To find out whether an MKV file you already have can be moved to MP4 without quality loss, the MKV to MP4 Remux Feasibility Checker, which reads the tracks directly, is more accurate. When choosing a video codec, use Codec Support Check and the Codec String Decoder alongside it, and for audio codecs the Audio Bitrate Picker. If you put HEVC in MP4 and it won’t open on an Apple device, the hvc1/hev1 Tag Checker can help.
-map 0:v:0 -map 0:a:0 -map 0:s:0: pulls in the video, audio and subtitle tracks by explicit number. Subtitles that do not fit are left out here.-c:v copy and -c:a:0 copy: copy without re-encoding. For tracks that do not fit, a re-encoding option is used instead.-c:s mov_text, -c:s webvtt and -c:s copy: convert the subtitles to the format that suits the container (MP4, MOV, WebM) or copy them as they are (MKV).-tag:v hvc1: added when putting HEVC in MP4 or MOV. Without this tag, playback on Apple devices is known to have problems.-movflags +faststart: puts the playback information of MP4 and MOV at the front of the file so it can start playing right away on the web.-crf and -b:a values in the commands are starting examples, not values this tool measured. For values that match your quality target, see the CRF Recommender or the measurement articles.