Video · MKV to MP4
MKV to MP4, track by track.
Matroska holds almost anything, MP4 holds less. This shows what is inside your MKV, copies every track MP4 can take, and only re-encodes the rest. It runs on your device and nothing is uploaded.
How to convert MKV to MP4
- Choose the MKV. The track table appears: each video, audio and subtitle track, its codec, and whether it will be Copied, Re-encoded or Left out.
- Untick audio tracks or subtitles you do not want. Tracks you drop make the file smaller and the job faster.
- Press Convert to MP4. When every track is Copied, the job is a remux and finishes in seconds.
What MP4 can and cannot hold
Matroska is a flexible container: any video codec, many audio tracks, several subtitle formats, chapters, fonts and cover art. MP4 is narrower. The decisions this tool makes, track by track:
- Video: H.264, HEVC, AV1 and VP9 are copied. Anything else (MPEG-4 Part 2, VC-1, MPEG-2) is re-encoded to H.264, because MP4 phones and browsers would not play it anyway.
- Audio: AAC, MP3, AC-3, E-AC-3 and ALAC are copied. FLAC, DTS, TrueHD, Vorbis and Opus are re-encoded to AAC, because they are not reliably playable from MP4. The number of channels is kept (surround stays surround).
- Subtitles: SRT, WebVTT and ASS text are converted to MP4 text subtitles. ASS styling (fonts, colours, positions) is lost; words and timing stay. Picture subtitles (Blu-ray PGS, DVD) cannot go into MP4 and are left out.
- Chapters are carried over; embedded fonts and cover art are not.
Worked example: a multi-audio release
Take a 1080p release with HEVC 10-bit video, a Japanese FLAC track, an English AC-3 5.1 track, an ASS subtitle, a PGS subtitle, a font attachment and a cover image. The table shows: video Copied (HEVC, tagged for Apple players); Japanese FLAC Re-encoded to AAC; English AC-3 Copied; ASS subtitle Re-encoded to MP4 text with a styling warning; PGS Left out; font and cover Left out. If you only want the English dub, untick the FLAC track and the conversion becomes a pure remux.
When it has to re-encode
Audio re-encoding is cheap. Video re-encoding is not: this WebAssembly build runs on a single thread, and in our own test runs H.264 at 1080p encoded at roughly 2 frames per second, against about 40 frames per second at 640x360. A long 1080p movie needing a video re-encode could take many hours, so for those use desktop software. The tool tells you before you start whether video will be re-encoded, and you can cap the output height at 720p or 480p to cut the work sharply.
10-bit video that must be re-encoded is converted to 8-bit and HDR is not tone-mapped; you get a warning. Keep HEVC and remux if you can.
Common mistakes
- Re-encoding when a remux would have worked. Leave Method on Auto and read the table.
- Expecting PGS subtitles to survive. They are pictures, not text; use an MKV player, or OCR them with a subtitle tool first.
- Forgetting that MP4 players pick one default audio track. All kept tracks are present; choose the language in your player.
- Choosing Remux only for a file with FLAC audio. It will refuse and tell you which track is the problem.
Your file never leaves your browser
The converter runs in a sandboxed frame whose content security policy permits no network connections other than local blob and data URLs. FFmpeg, compiled to WebAssembly, reads the MKV from your disk and the MP4 is assembled in memory and saved through your browser's own download. There is no upload step in the code, no analytics in the frame, and no server that could receive your file. Check the network panel in your browser while you convert if you want to see it for yourself.
Limits and what this does not do
- One file at a time, up to 2 GB, with a memory warning above 500 MB.
- It does not burn subtitles into the picture (hard-sub), change frame rate, or merge files.
- It cannot read encrypted or DRM-protected discs and rips.
Common mix-ups
-
Often assumedMKV is a video format, so MP4 must be a different quality.
What the source saysRFC 9559 says Matroska is not a video or audio compression format; it is an envelope that can hold many audio, video and subtitle streams. The quality is set by the codecs inside, not by the .mkv name. [1]
-
Often assumedEverything in an MKV will carry over into the MP4.
What the source saysRFC 9559 lists chapters, full tag metadata and selectable subtitle, audio and video streams as Matroska features. Not every one of these has an equivalent in MP4, so check the per-track table before relying on a feature. [1]
Checked against these sources on .
Frequently asked questions
Can I convert MKV to MP4 without losing quality?
Yes, when the video and audio are in a codec MP4 accepts. Those tracks are copied bit-for-bit. The result table shows each track as Copied or Re-encoded so you know exactly what changed.
Why does one of my audio tracks say Re-encoded?
FLAC, DTS, TrueHD, Vorbis and Opus are not dependable inside MP4 across players, so they are converted to AAC at a bitrate scaled to the channel count. Untick the track if you do not need it.
What happens to my subtitles?
Text subtitles (SRT, WebVTT, ASS) are converted to MP4 text subtitles, losing ASS styling. Picture subtitles such as PGS cannot be stored in MP4 and are left out, with a warning.
Are chapters kept?
Yes, chapter markers are carried into the MP4. Embedded fonts and cover images are not.
Why is it slow on my file?
A video track needed re-encoding. Copying is fast; encoding H.264 in a single-threaded WebAssembly engine is far slower than desktop software. Cap the height or use a desktop tool for long HD files.
Will the MP4 play on my TV or phone?
H.264 with AAC or AC-3 plays on nearly everything. HEVC needs a device that supports it. If a device refuses the file, set Method to Always re-encode to H.264 + AAC.
Does it work on 4K or 10-bit files?
It copies them fine when the codecs fit MP4. A forced re-encode of 4K is impractical in a browser, and 10-bit video becomes 8-bit when re-encoded.
Is my MKV uploaded?
No. The conversion happens on your device, in a frame with no network access.
Sources
Last checked
- RFC 9559: Matroska Media Container Format — the container structure: tracks, chapters, attachments, tags
- Matroska codec specifications — codec identifiers Matroska files use, including subtitle formats
- FFmpeg formats documentation — the MP4, Matroska, WebM and Ogg muxers and their options (movflags faststart)
- FFmpeg command-line documentation — stream selection with -map and stream copy with -c copy
- MDN: media container formats — which codecs each container can hold and where browsers can play them
- ffmpeg.wasm project — FFmpeg compiled to WebAssembly, the engine this page runs in your browser
Runs entirely in your browser. Your file is read on your device and is never uploaded.