MKV vs MP4 - How to Remux MKV Files Without Losing Quality

What the MKV (Matroska) container is, why phones and editors reject it, and how to turn MKV into MP4 by remuxing or re-encoding audio such as AC-3 and DTS.

Updated September 29, 2026 6 min read

Use the free MKV to MP4Remux or convert Matroska MKV videos to MP4 without uploading

MKV files turn up everywhere: screen recorders such as OBS default to them, many camera and capture workflows export them, and archived video collections are full of them. They play perfectly in VLC, then fail the moment you try to open one in iMovie, attach it to a message on a phone, or upload it to a platform that lists "MP4, MOV" as accepted formats.

The good news is that an MKV file often contains exactly the same video an MP4 would. This guide explains what Matroska is, which MKV files can be converted losslessly in seconds, which ones need their audio or video re-encoded, and how to handle subtitles and multiple tracks.

What is an MKV file?

MKV is the file extension of Matroska, an open, royalty-free container format. Like MP4, it is a box that holds separate streams. What makes Matroska popular is how much it can hold:

  • almost any video codec (H.264, HEVC, VP9, AV1, older MPEG-4 Part 2 and more);
  • almost any audio codec, including AC-3 (Dolby Digital), DTS, FLAC, Opus and Vorbis;
  • any number of audio and subtitle tracks, including image-based subtitles;
  • chapters and attached files such as fonts.

That flexibility is also its weakness. MP4 players, phones, browsers and many editors expect a narrower, better-supported set of codecs, and plenty of software simply does not read the Matroska container at all.

WebM, by the way, is a restricted subset of Matroska designed for the web: only VP8, VP9 or AV1 video with Vorbis or Opus audio.

Which MKV files convert losslessly?

Whether you can remux (copy the streams into a new container without re-compressing them) depends on the codecs inside, not on the .mkv extension:

Inside the MKV What happens when converting to MP4
H.264 or HEVC video + AAC or MP3 audio Remux: lossless, very fast
H.264 or HEVC video + AC-3, DTS, FLAC or Opus Audio must be converted for broad MP4 playback
VP9 or AV1 video Video must be re-encoded for broad MP4 playback
Text subtitles (SRT, ASS) Can become MP4 "mov_text" subtitles, with styling lost
Image subtitles (PGS, VobSub) Cannot go into MP4; they must be burned in or dropped

Some of the "must be converted" cases are technically allowed inside MP4 by the specifications, but support across players is patchy, so the safe route is AAC audio and H.264 video.

Convert MKV to MP4 in your browser

The MKV to MP4 converter reads the file's streams first and chooses the lossless path whenever it can.

  1. Open MKV to MP4 and drop the .mkv file on the upload box.
  2. Keep Conversion on Automatic (recommended). If the file holds H.264 or HEVC video with AAC or MP3 audio, the streams are copied into MP4 without re-encoding.
  3. If you need guaranteed H.264 (for example, the MKV contains HEVC and the target laptop cannot play it), choose Always re-encode.
  4. Choose Quality if re-encoding: High, Good or Compact.
  5. Click Convert to MP4. The note under the result states the source codecs and whether they were copied or re-encoded.

Be aware of three limits. First, the tool keeps only the first video and the first audio track, and subtitles are dropped. Second, if the audio is AC-3, DTS, FLAC or Opus, the tool re-encodes the whole file to H.264 and AAC, including the video, rather than converting only the audio. Third, re-encoding runs as single-threaded WebAssembly, so it is much slower than a desktop encoder and large files can exhaust the browser's memory. For a two-hour 1080p recording with Dolby audio, the ffmpeg commands below are the better choice.

Doing it with ffmpeg

Pure remux

ffmpeg -i input.mkv -map 0:v:0 -map 0:a:0 -c copy -movflags +faststart output.mp4

The -map options pick the first video and first audio stream. Without them, ffmpeg chooses one video and one audio stream automatically.

Copy the video, convert only the audio

This is the smart fix for H.264 files with AC-3 or DTS sound. The picture is untouched; only the audio is encoded to AAC:

ffmpeg -i input.mkv -map 0:v:0 -map 0:a:0 -c:v copy -c:a aac -b:a 192k -movflags +faststart output.mp4

Keep text subtitles

ffmpeg -i input.mkv -map 0:v:0 -map 0:a:0 -map 0:s:0 -c:v copy -c:a copy -c:s mov_text output.mp4

This only works for text-based subtitle tracks. Image-based tracks will make the command fail.

Keep every audio track

Use -map 0:v:0 -map 0:a to include all audio streams, then set languages with -metadata:s:a:0 language=eng and so on.

Other tools

  • HandBrake re-encodes everything, but its track selection for audio and subtitles is excellent and it can burn image subtitles into the picture.
  • MKVToolNix is the specialist for editing Matroska itself: removing tracks, changing default flags or splitting files without re-encoding. It does not write MP4.
  • VLC can play almost any MKV, which is often enough if you only need to watch the file.
  • OBS users can avoid the problem entirely: OBS has a built-in Remux Recordings option in its File menu that converts MKV recordings to MP4 losslessly.

Tips and troubleshooting

Why record in MKV at all?

If a recording app crashes or the computer loses power, an MP4 may be unreadable because its index is written at the end. An MKV that stops mid-write usually stays playable up to the point of failure. Recording to MKV and remuxing afterwards gives you both safety and compatibility.

The converted MP4 has no sound on a TV

The source audio may have been copied as MP3 or AAC in a channel layout the TV dislikes, such as 5.1. Re-encoding to stereo AAC with -ac 2 in ffmpeg usually solves it.

The result is enormous

Remuxing keeps the original bitrate. Screen recordings in particular are often recorded at a very high bitrate; run the MP4 through Compress Video afterwards, or cut unwanted parts first with Trim Video.

Converting other containers

For iPhone footage see MOV to MP4 and the guide on converting iPhone MOV videos. Old Xvid or DivX files belong in AVI to MP4.

Frequently asked questions

Is MKV better quality than MP4?

No. Quality is determined by the codec and bitrate, not the container. The same H.264 stream looks identical whether it sits in an MKV or an MP4.

Why can't my iPhone play MKV files?

Apple's built-in players do not support the Matroska container. Remuxing to MP4 fixes this as long as the video is H.264 or HEVC.

Will I lose subtitles when converting MKV to MP4?

With our browser tool, yes: subtitles are dropped. With ffmpeg you can keep text subtitles as mov_text, but image-based subtitles cannot be stored in MP4.

How long does a lossless MKV remux take?

Usually seconds to a minute, because no frames are decoded. The time depends mainly on file size and storage speed rather than video length.

Why did my file get re-encoded when I chose Automatic?

The audio or video codec was not one the tool can safely copy into MP4, typically AC-3, DTS, FLAC or Opus audio, or VP9 video. AV1 sources are best handled with desktop ffmpeg.

Try it now: MKV to MP4

Loading tool…