Free MKV sample, test and dummy files

An open container that holds almost any codec, with many audio and subtitle tracks in one file. Download valid MKV test files in 17 exact sizes, from 10 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.mkv
MIME type
video/x-matroska
Kind
Binary
Category
Video

Create a MKV file of any size

Choose any size from 5,363 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

MKV files by size

Every file below is a valid Matroska video file of exactly the stated size. Open a file's page for its checksum and contents. MKV files cannot be displayed by a browser, so their pages show the file's details instead of a preview.

MKV sample files by size
FileSizeContentsDownload
10 KB MKV samplesample-mkv-10kb.mkv 10 KB10,240 bytes Duration: 0.2 s Download MKV
25 KB MKV samplesample-mkv-25kb.mkv 25 KB25,600 bytes Duration: 0.5 s Download MKV
50 KB MKV samplesample-mkv-50kb.mkv 50 KB51,200 bytes Duration: 1.0 s Download MKV
100 KB MKV samplesample-mkv-100kb.mkv 100 KB102,400 bytes Duration: 1.9 s Download MKV
200 KB MKV samplesample-mkv-200kb.mkv 200 KB204,800 bytes Duration: 3.6 s Download MKV
500 KB MKV samplesample-mkv-500kb.mkv 500 KB512,000 bytes Duration: 9.0 s Download MKV
1 MB MKV samplesample-mkv-1mb.mkv 1 MB1,048,576 bytes Duration: 18.7 s Download MKV
2 MB MKV samplesample-mkv-2mb.mkv 2 MB2,097,152 bytes Duration: 37.3 s Download MKV
3 MB MKV samplesample-mkv-3mb.mkv 3 MB3,145,728 bytes Duration: 55.9 s Download MKV
5 MB MKV samplesample-mkv-5mb.mkv 5 MB5,242,880 bytes 640 × 360 px Download MKV
10 MB MKV samplesample-mkv-10mb.mkv 10 MB10,485,760 bytes Duration: 3 min 6 s Download MKV
15 MB MKV samplesample-mkv-15mb.mkv 15 MB15,728,640 bytes Duration: 4 min 39 s Download MKV
20 MB MKV samplesample-mkv-20mb.mkv 20 MB20,971,520 bytes Duration: 6 min 12 s Download MKV
25 MB MKV samplesample-mkv-25mb.mkv 25 MB26,214,400 bytes Duration: 7 min 45 s Download MKV
30 MB MKV samplesample-mkv-30mb.mkv 30 MB31,457,280 bytes Duration: 9 min 18 s Download MKV
50 MB MKV samplesample-mkv-50mb.mkv 50 MB52,428,800 bytes Duration: 15 min 30 s Download MKV
100 MB MKV samplesample-mkv-100mb.mkv 100 MB104,857,600 bytes Duration: 31 min 0 s Download MKV

What is an MKV file?

Matroska is a container built on EBML, a binary relative of XML in which every element has an ID, a length and a payload. A file can carry any number of video, audio and subtitle tracks along with chapters, tags and attachments, and it places almost no restriction on the codecs used.

Picture data is grouped into clusters, and an index called Cues records where each key frame is. The format was published as an internet standard, RFC 9559, in 2024, after two decades as a de facto one.

How to recognise an MKV file

Software recognises an MKV file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.

The first bytes of every file. The EBML header. WebM files begin with the same four bytes; the document type that follows tells the two apart.
Extension.mkv
MIME typevideo/x-matroska
Also seen asvideo/matroska
StandardRFC 9559 (Matroska) and RFC 8794 (EBML)
StructureEBML header, then a Segment of Info, Tracks, Cues and Clusters
CodecsAlmost any: H.264, HEVC, AV1, VP9, AAC, FLAC, Opus and more
Related extensions.mka audio, .mks subtitles, .webm

What to test for

These are the behaviours that most often go wrong when software handles MKV files.

Strengths of MKV

  • Holds almost any codec, with unlimited audio and subtitle tracks.
  • An open standard, and resilient: a damaged file can usually be played up to the damage.

Limitations of MKV

  • Not playable in Safari or Firefox.
  • Flexibility cuts both ways: a player may support the container and still not the codecs inside.

Typical uses of MKV test files

  • Testing video upload beyond MP4
  • Checking transcoding and remuxing pipelines
  • Verifying type detection between MKV and WebM
  • Testing media servers and players with a seekable file

Software that opens MKV

  • VLC and mpv
  • MKVToolNix and FFmpeg
  • Windows 10 and 11, and Android, natively
  • Plex, Kodi and Jellyfin
  • OBS Studio, which can record to MKV

Specifications

Related

MKV sample files: questions

Which codec do the MKV samples use?
H.264 video at 640 × 360 and 30 frames per second, with no audio track. The index of key frames is at the front of the file.
Which media type should a server send for MKV?
Most software uses video/x-matroska. RFC 9559 registered video/matroska in 2024, and an allow-list should accept both.
What is the MIME type of an MKV file?
The MIME type is video/x-matroska. You will also meet video/matroska in practice. The file extension is .mkv.
Is a sample MKV file the same as a dummy or example MKV file?
Yes. Sample, test, dummy and example MKV files are different names for the same thing: an MKV file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy MKV file.