Convert MKV to MP4 without losing quality

Most MKV files only need a new container, so the picture and sound are copied in seconds with no loss. When it must re-encode, and what happens to subtitles.

On this page
  1. MKV vs MP4: why the conversion is usually just a copy
  2. Convert MKV to MP4 with Vidray
  3. Convert MKV to MP4 with FFmpeg
  4. Can HandBrake convert MKV to MP4 without re-encoding?
  5. Which way fits you
  6. Why are my subtitles gone after converting to MP4?
  7. Common questions

To convert MKV to MP4 without losing quality, copy the video and sound into the new container instead of re-encoding them. MKV and MP4 are only boxes. Most MKV files hold H.264 or HEVC video, which MP4 takes as it is, so the conversion takes seconds and the picture stays bit for bit the same.

MKV vs MP4: why the conversion is usually just a copy

A video file has two layers. The codec is how the picture and the sound are compressed: H.264, HEVC, AAC. The container is the box that holds those streams, with the timing that keeps them in step: MKV, MP4, MOV.

MKV (Matroska) is the more flexible box. It takes almost any codec, any number of sound and subtitle tracks, chapters and attached fonts, which is why it’s common for films, series and screen recordings. MP4 is the box most phones, TVs, browsers and editing apps expect. Converting MKV to MP4 is mostly about getting a file those devices will open.

When the codecs inside the MKV are ones MP4 takes, nothing has to be compressed again. The streams are copied into the new box as they are, which takes about as long as reading and writing the file. Here is what Vidray copies and what it converts:

Stream Copied into MP4 as it is Converted
Video H.264, HEVC, AV1 Anything else, such as VP9 or MPEG-2, becomes H.264
Sound AAC, MP3, AC-3, E-AC-3, ALAC Anything else, such as Opus, FLAC, DTS or Vorbis, becomes AAC at 192 kbit/s
Subtitles No No, they are left out

Convert MKV to MP4 with Vidray

Vidray is a video compressor and converter for Windows and Mac that works on your own computer.

  1. Open Vidray and choose Convert.
  2. Pick MP4.
  3. Drop the MKV file in, or right-click it: Vidray, then Convert in File Explorer, or the Quick Action on a Mac. When the streams can be copied, the row says “No re-encoding” and the job takes seconds.

What happens to each part of the file:

  • Video: H.264, HEVC and AV1 are copied bit for bit. HEVC gets the tag Apple devices need to play it. Any other video is encoded as H.264, on the graphics card when it can, which takes longer than a copy.
  • Sound: every sound track comes along, so a film with three languages keeps all three. If one of them is in a codec MP4 players don’t expect, the sound is converted to AAC at 192 kbit/s while the picture is still copied.
  • Subtitles: subtitle tracks are not carried into the MP4. If you need them, keep the MKV or use the FFmpeg command below.

Vidray never overwrites a video. The new file goes beside it, or into a folder you choose in Settings. Free does all of this, 10 videos a month. With more episodes than that to convert, Vidray Pro makes as many as you like, with no monthly limit. $24.99, once.

Convert MKV to MP4 with FFmpeg

FFmpeg is free and runs on Windows, Mac and Linux from the command line. This copies the first video stream and every sound track, without re-encoding:

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

To keep text subtitles (SRT or ASS), convert them to MP4’s own subtitle format, mov_text, while the rest is copied:

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

Image subtitles from Blu-ray discs (PGS) or DVDs (VobSub) can’t become mov_text, and FFmpeg stops with an error. Leave out -map 0:s? for those files.

FFmpeg copies some sound codecs into MP4 that Vidray converts, such as Opus and FLAC. The file is valid, but some players and TVs won’t play that sound. If the MP4 plays without sound, convert the sound to AAC and keep copying the picture:

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

All three commands ran as written in FFmpeg 8.1.1 on 5 Nov 2026.

Can HandBrake convert MKV to MP4 without re-encoding?

HandBrake can’t. Its own documentation lists “Pass-through video without conversion” under what HandBrake does not do: “video is always converted” (HandBrake docs, checked on 5 Nov 2026). HandBrake will make an MP4 from an MKV, but it compresses the picture again, which takes minutes instead of seconds and can’t keep it bit for bit. It’s still a fine choice if you want a smaller file at the same time.

To see which codecs an MKV holds before you convert it, run ffprobe input.mkv (it comes with FFmpeg) or open the file in MKVToolNix. If the video says h264, hevc or av1, a copy will do.

Which way fits you

  • “One MKV that won’t play on my TV or phone.” Vidray, Convert, MP4: a copy in seconds.
  • “I need the subtitles inside the MP4.” FFmpeg with -c:s mov_text, if the subtitles are text.
  • “A folder of episodes.” Drop the folder into Vidray, and every file becomes an MP4: Free makes 10 a month, Pro has no limit.
  • “I want it smaller, too.” Convert first, then Compress with “Same look” (how to compress a video without losing quality), or encode once in HandBrake.

Why are my subtitles gone after converting to MP4?

Because the subtitle tracks stayed behind. Vidray copies the video and the sound, not subtitles, and FFmpeg drops them too unless you map them with -map 0:s? and convert them with -c:s mov_text. If the MKV’s subtitles are images (PGS or VobSub), MP4 can’t hold them as text; keep the MKV, or play it with a player that reads MKV.

Two other things that can look like a failed conversion:

  • No sound on a TV. The sound may be in a codec the TV doesn’t decode. Vidray converts everything but AAC, MP3, AC-3, E-AC-3 and ALAC to AAC; with FFmpeg, use the third command above.
  • It still won’t play on an older device. HEVC copied into MP4 is still HEVC, and some older computers and TVs can’t decode it. Make an H.264 copy instead: Vidray’s Fit a size always makes H.264, and so does HandBrake’s default preset.

The same idea works for other formats: MOV to MP4 is usually a copy, too. To try it, download Vidray for Windows or Mac and convert one MKV.

Common questions

Does converting MKV to MP4 lose quality?

Not when the streams are copied. Most MKV files hold H.264 or HEVC video, which MP4 takes as it is, so the picture is moved bit for bit into the new container. Quality only changes when the video has to be re-encoded, for example VP9 video, which Vidray turns into H.264.

Why is converting MKV to MP4 so fast in Vidray?

Because nothing is compressed again. When MP4 takes the MKV’s video and sound as they are, Vidray copies the streams into the new container, which takes about as long as reading and writing the file. The row shows “No re-encoding” when that happens.

Does Vidray keep subtitles when converting MKV to MP4?

No. Vidray carries the video and every sound track into the MP4, but not the subtitle tracks. Keep the MKV if you need them, or use FFmpeg, which can turn text subtitles such as SRT into MP4’s own subtitle format.

Are all audio tracks kept when converting MKV to MP4?

Yes, in Vidray every sound track comes along, so a film with several languages keeps them all. Tracks in a codec MP4 players don’t expect, such as DTS, FLAC or Opus, are converted to AAC at 192 kbit/s while the picture is still copied.

Is MP4 smaller than MKV?

No, not by itself. When the streams are copied, the MP4 is about the same size as the MKV, because the video and sound inside are the same. To make the file smaller, compress it afterwards, for example with Vidray’s Same look, which keeps the picture looking unchanged.