You have an MKV and you need an MP4 for YouTube, a phone, or an editor that will not accept MKV. Most converters leave you worried about losing quality and ending up with a worse file. But going from MKV to MP4 need not cost you a single bit of quality, provided you do it as a remux. This guide explains how, when it works, and what to do when it does not.
Advertisement
MKV and MP4: containers, not quality
The first misunderstanding to clear up: MKV and MP4 are containers, not codecs. A container is like an envelope — it can hold different kinds of content inside (video, audio and subtitle tracks), but it does not determine the quality of that content. Quality depends on the codec inside.
The same H.264 video at the same quality fits inside an MKV or inside an MP4 — the picture is identical either way. What changes is compatibility:
| Feature | MKV | MP4 |
|---|---|---|
| Device compatibility | Medium — needs a compatible app or player | High — native on phones, smart TVs and consoles |
| YouTube / social media | Limited — YouTube accepts MKV, Instagram does not | Broad — accepted on virtually every network |
| Audio codecs supported | Broad — AAC, MP3, AC-3, FLAC, Opus, DTS… | Limited — mainly AAC and MP3 |
| Multiple tracks / subtitles | Yes — multiple audio tracks, embedded subtitles | Partial — limited; subtitles in a separate file |
| DaVinci Resolve (Linux) | Yes — with FLAC or PCM audio | Partial — video yes, AAC audio no on Linux |
| Professional editing generally | Well supported | Well supported |
In short: if you need compatibility with every device and platform, MP4 wins. If you need codec flexibility and multiple tracks — or compatibility with DaVinci Resolve on Linux — MKV with FLAC is the better option.
What a remux is and why it loses nothing
A remux is the process of changing a video file's container without touching the track data. The H.264 video that was inside the MKV is copied across to the MP4 exactly as it was — not one byte of the picture data changes. The same goes for the audio.
That is the crucial difference from a conversion or re-encode, where the video is decoded frame by frame and compressed again. That does lose quality, because every compression cycle introduces further artefacts.
Remux → the container changes, the data does not. Zero quality loss. Seconds to process.
Re-encode → the video is decompressed and recompressed. The loss accumulates. It can take hours at 4K.
For the vast majority of MKV files — those carrying H.264 or H.265 video with AAC or MP3 audio — remuxing to MP4 is direct and lossless, with no video re-encoding.
When an MKV → MP4 remux just works
Remuxing MKV to MP4 works without trouble when the MKV's codecs are compatible with the MP4 container:
- H.264 (AVC) video — the most common. Compatible with MP4. ✓
- H.265 (HEVC) video — compatible with MP4 in most profiles. ✓
- AAC audio — the MP4 standard. Compatible. ✓
- MP3 audio — technically supported in MP4, though not ideal. ✓
If your MKV came from an OBS recording with H.264 and AAC, from a streaming download, or from an action camera, remuxing to MP4 will work straight away.
When it does not work, and what to do
A direct remux fails when the MKV contains codecs the MP4 container will not take:
| Codec in the MKV | MP4 compatible | Fix |
|---|---|---|
| FLAC audio | No | Convert the audio to AAC before remuxing, or stay with MKV |
| Opus audio | No | Convert the audio to AAC, or stay with MKV |
| Vorbis audio | No | Convert the audio to AAC, or stay with MKV |
| AC-3 / DTS audio | Partial | Works in some players, but not all |
| VP8 / VP9 video | No | Needs a re-encode to H.264 or H.265 |
| AV1 video | Partial | Supported in MP4, but poorly supported by players |
Advertisement
Converting with VidToFLAC: remuxing in the browser
VidToFLAC remuxes directly in your browser using FFmpeg compiled to WebAssembly — nothing is uploaded to any server. You can choose between MKV with FLAC audio output, ideal for DaVinci Resolve, or MP4 with FLAC audio.
Remux MKV to MP4 in seconds
Drop in your MKV, pick the output format (MKV or MP4) and download the result. The video is copied bit for bit — zero quality loss.
Use VidToFLAC free- 1 Open VidToFLAC in any modern browser. Nothing to install, no account needed.
- 2 Drop in your MKV on the upload area, or click to pick it. You can add several files at once.
- 3 Choose the output format. Pick MP4 + FLAC if you need an MP4, or MKV + FLAC if it is destined for DaVinci Resolve or another professional editor.
- 4 Press Convert and download the resulting file. How long it takes depends on the file size, the codecs and your machine; when the video can be remuxed, it is far quicker than re-encoding.
Converting with FFmpeg in the terminal
If you prefer the command line, FFmpeg is the standard tool. This command remuxes without touching the codecs — ideal when the MKV carries H.264 and AAC:
ffmpeg -i file.mkv -c copy output.mp4
If the MKV has FLAC or Opus audio, which MP4 will not take, you need to convert just the audio to AAC while copying the video:
ffmpeg -i file.mkv -c:v copy -c:a aac -b:a 192k output.mp4
If the MKV has VP9 or AV1 video, which players expecting H.264 inside an MP4 will not handle, you need to re-encode the video. There will be some loss, but a low CRF keeps it to a minimum:
ffmpeg -i file.mkv -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k output.mp4
To process several files at once in bash:
for f in *.mkv; do ffmpeg -i "$f" -c copy "${f%.mkv}.mp4"; done
MKV vs MP4 for DaVinci Resolve
If your end goal is editing in DaVinci Resolve, it is worth pausing before you settle on an output format:
- DaVinci Resolve on Linux cannot decode AAC — the standard audio in MP4. If you convert to MP4 with AAC, you end up with exactly the audio problem you started with.
- DaVinci Resolve on Windows, macOS and Linux reads FLAC natively. An MKV with FLAC audio is the most broadly compatible combination.
- If you need MP4 for DaVinci Resolve — some workflows require it — use MP4 with FLAC audio, which is what VidToFLAC offers as an output option.
For DaVinci Resolve, Premiere Pro or Avid → MKV with FLAC audio.
For YouTube, Instagram or playback on a phone → MP4 with AAC audio.
For DaVinci Resolve and sharing too → keep both: the MKV to edit with, the MP4 to share.
Advertisement
MKV to MP4 without losing quality, free and in your browser
Drop in the MKV, pick MP4 as the output and download the result. The video is copied bit for bit. Nothing uploaded anywhere and no server-imposed limit (the practical ceiling is the memory available to your browser).
Convert MKV to MP4 freeFrequently asked questions
Do you lose quality converting MKV to MP4?
No, not if you do it as a remux. A remux copies the video bit for bit without recompressing. Quality is only lost in a re-encode, which is only necessary when the MKV's codecs are not MP4-compatible — VP9 or AV1 for video, FLAC or Opus for audio.
Why can't my MKV be converted straight to MP4?
The usual reason is that the MKV carries audio in a codec MP4 does not accept: FLAC, Opus or Vorbis. The fix is to convert the audio to AAC at the same time as you change the container. With FFmpeg: ffmpeg -i file.mkv -c:v copy -c:a aac output.mp4. VidToFLAC handles this case automatically.
How long does converting MKV to MP4 take?
With a remux it depends on your disk's read and write speed, not on the CPU. A 10 GB MKV usually takes between 20 and 60 seconds. If the video has to be re-encoded, it can take 10–100× longer depending on resolution and length.
What is the quality difference between MKV and MP4?
None at all. MKV and MP4 are containers, not codecs. Quality depends on the video codec (H.264, H.265 and so on) and its compression settings (bitrate, CRF). The same H.264 video inside an MKV or inside an MP4 is identical in quality — only compatibility with players and platforms changes.
Is MKV or MP4 better for editing in DaVinci Resolve?
For editing in DaVinci Resolve, especially on Linux, MKV with FLAC audio is the better choice. The free DaVinci Resolve on Linux cannot decode the AAC audio that most MP4 files carry. FLAC is open source and DaVinci Resolve supports it on Windows, macOS and Linux. If you need an MP4 to share, keep the MKV for editing and export to MP4 from DaVinci Resolve when you are done.
Can I convert MKV to MP4 without installing any software?
Yes. VidToFLAC remuxes directly in the browser using FFmpeg WebAssembly. There is nothing to install, the file is not uploaded anywhere. The maximum size is set by the WebAssembly engine's memory, about 2 GB for input and output combined. Just open the tool, drop in the MKV and choose MP4 as the output format.
Is your MKV giving you audio trouble specifically in DaVinci Resolve? See the article on audio errors in DaVinci Resolve or the guide to DaVinci Resolve not importing audio from MP4 or OBS.