Why won't my MKV play on an iPhone or in QuickTime?
MKV, short for Matroska, is an open container format. It is popular because one file can carry a video, several audio tracks, subtitle tracks and chapters.
Apple's own software doesn't read the Matroska container. QuickTime Player, iMovie and the Photos app on iPhone and iPad refuse an .mkv file, and so do some editing apps and older TVs, even when the video inside is ordinary H.264 that they would happily play in an MP4.
So the problem is often the box, not the video. Moving the same streams into an MP4 container is usually all it takes.
What happens to the video and audio
If the video is H.264 or HEVC and the audio is AAC or MP3, this page copies both streams into the MP4 unchanged. That is quick, even for a long film, and there is no loss in quality.
MKV files often carry other codecs: AC-3, DTS, FLAC or Opus audio, or VP9 or AV1 video. Those aren't copied. The video is re-encoded to H.264 and the audio to AAC, which gives an MP4 that plays almost anywhere but takes much longer in a browser.
Not sure what your file contains? The Video Metadata Viewer on this site lists every stream's codec before you convert.
Big MKV files in the browser
MKV files of full-length films are often several gigabytes. This page handles files up to about 2 GB, and it runs on one CPU thread, so it is slower than a native app.
A stream copy of a large file still finishes in reasonable time, because nothing is being compressed. A full re-encode of a long, high-resolution MKV can take a long time in the browser. For those, a desktop converter is the better tool.