MKV to MP4 Converter

Generate a ready-to-run FFmpeg command to convert your MKV file to MP4 — choose codecs, quality, and audio settings, then copy the command to your terminal.

FFmpeg Command Generator

Fill in the options below and get the exact command to paste in your terminal.

Include the path if the file is not in the current directory, e.g. ~/Downloads/movie.mkv

0 — lossless 23 — default 51 — worst

Recommended for web/streaming — moves the MP4 index to the start of the file so playback begins before the full file downloads.

Include -c:s mov_text to copy embedded MKV subtitles as MP4-compatible text subtitles (SRT-style). Not supported by all players.

Generated FFmpeg Command

ffmpeg -i input.mkv -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 192k -movflags +faststart output.mp4

Click the command to select all, then copy. Run it in any terminal where FFmpeg is installed.

Command Breakdown

Flag What it does

MKV vs. MP4 — Format Comparison

Understand what you are converting and why

Feature MKV MP4
Origin Open source, Matroska (2002) MPEG group / ISO (2001)
Common codecs H.264, H.265, VP9, AV1, Opus, Vorbis H.264, H.265, AV1, AAC, MP3
Browser support Limited (Chrome only, not Safari) Universal — all browsers
iOS / Apple TV Not supported natively Full native support
Streaming (faststart) Not supported Supported
Subtitle tracks Excellent (ASS, SSA, SRT) Basic (mov_text / SRT only)
Multiple audio tracks Excellent Supported

FFmpeg Installation

One command per platform — free and open source

# macOS (Homebrew)
brew install ffmpeg
# Windows (winget)
winget install ffmpeg
# Ubuntu / Debian
sudo apt install ffmpeg
# Fedora / RHEL
sudo dnf install ffmpeg
Command copied!

Summary

Generate a ready-to-run FFmpeg command to convert your MKV file to MP4 — choose codecs, quality, and audio settings, then copy the command to your terminal.

How it works

  1. Enter your MKV filename (e.g. movie.mkv) in the filename field.
  2. Choose the video codec strategy: fast rewrap (stream copy) or re-encode to H.264 or H.265.
  3. Select your audio handling: copy existing tracks, re-encode to AAC, or strip audio.
  4. Adjust the quality slider (CRF) and optional advanced flags as needed.
  5. Click "Generate Command" to produce the FFmpeg command.
  6. Copy the command and run it in any terminal where FFmpeg is installed.

Use cases

  • Remux MKV files that already contain H.264/AAC to MP4 with zero quality loss in seconds.
  • Make MKV movies and TV episodes playable on iPhones, Apple TV, and other iOS devices.
  • Upload MKV recordings to YouTube, Instagram, or Vimeo which prefer MP4 input.
  • Convert MKV files for editing in Final Cut Pro or Adobe Premiere that require MP4 containers.
  • Reduce MKV file size by re-encoding to H.264 with a higher CRF value.
  • Convert MKV files with Opus or Vorbis audio to AAC for broad device compatibility.
  • Add the -movflags +faststart flag for web-optimized MP4 files that begin playing immediately.
  • Batch-convert a folder of MKV episodes to MP4 using the generated command as a template.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu