MP4 to MKV Converter: Remux When Codecs Fit | MiConvert

MP4 to MKV Converter

Upload an MP4 and get a Matroska (.mkv) file. When the codecs fit, the video and audio are copied across without re-encoding. Only one audio track comes over, and portrait phone clips can end up sideways, so check those before you rely on the result.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
MP4 → MKV

What changes when an MP4 becomes an MKV

MP4 and MKV are both containers: they wrap video, audio and sometimes subtitles, and neither decides picture quality. MP4 plays almost everywhere. Matroska accepts almost any codec and subtitle type, including styled ASS subtitles, so people use it to standardize a media library or to edit tracks in MKVToolNix.

Our converter runs ffmpeg on our servers and first tries a straight stream copy. For a typical H.264/AAC MP4 that copy succeeds, so every pixel stays as it was and the job finishes quickly. If the copy fails, it falls back to a full re-encode with x264 at its veryfast preset, plus AAC audio. One confirmed trigger is an MP4 text subtitle track (mov_text), which Matroska cannot take as is.

On the copy path, resolution, frame rate, codecs and quality are kept exactly. ffmpeg picks one video stream and one audio stream, so a second language or a commentary track is left out; in our tests it kept the track marked as default. One subtitle track is kept, rewritten as ASS when an MP4 subtitle forces the re-encode. Timecode and data tracks are dropped. The copy path also loses the rotation flag phones use for portrait video, so those clips play sideways, and 10-bit H.264 stays 10-bit, which some TVs and older hardware decoders cannot play.

This page suits anyone adding a few MP4s to an MKV collection or preparing a Matroska file for MKVToolNix. To add an SRT file, merge languages or choose which audio track survives, you need a muxing tool; the questions below cover those workarounds.

How to convert an MP4 to MKV

  1. Play the MP4 through to the end first. A cut-off download or a recording that stopped early will fail rather than convert.
  2. If the clip was shot in portrait on a phone, plan for rotation. The copied MKV will play sideways, so either rotate it in your player or keep the MP4 for that clip.
  3. Drop the file onto the converter or pick it from your device. As a guest, each file can be up to 50 MB and a single batch can hold 10 files.
  4. Start the conversion. A plain H.264/AAC MP4 is usually ready within seconds of the upload finishing; one that needs the fallback re-encode takes longer, especially in HD.
  5. Download the result, which keeps your original file name with an .mkv extension. Open it in VLC or mpv and confirm the audio language and subtitle before deleting the source.

What the MP4 to MKV converter does

  • Stream copy first: H.264 video and AAC audio from a standard MP4 go into the MKV untouched, so picture and sound are unchanged.
  • Automatic fallback to an H.264 + AAC re-encode when the streams cannot be copied, instead of an outright failure.
  • One subtitle track is kept; an embedded MP4 text subtitle becomes an ASS track during the fallback.
  • Batches of 10 files as a guest, 25 on Plus and 50 on Pro.

Video Tutorial

Watch this step-by-step tutorial to learn how to convert MP4 files to MKV format online for free using MiConvert.com. No software installation required.

MP4 to MKV questions

Does converting MP4 to MKV lose quality?

Not when the copy works. A standard MP4 with H.264 video and AAC audio is copied into the MKV without re-encoding, so the picture is identical. If the copy fails, for example because the MP4 carries a text subtitle track, the whole file is re-encoded with x264, and that adds some generation loss. If you need a guaranteed untouched result, use the ffmpeg command in the answer below.

Can I add an SRT subtitle file while converting?

No. The converter takes one MP4 and has no field for a separate subtitle file. Convert first, then open the MKV in MKVToolNix (available for Windows, macOS and Linux), add the .srt as a new track and remux. That step does not touch the video. If your MP4 already has a subtitle track inside it, one track is kept in the MKV as ASS, but that subtitle forces our converter to re-encode the whole video, which is slower and adds some generation loss.

Can I remove extra audio languages, or keep all of them?

You cannot choose. ffmpeg keeps a single audio stream, which in our tests was the track flagged as default, and discards the rest. That strips extra languages as a side effect. If the language you want is not the default one, or you want every track kept, pick the tracks yourself in MKVToolNix or ffmpeg.

How do I convert MP4 to MKV with ffmpeg or VLC?

With ffmpeg installed, this copies the video, audio and subtitle tracks without re-encoding the picture: ffmpeg -i input.mp4 -map 0:v -map 0:a? -map 0:s? -c copy -c:s srt output.mkv. The -c:s srt part converts an MP4 text subtitle so it fits Matroska, and timecode/data tracks, which Matroska rejects, are left out. In VLC, open Media > Convert / Save, set a profile's encapsulation to MKV, and tick Keep original video track and Keep original audio track. Our converter is the option when you would rather not install anything on your Mac or PC.

Why does my phone video play sideways after converting?

Phones store portrait clips as landscape frames plus a rotation flag. The stream copy into MKV does not carry that flag, so players show the frames as stored. You can rotate it on playback (VLC has a Transform option under Tools > Effects and Filters > Video Effects > Geometry). If you need the clip to play upright, our MP4 to MOV page copies the streams and keeps the flag. MP4 to WebM applies the rotation, but it re-encodes to VP9, drops subtitles and can produce a larger file.

Is there a size limit, and can I convert large files?

Guests can upload files up to 50 MB, registered accounts 100 MB, Plus 200 MB and Pro 1 GB. Conversion is free within the guest and registered limits. For files over 1 GB and up to 40 GB, signed-in users are offered a one-off paid conversion; its download link arrives by email and lasts 5 days. Guests and registered users can also run at most 10 conversion jobs per hour.

What happens to my video after conversion?

Your MP4 is sent over HTTPS and converted on our servers, not on your computer. The upload is deleted once the conversion finishes. The MKV stays downloadable for roughly 4 hours and is then removed automatically. Anyone holding the download link can use it until then, so keep it to yourself. We do log file names, sizes and formats, and signed-in users see the conversion in their history.