MP4 to MKV Converter

Rewrap an MP4 as an MKV in your browser; the video and audio are copied, not re-encoded.

or drop files here

MP

MP4 Format

MPEG-4 Part 14

A multimedia container for encoded video, audio, subtitles, and related information.

  • Video container
  • Different codecs possible
  • Common delivery format
MK

MKV Format

Matroska video

Matroska wraps audiovisual tracks with options for subtitles, chapters, and tags.

  • Several track types
  • Open container design
  • Codec-dependent playback

How to convert MP4 to MKV

Follow these steps to convert MP4 to MKV online.

    1

    Choose your MP4 file, or several at once.

    2

    Wait while the converter turns each file into MKV.

    3

    Download each new MKV file. Your original file isn't changed.

What to know before converting MP4 to MKV

  • The video and audio are copied as they are, not re-encoded, so the picture and sound don't change.
  • The picture keeps the MP4's size and frame rate; the 1920 px and 30 fps cap used by re-encoding pages doesn't apply.
  • The compressed data is carried over as it is; only the container around it changes.
  • A codec your player can't decode in the MP4 still won't play in the MKV.
  • Several files give several MKVs, never one joined movie.

About MP4 and MKV

What is an MP4 file?

An MP4 file is a container, defined as MPEG-4 Part 14 in ISO/IEC 14496-14 and first published in 2003. It can carry video, audio, subtitles and metadata together, and H.264 video paired with AAC audio is the most common combination. MP4 can also hold codecs such as AV1, VP9, MP3 and Opus, so the .mp4 ending names the wrapper, not the compression inside it. Because it is only a wrapper, an MP4 can be healthy and still refuse to play on a device that lacks the decoder for the video inside.

MP4 follows the ISO Base Media File Format, itself derived from QuickTime, and its content sits in nested boxes (QuickTime called them atoms). The .mp4 and .m4v extensions mark video, .m4a often marks audio-only MPEG-4, and the media types video/mp4 and audio/mp4 are registered for the format. Every major browser plays MP4, and Android plays HEVC video in MP4 files from version 5.0.

You meet MP4 in online video and streaming, in phone and camera recordings, and in files shared between people. That is also why people want to move one into Matroska. They want several audio or subtitle tracks, chapters, or a format their media server prefers.

Programs that open MP4 files

  • Linux, Mac and Windows: ffplay plays an MP4 once the matching decoders are in your FFmpeg build.
  • Windows, Mac and Linux: mpv plays MP4 files and lets you choose which audio and subtitle streams play.
  • Windows, Mac and Linux: VLC media player opens MP4 files.
  • Windows and Mac: Adobe Premiere brings in an MP4 only if it has a decoder for the codec the file holds.
  • Mac: QuickTime Player opens MP4 files.
  • Web: Firefox plays supported media directly, and AAC and H.264 availability can depend on the codecs in your system.
  • Web: Chrome plays the MP4 files whose codecs it supports.
  • Mobile: Android and iOS both get their own VLC app, which plays an MP4 whose codecs it supports.

MP4 and MKV compared

  • Extensions and media types: .mp4 for MP4; .mkv for Matroska video, registered as video/matroska.
  • Design: MP4 is an ISO standard container. Matroska is an open container format. It grew out of the MCF project and is built on EBML, a binary markup derived from XML. WebM is a subset of Matroska.
  • Tracks: MP4 can carry subtitles and chapters. Matroska files can include several video, audio and subtitle streams, with chapters and descriptive tags built into the design. In a player such as mpv, choosing the wrong audio or subtitle stream gives the wrong language, and the player lets you switch.
  • Codecs: neither container fixes a codec or a quality level. The codec decides how the picture looks, and a container swap leaves it as it was.
  • Reach: MP4 plays on nearly every device. MKV plays in VLC, mpv and Plex, so check that the player you plan to use accepts it before you convert a whole library.

This page copies the streams (-c copy in FFmpeg). They are not decoded and compressed a second time, so the picture keeps its size and frame rate. What you gain is the new container. What you do not get is a codec change.

Other ways to convert MP4 to MKV

  • FFmpeg (command line): copy the streams across with ffmpeg -i input.mp4 -c copy output.mkv. This is the same copy this page performs. By default FFmpeg picks one stream of each kind, so add explicit stream mapping when you need a particular track set.
  • HandBrake (Windows, Mac, Linux): choose Open Source and select the MP4, then pick a Matroska preset such as H.264 MKV 1080p30, set the Save As destination and select Start. The presets set their own encoders, so the video is encoded again, which suits a file whose codec has to change too.

Problems with MP4 files

  • A codec your player lacks: a container can open fine while the video inside can't be decoded. Converting to MKV does not change that, because the codec is copied.
  • An unfinished MP4: normal MP4 files keep their packet metadata together, so an interrupted recording or download can leave a file that never plays. Record or download it again before you convert.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert MP4 to MKV?

Is converting MP4 to MKV lossless?

Does converting replace my original MP4?

Will the MKV be smaller than the MP4?

Will my 4K or 60 fps MP4 keep its size and frame rate?

Why would I want an MKV instead of an MP4?

Can I just rename my .mp4 file to .mkv?

Why won't my TV or phone play the MKV?

Can I convert a batch of MP4 files?

Is my video uploaded when I convert it?