How to Convert MKV to MP4 (Remux Without Quality Loss — 2026 Guide)
Table of Contents
- TL;DR — Is This a Remux or a Conversion?
- MKV vs MP4: What's Actually Different
- Why the Codec Inside Matters
- Method 1: Online Converter — Fastest
- Method 2: HandBrake — Best for Re-encoding
- Method 3: FFmpeg CLI — For Technical Users
- Method 4: VLC — Quick One-Off Conversions
- When to Re-encode Instead of Remux
- Quality Settings for Re-encoding
- Compatibility: Where MP4 Plays That MKV Doesn't
- Frequently Asked Questions
The most important thing to understand about converting MKV to MP4 is that in the vast majority of cases, it is not a conversion at all — it is a remux. MKV and MP4 are both container formats, and the video codec they typically contain (H.264) is exactly the same in both. Remuxing means moving the video and audio data from one container to the other without touching a single bit of the encoded video. The result is identical quality, and it takes seconds regardless of file size. Understanding this distinction — remux versus re-encode — is the foundation of everything else in this guide.
1. TL;DR — Is This a Remux or a Conversion?
The first question to answer before doing anything is whether your MKV file contains codecs that are compatible with MP4. In most cases, the answer is yes, and the process is trivially fast.
Direct answer: Converting MKV to MP4 is almost always a remux, not a re-encode. Both MKV and MP4 are container formats — the video codec inside (typically H.264 or H.265) is the same regardless of which container it lives in. Moving H.264 video from an MKV container to an MP4 container takes seconds, uses zero CPU-intensive re-encoding, and produces zero quality loss. The only time you need to actually re-encode is when the MKV contains a codec that MP4 does not support — specifically VP8/VP9 video, Theora video, FLAC audio, or Vorbis audio. To check, run: ffprobe -v quiet -show_streams input.mkv and look at the codec_name fields.
2. MKV vs MP4: What's Actually Different
MKV and MP4 are container formats — they organize and package video, audio, subtitle, and metadata streams into a single file. The container is like a shipping box: it holds contents but does not determine what those contents are. The codec (H.264, H.265, etc.) is what actually compresses and stores the video data.
The key insight is that the same H.264 video stream that lives inside an MKV file can live inside an MP4 file without any modification. No re-encoding, no quality loss — just different packaging.
| Feature | MKV (Matroska) | MP4 (MPEG-4 Part 14) |
|---|---|---|
| Open standard | Yes (Matroska / IETF) | Yes (ISO/IEC 14496-14) |
| Codec support | Any codec (H.264, H.265, VP9, AV1, Theora, etc.) | H.264, H.265, AV1 (limited), MPEG-4 ASP |
| Multiple audio tracks | Yes — unlimited tracks | Yes — limited support in some players |
| Subtitle formats | ASS, SSA, SRT, PGS, WebVTT, and more | MOV_TEXT, TTML, limited SRT |
| Chapter markers | Native support | Supported |
| Attachments (fonts, images) | Supported | Not supported |
| Device compatibility | Good (VLC, modern smart TVs, PCs) | Universal — every device, browser, platform |
| iOS / iPhone playback | Not supported natively | Native — Photos app, QuickTime, Files |
| Web browser HTML5 video | Limited — not supported by Safari or iOS WebKit | Universal — all browsers support MP4/H.264 |
| YouTube / streaming upload | Supported | Preferred — faster processing |
| WhatsApp / messaging apps | Not accepted | Accepted |
| Email attachment | Often blocked or unsupported | Generally accepted |
The bottom line: MKV is more capable as a container — it supports more codecs and features. MP4 is more compatible — it works everywhere. For personal archiving and playback on a PC with VLC, MKV is fine. For sharing, streaming, mobile playback, or uploading anywhere, MP4 is the correct choice.
3. Why the Codec Inside Matters
The container format is less important than the codec inside it. Before deciding how to convert, check what codec your MKV file actually contains. This determines whether you can remux (fast, lossless) or must re-encode (slow, introduces some quality change).
Codecs That Allow Remux to MP4
If your MKV contains any of these, you can stream-copy directly to MP4 with no re-encoding:
- H.264 (AVC) — the most common video codec. Present in ~80% of MKV files. Full MP4 support.
- H.265 (HEVC) — increasingly common, especially for 4K content. Supported in MP4 containers.
- AAC audio — the default audio codec in most modern MKV files. Native MP4 support.
- AC3 / Dolby Digital audio — common in movie rips. Supported in MP4.
- MP3 audio — supported in MP4 containers.
Codecs That Require Re-encoding
If your MKV contains these codecs, MP4 cannot hold them natively and you must re-encode:
- VP8 or VP9 video — Google's open-source codecs. Not supported in MP4. Must re-encode to H.264 or H.265.
- Theora video — an older open-source codec. Not supported in MP4. Must re-encode.
- AV1 video — technically supported in MP4 via the isom/av01 box, but support is inconsistent. Test before assuming it works.
- Vorbis audio — common in MKV files alongside VP9 video. Must re-encode to AAC.
- FLAC audio — high-quality lossless audio. Not supported in MP4. Re-encode to AAC or keep as MP3.
- DTS audio (raw/core) — may need re-encoding depending on the player target.
How to Check Your MKV Codec
Run this command to see exactly what's inside your MKV file:
ffprobe -v quiet -print_format json -show_streams input.mkv
Look at the codec_name field for each stream. Video stream showing "h264" or "hevc", audio stream showing "aac" or "ac3" — you're good to remux. Video stream showing "vp9" or "theora" — you need to re-encode.
Convert MKV to MP4 in Your Browser
No FFmpeg install needed. Convert MKV files directly in the browser — free, private, nothing sent to a server.
4. Method 1: Online Converter — Fastest (No Install)
An online browser-based converter is the fastest option when you need to convert a single file without installing software. Convertlo's MKV to MP4 converter runs entirely in your browser — FFmpeg.wasm processes the file locally, meaning your video never leaves your computer.
Go to convertlo.pro/mkv-to-mp4.html. No account, no signup, no file size cap beyond your browser's memory limits.
Click to browse or drag and drop your .mkv file. The converter will show the file name and size once loaded.
The converter uses FFmpeg.wasm running in your browser. Processing happens on your device — no upload to any server. For most MKV files containing H.264, it performs a remux and completes quickly.
Once conversion completes, click the download button. The file saves to your downloads folder as a standard .mp4 file that plays on any device.
The browser-based method works well for files up to a few gigabytes. For very large files (20+ GB), the FFmpeg CLI method below is faster since it does not need to load the file into browser memory.
5. Method 2: HandBrake — Best When Re-encoding Is Needed
HandBrake is the best free GUI option when you need to actually re-encode — for example, when your MKV contains VP9 video, or when you want to adjust quality settings, change resolution, or target a specific bitrate. HandBrake wraps the x264 and x265 encoders and provides a visual interface for all settings.
HandBrake Step-by-Step
Get the free, open-source installer from handbrake.fr. Available for Windows, macOS, and Linux. No ads, no bundled software.
Launch HandBrake and click "Open Source" (or drag the MKV onto the window). HandBrake will scan the file and detect all video, audio, and subtitle tracks.
In the Presets panel, select "Fast 1080p30" for H.264 output or "HQ 1080p30 Surround" for higher quality H.264. For H.265 output (smaller file size), choose "H.265 MKV 1080p30" as a starting preset, then change the container to MP4.
In the Summary tab, ensure "MP4" is selected as the container (not MKV). Set the output file path and filename in the "Save As" field at the bottom.
In the Video tab, the RF (Rate Factor) slider controls quality. RF 22 is default for H.264 — visually excellent for most content. RF 24–26 for H.264 reduces file size with minimal visible degradation. Lower RF = better quality + larger file.
Click the Preview button (camera icon) to encode a short clip before committing to the full encode. This saves time if quality settings need adjustment.
HandBrake begins encoding. Progress shows as percentage and estimated time remaining. A 2-hour film at 1080p H.264 typically takes 20–90 minutes depending on your CPU and the selected encoder preset.
HandBrake always re-encodes — it does not have a native stream-copy / remux mode. For a lossless remux with no quality change, use FFmpeg instead. HandBrake is the right tool when you want to change codec, resolution, quality, or bitrate.
6. Method 3: FFmpeg CLI — For Technical Users
FFmpeg is the most powerful and precise tool for MKV to MP4 conversion. It handles remuxing (stream copy) with a single command, re-encoding with full control over every setting, and edge cases like subtitle format conversion. FFmpeg is free, open-source, and available on Windows, macOS, and Linux.
The Basic Remux Command
This command remuxes any MKV with H.264/H.265 video and AAC/AC3 audio to MP4 instantly:
ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4
Flags explained:
-i input.mkv— specify the input file-c:v copy— copy the video stream without re-encoding (stream copy)-c:a copy— copy the audio stream without re-encoding- Result: zero quality loss, conversion speed limited only by disk I/O
If Audio Codec Is Incompatible
If the MKV contains Vorbis or FLAC audio that MP4 doesn't support, copy the video but re-encode only the audio:
ffmpeg -i input.mkv -c:v copy -c:a aac -b:a 192k output.mp4
This copies the video losslessly and re-encodes audio to AAC at 192 kbps. The process is very fast since only audio is being processed.
Remuxing with Subtitles
To include subtitles in the MP4 (if the MKV has SRT-compatible subtitles):
ffmpeg -i input.mkv -c:v copy -c:a copy -c:s mov_text output.mp4
Note: MP4 only supports mov_text subtitle format. If the MKV uses ASS/SSA subtitles (common in anime fansubs), either convert them to SRT first, or keep them as a separate .srt file alongside the MP4.
If Re-encoding Video Is Required (VP9, Theora)
When the MKV contains VP9 or other unsupported video codecs, re-encode to H.264:
ffmpeg -i input.mkv -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 192k output.mp4
-c:v libx264— encode video to H.264-crf 23— quality setting (18–28 range; lower = better quality, larger file)-preset medium— encoding speed vs compression tradeoff (slow gives smaller files)
Batch Convert All MKV Files in a Folder
On Linux/macOS, convert every MKV in the current directory:
for f in *.mkv; do ffmpeg -i "$f" -c:v copy -c:a copy "${f%.mkv}.mp4"; done
On Windows (Command Prompt):
for %f in (*.mkv) do ffmpeg -i "%f" -c:v copy -c:a copy "%~nf.mp4"
7. Method 4: VLC — Quick One-Off Conversions
VLC Media Player includes a basic conversion function that works for occasional use without installing additional software. It re-encodes by default, which is slower and introduces minor quality loss compared to FFmpeg's stream copy, but it's accessible to users unfamiliar with command-line tools.
In VLC, go to Media menu → Convert/Save (shortcut: Ctrl+R on Windows, Cmd+R on macOS).
Click the "+ Add" button and select your .mkv file. Then click "Convert/Save" at the bottom of the dialog.
In the Profile dropdown, choose "Video - H.264 + MP3 (MP4)" for maximum compatibility, or "Video - H.265 + MP3 (MP4)" for smaller file size. Avoid profiles that output MKV or WebM if your target is MP4.
Click Browse next to "Destination file" and specify the output path with a .mp4 extension. Make sure the filename ends in .mp4 or VLC may produce a file without the correct extension.
VLC begins encoding. The main window shows a progress bar. VLC re-encodes the video, so a 2-hour film may take 30–120 minutes depending on your computer speed. FFmpeg with stream copy is faster for quality-lossless conversion.
VLC's main limitation for this task is that it always re-encodes by default — there is no easy remux mode in the GUI. For lossless, fast conversion, use FFmpeg or the browser converter instead. VLC is best suited for quick one-off conversions when FFmpeg isn't available and you only need approximate quality.
8. When to Re-encode Instead of Remux
Remuxing is always preferable when possible — it's instant, lossless, and requires no quality decisions. But several situations require actual re-encoding. Knowing which situation you're in saves time and avoids poor results.
Incompatible Video Codec
MKV contains VP8, VP9, or Theora video. These codecs are not supported in MP4 containers. You must re-encode to H.264 or H.265. Run ffprobe to check first.
Incompatible Audio Codec
MKV contains Vorbis or FLAC audio. MP4 does not support these natively. Re-encode audio to AAC with -c:a aac — video can still be stream-copied losslessly.
Quality Adjustment Needed
The original video was encoded at poor quality (high CRF/low bitrate) and you want to improve it. Note: re-encoding cannot restore lost quality — it can only preserve existing quality or reduce it further.
Resolution Change
You need to downscale 4K to 1080p, or change aspect ratio. Requires re-encoding since video dimensions are baked into the encoded frames, not the container.
Device-Specific Compatibility
Target device has strict codec profile/level requirements (older Apple TV, certain game consoles). You may need to re-encode with specific -profile:v and -level flags even if the codec type is compatible.
File Size Reduction
You want a smaller file. Remuxing keeps the same file size. Re-encoding with a higher CRF (lower quality) or switching from H.264 to H.265 reduces file size — but always at some quality cost.
9. Quality Settings for Re-encoding
When re-encoding is required or desired, choosing the right quality settings is the most important decision. The CRF (Constant Rate Factor) is the key parameter in FFmpeg and HandBrake.
CRF — The Quality Scale
CRF works on a scale from 0 (mathematically lossless) to 51 (worst possible quality). Lower CRF = better quality + larger file. Higher CRF = smaller file + more compression artifacts.
| CRF (H.264) | CRF (H.265) | Visual quality | File size vs original | Use case |
|---|---|---|---|---|
| 16–18 | 22–24 | Visually lossless | 80–120% of original | Archiving masters, professional use |
| 19–22 | 25–27 | Excellent — barely distinguishable from source | 40–70% of original | Personal archiving, high-quality storage |
| 23–24 | 28–29 | Very good — differences only visible on freeze-frame | 25–45% of original | General use — recommended starting point |
| 25–27 | 30–32 | Good — minor artifacts on fast motion | 15–30% of original | Web/social media, email sharing |
| 28–30 | 32–35 | Acceptable — visible compression, good for small screens | 8–18% of original | WhatsApp, messaging apps with size limits |
| 31+ | 36+ | Low quality — obvious artifacts, blocky motion | Under 10% of original | Previews, thumbnails only |
Encoder Preset — Speed vs Compression
The encoder preset controls how much time FFmpeg spends optimizing the compression. It does not change the target quality (CRF stays the same) — it changes how efficiently that quality is achieved:
- ultrafast / superfast / veryfast: Encode quickly, but larger file at same CRF. Good for previews.
- fast / medium: Default balance. Reasonable speed, reasonable efficiency.
- slow / slower / veryslow: Much better compression at same CRF. Takes 3–5× longer. Best for permanent encodes you won't redo.
The recommended command for a high-quality permanent encode:
ffmpeg -i input.mkv -c:v libx264 -crf 22 -preset slow -c:a aac -b:a 192k output.mp4
For H.265 (smaller file at same quality, but slower encoding):
ffmpeg -i input.mkv -c:v libx265 -crf 28 -preset slow -c:a aac -b:a 192k output.mp4
Audio Quality Settings
Audio is typically a small part of video file size and has less impact on quality than video settings. Recommended audio bitrates for AAC encoding:
- 128 kbps: Acceptable for voice-heavy content, casual viewing
- 192 kbps: Good quality — recommended default for music-heavy content
- 256 kbps: Excellent — virtually indistinguishable from lossless for most listeners
- -c:a copy: When the original audio is already AAC — always preferable to avoid re-encoding
10. Compatibility: Where MP4 Plays That MKV Doesn't
The primary practical reason to convert MKV to MP4 is device and platform compatibility. MKV is not universally supported, and the gaps create real friction when sharing or playing files across different devices.
iOS and iPhone
Apple's iOS does not include an MKV parser in its media framework. An MKV file on an iPhone shows as an unknown file type and cannot be played in the native Photos app, QuickTime, or most iOS video players. VLC for iOS can play MKV, but it requires a separate app download. After remuxing to MP4, the file plays natively in Photos, Files, QuickTime, iMessage, and every iOS video player.
Smart TVs and Streaming Devices
Smart TV MKV support varies widely by manufacturer and model year. Most Samsung, LG, and Sony TVs added MKV support in recent years, but many older TVs do not support it, and support for MKV with certain codecs (particularly AC3/DTS audio tracks) can be inconsistent. MP4 with H.264 and AAC audio is the universal safe format:
- Chromecast: Does not support MKV via Cast. MP4 required.
- Apple TV: No native MKV support. MP4 or MOV required.
- Roku: Some models support MKV via USB playback; Cast does not.
- Amazon Fire TV: Limited MKV support; MP4 is more reliable.
- PlayStation (PS4/PS5): Supports MP4 via USB but not MKV over network in some configurations.
Web Browsers
HTML5 video embedding supports MP4/H.264 universally across Chrome, Firefox, Safari, Edge, and every mobile browser. MKV is not a supported format in any browser's native video element. If you're hosting or embedding video on a website, MP4 is required.
Messaging and Social Media
- WhatsApp: Only accepts MP4, MOV, and AVI. MKV will be rejected.
- iMessage / MMS: Requires MP4 or MOV for video in messages.
- Instagram / TikTok / YouTube: All prefer or require MP4. Most will reject MKV uploads entirely.
- Email: Most email clients and services block MKV. MP4 is more widely accepted.
Video Editing Software
Most professional video editing tools (Adobe Premiere, Final Cut Pro, DaVinci Resolve) support MKV, but import can be slower or require a dedicated codec pack. MP4 imports without any workaround in every editor. If you're bringing footage into an editor, remuxing from MKV to MP4 first is a good practice that prevents codec-related import errors.
Ready to Convert? MKV to MP4 in Seconds
Browser-based, no install, no upload to any server. Works on Mac, Windows, and Linux. H.264 MKV files convert instantly.
11. Frequently Asked Questions
Does converting MKV to MP4 reduce quality?
How long does MKV to MP4 conversion take?
What codec is inside most MKV files?
Why can't I play MKV on iPhone?
What is the best free MKV to MP4 converter?
Does FFmpeg lose quality during remux?
Can I convert MKV to MP4 without re-encoding?
What is the difference between MKV and MP4?
For most people reading this guide, the answer is simple: run ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4, or use the browser converter above, and you'll have a perfect-quality MP4 in under a minute. The only complexity arises when your MKV has uncommon codecs — and the ffprobe command tells you exactly which situation you're in before you start.