Video · MP4 to MKV

MP4 to MKV, a pure remux.

Matroska accepts every codec, so MP4 to MKV never needs a re-encode. The video and audio are copied bit-for-bit into a new wrapper on your device, in seconds, and not uploaded.

How to convert MP4 to MKV

  1. Choose your MP4. The track table lists the video, each audio track and any subtitles.
  2. Untick any audio track or subtitles you do not want in the MKV.
  3. Press Convert to MKV. Every kept track is copied, so even a multi-gigabyte file finishes in seconds to minutes depending on your disk and memory.

What actually changes

Only the container. The H.264 or HEVC video and the AAC audio bytes are identical before and after, so there is no generation loss, no re-encode wait and the file size changes by well under one percent (Matroska's overhead is a little different from MP4's). Subtitles in MP4 are stored as mov_text, a format Matroska's muxer rejects, so they are rewritten as SRT text; the words and timing are preserved. Chapters are carried over.

Why people want MKV

If your reason is playback on a phone or in Safari, stay with MP4: those devices and the built-in gallery apps do not generally play MKV.

What gets dropped, and why

Phone MP4 and MOV files may include extra data tracks (timecode, motion or camera metadata, Live Photo information) and cover art stored as a picture stream. Matroska cannot store most of those data tracks, and a cover picture would appear as a bogus video track, so these are left out; the table names each one. Rotation flags on portrait phone video are stored differently in Matroska, and some players ignore them: if a portrait clip appears sideways in a player after converting, that player does not read the Matroska rotation setting, and the MP4 original is the better file for it.

Worked example

A 1.2 GB 1080p H.264 recording with AAC audio and an SRT-style subtitle track. Convert to MKV: video Copied, audio Copied, subtitle Re-encoded as SRT (a text rewrite, not an image change). The output is about 1.2 GB, and the conversion runs at the speed of copying the file rather than at the speed of encoding. A 1.2 GB file is above the 500 MB warning, so close other tabs first.

Common mistakes

Your file never leaves your browser

The tool has no upload step. It runs FFmpeg compiled to WebAssembly in a sandboxed frame whose content security policy allows only local blob and data URLs; no ad or analytics code is inside the frame. The MP4 is read from your disk (mounted so it is not first copied into memory), the MKV is assembled in memory, and you save it with the browser's own download. The only thing fetched is the converter engine after you choose a file.

Limits and what this does not do

Common mix-ups

  1. RFC 9559: Matroska Media Container Format Specifications
  2. MDN: Media container formats (file types)

Checked against these sources on .

Frequently asked questions

Is MP4 to MKV really lossless?

Yes. The video and audio data are copied unchanged into the Matroska container. No frames are decoded or encoded, so there is no quality change.

Will the MKV be bigger than the MP4?

Almost exactly the same size, typically within a fraction of a percent. Only the container overhead differs.

What happens to MP4 subtitles?

MP4 text subtitles (mov_text) are rewritten as SRT text because Matroska cannot store mov_text. Words and timing are kept; picture subtitles are copied as they are.

Why was a track left out?

Data tracks such as timecode or Live Photo metadata, and cover-art pictures, cannot be stored properly in Matroska. The table names each dropped track; your video and sound are untouched.

Why does my portrait video look sideways in some players?

Matroska stores rotation differently from MP4, and some players ignore it. The pixels were not changed; try another player or keep the MP4.

Does it work with HEVC and 4K?

Yes. Because nothing is decoded or encoded, resolution and codec do not matter for speed, only file size and available memory.

Can I convert a MOV to MKV here?

Yes. MP4, M4V and MOV inputs are accepted and treated the same way.

Is my file uploaded?

No. It is read and rewritten on your device in a frame with no network access.

Sources

Last checked

Runs entirely in your browser. Your file is read on your device and is never uploaded.

Advertisement
Advertisement