Convert MP4 to MKV Online

Convert .mp4 to MKV (Matroska) in your browser. Adjust resolution, frame rate, and audio settings for your media library. The export uses 8-bit H.264 video and AAC audio when present, and omits source subtitle tracks. Your video stays on your device.

Drop your video here or

Your video remains private and will be processed locally in your browser.

Free to use
No installation required
Secure & private
No daily limits

How to Convert MP4 to MKV Online

Create a Matroska (.mkv) file from an MP4 in your browser.

  1. Choose a local video

    Select Your MP4 Video File

    Choose a .mp4 video file from your computer or phone, or drag and drop it directly into the browser workspace.

  2. Choose your settings

    Adjust Resolution, Frame Rate & Audio (Optional)

    Output Format is fixed to MKV. Leave the settings at their defaults or choose a resolution, frame rate, audio sample rate, and channel setting.

  3. Download video

    Convert Locally and Download MKV

    Convert the video in your browser. Check the output size and download the .mkv file to your device.

Customize Your MKV Video and Audio Specifications

Choose output settings based on what your media player or client supports.

Resolution (Original, 360p, 480p, 720p, or 1080p)

Choose Original resolution to skip resizing, or select a preset. When the browser detects the source video height, it disables presets above that height.

Frame Rate (24, 25, 30, 50, or 60 fps)

Leave Frame Rate on No change or choose a rate for the export.

Audio Sample Rate (22.05, 44.1, or 48 kHz)

Leave Audio Sample Rate on Auto (No change) or select 22.05, 44.1, or 48 kHz based on your playback requirements.

Audio Channels (Auto, Mono, or Stereo)

Leave Audio Channels on Auto (No change), or choose Mono for one channel or Stereo for two.

MP4 vs. MKV: When Should You Convert MP4 to Matroska (MKV)?

MP4 is common for web and mobile video. Matroska is an open container standard used in home media libraries and desktop workflows. Playback depends on the client and the codecs inside the file.

FeatureMP4 (Source Format)MKV (Converted Output)
Container and CodecsAn MP4 can contain video and audio encoded in different ways.This tool creates a Matroska file with 8-bit H.264 video and AAC audio when present.
Media Servers & PlayersDirect playback depends on the client's support for the MP4 container and its codecs.For Plex, Jellyfin, or Kodi, check whether your playback client supports MKV with H.264 and AAC.
Audio Tracks and SubtitlesMP4 can hold multiple audio tracks and supported subtitle formats.The export re-encodes existing audio tracks as AAC and omits source subtitles. Use MKVToolNix to add subtitles, chapters, or extra audio later.
Apple & Mobile PlaybackCommonly supported on phones and in apps when the file uses compatible codecs.Try a player that supports MKV, such as VLC, or use an MP4 copy if your app requires it.

The MKV can be larger or smaller than the source depending on the video and conversion settings.

How Does Local Browser MP4-to-MKV Conversion Work?

CompressFly uses WebAssembly to convert MP4 videos in your browser. It re-encodes the first video stream as 8-bit H.264 and any audio tracks as AAC, then saves them in an .mkv file. The default settings also re-encode the file. Source subtitle tracks are omitted. You can add subtitles, chapters, or extra audio tracks later in a tool such as MKVToolNix.

Use MKV to MP4 to make a new MP4 or MKV Compressor to adjust quality and file size with presets or Custom CRF 18–45. For other MP4 exports, use MP4 to MOV, MP4 to WebM, MP4 to AVI, or choose from eight video output formats in the Video Converter.

What "processed locally" means

  • Your personal MP4 videos are never uploaded to a remote server
  • Conversion time and the file size your browser can handle depend on the video and your device
  • Converted MKV files save straight from your browser with no watermarks

MP4 to MKV Converter FAQ

How do I convert an MP4 file to MKV online for free?

Add a .mp4 file. Leave Resolution on Original resolution, Frame Rate on No change, and audio on Auto (No change), or choose your output settings. Click Convert to re-encode the video in your browser, then download the MKV.

Why would I convert an MP4 video into an MKV (Matroska) container?

Matroska is an open container standard. Convert an MP4 when you want a Matroska copy for a compatible media library or plan to add subtitles, chapters, or extra audio later in MKVToolNix. This tool re-encodes the first video stream as 8-bit H.264 and any audio tracks as AAC.

Does this MP4 to MKV converter let me add external subtitle tracks during conversion?

No. The converter exports the first video stream and existing audio tracks. Source subtitle tracks are omitted. To include subtitles or another audio track, add them to the exported MKV in a desktop tool such as MKVToolNix.

Why are some resolution options (like 1080p or 720p) disabled for my MP4?

When the browser detects the source video height, it disables presets above that height. Choose Original resolution to skip resizing, including when the source height is unavailable. Output size depends on the source and the conversion settings.

Will my converted MKV file play on iPhone or QuickTime, and can I convert it back to MP4?

Usually, no. For direct MKV playback on iPhone or Mac, use a player such as VLC. You can convert the file back with MKV to MP4 for playback in iPhone Photos or QuickTime Player.

Can I batch convert multiple MP4 videos to MKV or import a folder at once?

No. The converter handles one video at a time. The file size your browser can handle depends on the video and available browser memory. Conversion time depends on factors such as the video's duration and resolution, your settings, and your device's performance.

Are my MP4 videos uploaded to a server, and is this converter free?

No, your MP4 stays on your device, and yes, the converter is free. You can convert videos in your browser with no watermarks, no daily limits, and no account required.