MKV to MP4

Re-encode a Matroska MKV into a plain MP4 for the TV, phone or editor that will not take MKV.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Cap the height
Quality (lower is better)28
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To convert MKV to MP4, open the MKV here and press Convert to MP4. This tool re-encodes the video to H.264 and the audio to AAC with ffmpeg in your browser; it does not remux, so expect minutes rather than seconds for a long file. The video is never uploaded.

How to convert MKV to MP4 in your browser

  1. STEP 1

    Choose the MKV

    Pick one MKV or several. MOV, AVI and WebM inputs work the same way.

  2. STEP 2

    Decide on the height

    The cap defaults to 1080p. Choose Keep original for a 4K MKV, if your device has the memory for it.

  3. STEP 3

    Set the quality

    Drag the slider between 18 and 40. Lower numbers stay closer to the source and make a larger MP4.

  4. STEP 4

    Convert to MP4

    Start the encode and save the MP4 when the progress bar fills. The MKV is not modified.

MKV, MP4, and the difference between remuxing and re-encoding

MKV (Matroska) is an open container that can hold any number of video, audio and subtitle tracks. It is popular for downloads and screen recorders because it is flexible and survives a crash mid-recording. MP4 is less flexible but far more widely accepted by TVs, phones, editors and upload forms.

If the video inside an MKV is already H.264 or HEVC, desktop ffmpeg can remux it: copy the streams into an MP4 box in seconds with no quality loss. This tool does not do that. It always re-encodes, which is slower and slightly lossy, but turns any codec ffmpeg can read into H.264 that plays everywhere.

What survives, and what does not

The MKV is decoded and the first video and audio streams are re-encoded with libx264 (veryfast preset, quality 28 by default) and AAC at 128 kbps, then written as an MP4 with the index at the front. Because it is a full encode, it works on MKVs with VP9, AV1 or MPEG-2 inside, which a remux into MP4 could not always handle.

What you keep

The main video and the default audio track

Original resolution when the height cap is set to Keep original

A file that plays on TVs, iPhones and in video editors

What you lose

Additional audio tracks, such as other languages or commentary

Subtitle tracks are not reliably carried across; image-based (PGS) subtitles can stop the conversion

Chapters and attachments such as embedded fonts

A little quality, because this is a re-encode rather than a lossless remux

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

MKV to MP4 at a glance

InputMKV (any codec ffmpeg can decode)
OutputMP4, H.264 + AAC 128 kbps
MethodRe-encode, not a stream copy
Tracks keptOne video, one audio
Engineffmpeg.wasm 0.12
First-use downloadAbout 32 MB
Works offlineAfter the first use

If something goes wrong

The conversion fails on a film rip

Rips often carry image-based subtitles or several audio tracks, and a film-length 1080p file can approach the 2 GB memory ceiling of a browser tab. Shorter MKVs and screen recordings are the sweet spot here; for a full film, desktop ffmpeg with -c copy is the better tool.

The wrong language came through

ffmpeg keeps the MKV’s default audio track. There is no track picker in this tool yet.

It takes far longer than I expected

Because the video is re-encoded on one CPU thread, a long 1080p MKV can take longer than its running time. Capping the height at 720p roughly halves the work.

MKV to MP4 questions

How do I convert MKV to MP4 without losing quality?

The truly lossless route is a remux, which this tool does not do. Here, set quality to 18 to 20 and the height cap to Keep original; the re-encode is then visually very close to the source, at the cost of a larger file.

Is MKV to MP4 just a remux here?

No. Every conversion is a full H.264 re-encode in your browser. It is slower than a remux but works whatever codec the MKV contains.

Will subtitles be kept when converting MKV to MP4?

Do not count on it. Only the main video and audio are reliably carried over, and image-based Blu-ray subtitles can make the conversion fail. Extract the subtitle file separately if you need it.

Can I play the MP4 on a TV or iPhone?

Yes. H.264 with AAC in MP4 is the most widely supported combination there is, which is the point of converting.

Is my MKV uploaded?

No. ffmpeg is compiled to WebAssembly and runs in this tab; the file is read from your disk into the browser’s memory and never transmitted.

How big an MKV can I convert?

There is no set limit, but everything happens inside a 2 GB WebAssembly memory space shared by the input and the output. Screen recordings and clips are fine; a 4 GB film rip will not fit.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/mkv-to-mp4
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy