MP4 and MKV are both video containers — they're envelopes that hold video, audio, subtitles, and metadata together. The actual video quality (compression) is determined by the codec inside, not the container. An H.264 video in MKV and the same H.264 video in MP4 are bit-for-bit identical in video quality.
What differs is what each container allows you to put inside and which devices can open it. MP4 is a tightly specified ISO standard. MKV (Matroska Video) is an open-source container with virtually no restrictions on what it can contain. This flexibility is MKV's biggest strength and the reason it dominates home media servers, Blu-ray rips, and archival collections.
The catch: MKV's flexibility comes at the cost of native device support. Smart TVs, phones, tablets, and streaming platforms expect MP4. They often struggle with MKV, particularly when it contains subtitle formats or audio codecs the device doesn't natively handle.
What MP4 and MKV Actually Are
MP4: The ISO Standard Container
MP4 (MPEG-4 Part 14) is derived from Apple's QuickTime format, standardized by ISO in 2001. It's the required container for numerous web and streaming standards: HLS segments, MPEG-DASH, iTunes purchases, most mobile video, and HTML5 browser video. Its well-defined spec means every vendor knows exactly what to implement, producing excellent support across all platforms.
MP4 supports H.264, H.265/HEVC, AV1, AAC audio, AC-3 (Dolby Digital), chapters, and basic subtitle formats (including embedded text via MP4 Timed Text / SMPTE-TT). What it doesn't support: ASS/SSA subtitle formatting (used for anime fansubs with custom fonts), FLAC or DTS audio tracks, and more than a handful of alternate audio tracks. These restrictions are intentional — the spec is tight to ensure interoperability.
MKV: The Open-Source Container
MKV (Matroska Video, .mkv) is an open-source container specification developed starting in 2003. It's based on EBML (Extensible Binary Meta Language), making it self-describing and theoretically forward-compatible with new data types added later.
MKV has no restrictions on what it can contain. You can have an MKV with: H.264 video, a DTS-HD Master Audio track, a Dolby Atmos TrueHD track, a stereo AAC commentary track, SRT subtitles in 40 languages, ASS subtitles with custom fonts embedded, chapter markers every 5 minutes, thumbnail attachments, and full metadata. This is the exact use case for Blu-ray archival rips — preserving everything from the disc in a single file.
The Matroska specification is maintained by the Matroska community and the VideoLAN organization. FFmpeg, VLC, and virtually all open-source video tools support MKV natively. Commercial and embedded platforms support it variably.
Technical Comparison: MP4 vs MKV
| Feature | MP4 | MKV |
|---|---|---|
| Standard type | ISO 14496-14 (international standard) | Open specification (Matroska community) |
| Video codecs | H.264, H.265, AV1, MPEG-4 ASP | Any codec (H.264, H.265, AV1, VP9, HEVC, etc.) |
| Audio codecs | AAC, AC-3, MP3, ALAC | Any codec (AAC, DTS, DTS-HD, TrueHD, FLAC, PCM) |
| Subtitle formats | MP4TT, SMPTE-TT (basic) | SRT, ASS/SSA, PGS, VobSub, WEBVTT, and more |
| Multiple audio tracks | Limited (typically 1-2) | Unlimited |
| Embedded attachments | No | Yes (fonts, thumbnails, chapter images) |
| Chapter markers | Basic support | Full chapter support with nested chapters |
| Lossless audio | ALAC only | FLAC, PCM, DTS-HD MA, TrueHD |
| Streaming (HTTP) | Yes (fMP4, faststart) | Limited (no native HTTP streaming support) |
| DRM support | Yes (used by iTunes, Netflix) | No DRM support |
| Max file size | Theoretically 64-bit address space | Unlimited (EBML addressing) |
| Error recovery | Limited | Good (designed to be recoverable) |
File Size: MP4 vs MKV
At identical codecs and bitrates, MP4 and MKV file sizes are essentially the same — container overhead is under 0.1% of total file size. A 4 GB H.264 video in MKV will be approximately 4 GB as MP4 with the same codec settings.
Where MKV files appear larger is when they contain extra tracks MP4 can't hold: lossless DTS-HD Master Audio (which can be 20-30 Mbps vs 640 Kbps for Dolby Digital) and multiple subtitle/audio tracks. A Blu-ray rip in MKV with all original tracks might be 50 GB; converting to MP4 while stripping extra tracks might yield 20 GB — but that's because you removed content, not because MP4 compresses better.
| Content | Duration | Codec | MP4 size | MKV size (same codec) |
|---|---|---|---|---|
| 1080p movie | 120 min | H.264, 8 Mbps | ~7.2 GB | ~7.2 GB |
| 1080p + 5.1 DTS audio | 120 min | H.264 + DTS | Not supported | ~9 GB |
| 4K HDR movie (Blu-ray rip) | 120 min | H.265 + TrueHD Atmos | Not supported | ~50-80 GB |
| Short clip for sharing | 5 min | H.264, 8 Mbps | ~300 MB | ~300 MB |
Your mileage will vary significantly based on scene complexity, motion, and bitrate settings.
Use Case Decision Matrix
| Use Case | Best Format | Why |
|---|---|---|
| Uploading to YouTube/Vimeo | MP4 | Guaranteed compatibility, fastest ingest processing |
| Sharing video with anyone | MP4 | Plays on all phones, TVs, and computers without software |
| Blu-ray archival rip | MKV | Preserves all audio tracks, subtitles, and chapters from disc |
| Home media server (Plex/Jellyfin) | MKV | Plex/Jellyfin handle MKV natively; multiple subs/audio tracks work |
| Anime with styled subtitles | MKV | ASS subtitle format with custom fonts only works in MKV |
| Web video (HTML5) | MP4 | Browsers won't play MKV natively |
| Streaming services ingest | MP4 | Netflix, Amazon, etc. require MP4 for delivery specs |
| Long-term personal archive | MKV | Preserves all original tracks; open spec won't be abandoned |
| Video editing NLE | MP4 or MKV | Most NLEs handle both; MP4 safer for cross-software workflows |
| Smart TV / streaming stick | MP4 | Smart TVs often struggle with MKV's advanced audio formats |
Browser and Device Support
| Environment | MP4 | MKV |
|---|---|---|
| Chrome / Edge browser | Full (HTML5 video) | No native support |
| Firefox browser | Full | No native support |
| Safari / iOS | Full | No native support |
| VLC (desktop) | Full | Full |
| Windows Media Player | Full | Windows 10+ has MKV support via built-in codec |
| Android devices | Full (native player) | Variable (depends on device/player app) |
| Smart TVs | Full | Variable (H.264 MKV usually works, DTS audio often not) |
| Chromecast | Full | Limited (needs client transcoding) |
| Apple TV | Full | No native MKV support |
| Plex / Jellyfin server | Full (direct play) | Full (may transcode unsupported audio tracks) |
| YouTube upload | Accepted | Accepted but may have issues with advanced tracks |
When to Use MP4 vs MKV
Use MP4 When...
- Sharing video with anyone — Family, colleagues, clients — MP4 plays everywhere without them needing to install anything
- Uploading to web platforms — YouTube, Vimeo, TikTok, social media: all prefer MP4
- Web embedding — HTML5
<video>requires MP4 for cross-browser support - Mobile devices — Both iOS and Android play MP4 natively; MKV requires a third-party app
- Professional video delivery specs — Most broadcast and streaming delivery specs require MP4
Use MKV When...
- Archiving Blu-rays or DVDs — MKV is the standard format for disc rips because it preserves all tracks
- Home media server (Plex, Jellyfin, Emby) — These servers support MKV and handle format negotiation with clients
- Multiple subtitle languages — Want SRT in 10 languages plus PGS image-based subs? Only MKV can hold them all
- Lossless audio — DTS-HD Master Audio, TrueHD Atmos, and FLAC tracks only fit in MKV
- Open-source / cross-platform workflows — FFmpeg, VLC, Handbrake all work natively with MKV
Convert MP4 to MKV (or MKV to MP4) with ChangeThisFile
ChangeThisFile supports MKV ↔ MP4 conversion via the /mkv-to-mp4 and /mp4-to-mkv routes. When converting MKV to MP4, ChangeThisFile remuxes H.264/H.265 video without re-encoding and transcodes incompatible audio tracks (DTS, TrueHD) to AAC automatically.
curl -X POST https://changethisfile.com/v1/convert \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@archive.mkv" \
-F "target=mp4" \
-o converted.mp4ChangeThisFile supports 690 conversion routes — free for the first 1,000 conversions per month. No signup required for the web converter.