What are MP4 and MKV?
MP4 is the video container that plays everywhere: phones, browsers, TVs, WhatsApp, Instagram and every editor, normally with H.264 video and AAC audio. MKV (Matroska) is an open container that holds any codec, many audio tracks and subtitles in one file; common for movies and screen recordings from OBS.
MKV is a good archive container for adding subtitles and extra audio tracks later; an H.264 MP4 moves into MKV without re-encoding.
This page opens the video converter ready for MP4 → MKV. The conversion runs in your browser: the files never leave your device.
MP4 vs MKV
| MP4 | MKV | |
|---|---|---|
| Extension | .mp4 | .mkv |
| What it is | container | container |
| Usual codecs | H.264, H.265, AV1 + AAC | any (H.264, H.265, VP9, AV1…) |
| Plays on | everything | VLC, desktop players, Chrome; iPhone, many TVs and social networks do not |
| Best for | sharing, web, phones | movies, OBS recordings |
When to convert MP4 to MKV
- Convert to MKV when you keep several audio tracks and subtitles together, or record with OBS without risk of losing the file.
- Keep the MP4 when the video must play on any phone, browser or social network.
What changes in the conversion
- When the MP4 already has H.264 video, the "fast" option copies the picture into the MKV untouched (no re-encoding, no quality loss, seconds instead of minutes). Other codecs are re-encoded to H.264.
- The MKV can later receive subtitle tracks and extra audio languages without re-encoding (with MKVToolNix, for example), which MP4 handles poorly.
- Everything runs in your browser with FFmpeg compiled to WebAssembly: big files need free memory (the page warns above 300 MB) and take longer on phones.
How to convert MP4 to MKV
- Drop one or more MP4 files (.mp4) on the page.
- Convert; MKV is already selected.
- Download each MKV or a ZIP with all of them.
Example
The converter runs FFmpeg in your browser. With the default "balanced" quality, a MP4 is re-encoded with these exact arguments:
ffmpeg -i input.mp4 -map 0:v:0 -map 0:a:0 -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -c:v libx264 -preset veryfast -crf 24 -pix_fmt yuv420p -c:a aac -b:a 160k -y output.mkvWhen the source video is already H.264 and the size is kept, the "fast" option copies the picture instead (-c:v copy), which takes seconds:
ffmpeg -i input.mp4 -map 0:v:0 -map 0:a:0 -c:v copy -c:a aac -b:a 160k -y output.mkvFrequently asked questions
Are my files uploaded?
No. Your browser reads and converts the MP4 files itself.
Why does a MP4 file not play everywhere?
A MP4 file is a container that usually carries H.264, H.265, AV1 + AAC; it plays on everything. A MKV plays on VLC, desktop players, Chrome; iPhone, many TVs and social networks do not.
Is there a size limit?
No fixed limit, but the browser holds the file about three times in memory while converting; the page warns above 300 MB and above 1 GB, where a desktop with plenty of RAM works best.