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

FeatureMP4MKV
Standard typeISO 14496-14 (international standard)Open specification (Matroska community)
Video codecsH.264, H.265, AV1, MPEG-4 ASPAny codec (H.264, H.265, AV1, VP9, HEVC, etc.)
Audio codecsAAC, AC-3, MP3, ALACAny codec (AAC, DTS, DTS-HD, TrueHD, FLAC, PCM)
Subtitle formatsMP4TT, SMPTE-TT (basic)SRT, ASS/SSA, PGS, VobSub, WEBVTT, and more
Multiple audio tracksLimited (typically 1-2)Unlimited
Embedded attachmentsNoYes (fonts, thumbnails, chapter images)
Chapter markersBasic supportFull chapter support with nested chapters
Lossless audioALAC onlyFLAC, PCM, DTS-HD MA, TrueHD
Streaming (HTTP)Yes (fMP4, faststart)Limited (no native HTTP streaming support)
DRM supportYes (used by iTunes, Netflix)No DRM support
Max file sizeTheoretically 64-bit address spaceUnlimited (EBML addressing)
Error recoveryLimitedGood (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.

ContentDurationCodecMP4 sizeMKV size (same codec)
1080p movie120 minH.264, 8 Mbps~7.2 GB~7.2 GB
1080p + 5.1 DTS audio120 minH.264 + DTSNot supported~9 GB
4K HDR movie (Blu-ray rip)120 minH.265 + TrueHD AtmosNot supported~50-80 GB
Short clip for sharing5 minH.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 CaseBest FormatWhy
Uploading to YouTube/VimeoMP4Guaranteed compatibility, fastest ingest processing
Sharing video with anyoneMP4Plays on all phones, TVs, and computers without software
Blu-ray archival ripMKVPreserves all audio tracks, subtitles, and chapters from disc
Home media server (Plex/Jellyfin)MKVPlex/Jellyfin handle MKV natively; multiple subs/audio tracks work
Anime with styled subtitlesMKVASS subtitle format with custom fonts only works in MKV
Web video (HTML5)MP4Browsers won't play MKV natively
Streaming services ingestMP4Netflix, Amazon, etc. require MP4 for delivery specs
Long-term personal archiveMKVPreserves all original tracks; open spec won't be abandoned
Video editing NLEMP4 or MKVMost NLEs handle both; MP4 safer for cross-software workflows
Smart TV / streaming stickMP4Smart TVs often struggle with MKV's advanced audio formats

Browser and Device Support

EnvironmentMP4MKV
Chrome / Edge browserFull (HTML5 video)No native support
Firefox browserFullNo native support
Safari / iOSFullNo native support
VLC (desktop)FullFull
Windows Media PlayerFullWindows 10+ has MKV support via built-in codec
Android devicesFull (native player)Variable (depends on device/player app)
Smart TVsFullVariable (H.264 MKV usually works, DTS audio often not)
ChromecastFullLimited (needs client transcoding)
Apple TVFullNo native MKV support
Plex / Jellyfin serverFull (direct play)Full (may transcode unsupported audio tracks)
YouTube uploadAcceptedAccepted 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.mp4

ChangeThisFile supports 690 conversion routes — free for the first 1,000 conversions per month. No signup required for the web converter.