Home › Audio & Video › MKV to MP4

MKV to MP4

Turn MKV videos into MP4 files that play on iPhones, TVs, editors and social sites. When the video is H.264, HEVC or AV1 the streams are copied as they are, so even a multi-gigabyte movie converts in seconds with zero quality loss; anything else is re-encoded with ffmpeg right in your browser.

Last updated:

Advertisement
Advertisement

How to use the MKV to MP4

  1. Choose your MKV file: drop it on the box or click Choose MKV file. The tracks inside are listed straight away.
  2. Pick the audio tracks you want to keep, for example only the English one.
  3. Leave Copy streams selected for a fast, lossless conversion, or choose Re-encode to H.264 + AAC for maximum compatibility or a smaller file.
  4. Press Convert to MP4 and watch the progress bar.
  5. Preview and download the MP4 file.

MKV vs MP4: what changes when you convert

MKV (Matroska) and MP4 (MPEG-4 Part 14) are both containers: they hold one or more compressed video, audio and subtitle streams plus an index. Converting between them does not have to touch the picture at all. What matters is whether the codecs inside the MKV are allowed in MP4:

Stream in the MKVWhat this tool doesQuality
H.264 / AVC videoCopied into MP4 (avc1)Identical
HEVC / H.265 videoCopied into MP4 (hvc1, Apple-compatible tag)Identical
AV1 videoCopied into MP4 (av01)Identical
VP8, VP9, MPEG-2, MPEG-4 ASP, TheoraRe-encoded to H.264 with ffmpegSlight loss (CRF 20 to 27)
AAC, MP3, MP2 audioCopiedIdentical
AC-3 (Dolby Digital)Copied (ac-3 with dac3 box)Identical
Opus, Vorbis, FLAC, DTS, E-AC-3, TrueHD, PCMConverted to AAC 192 kbpsTransparent for most listeners
SRT, ASS, PGS subtitlesNot included–

How the lossless copy works

  1. The tool reads the Matroska header (EBML) to find the tracks, codecs, languages and codec setup data (the CodecPrivate element, which for H.264 is exactly the avcC record MP4 needs).
  2. It walks through every cluster and block, noting where each video and audio frame sits in the file, its timestamp and whether it is a keyframe. Laced audio blocks (Xiph, EBML and fixed lacing) and header-stripped tracks are unpacked.
  3. Matroska stores presentation times; MP4 needs decoding times plus composition offsets for B-frames. These are derived from the sorted timestamps, and an edit list keeps audio and video in sync (including the 21 ms AAC priming delay).
  4. Finally it writes the MP4 index (moov, placed at the start for fast web playback) followed by the frames in their original interleaved order.

Because the frames are referenced rather than copied into memory, the conversion speed is limited only by how fast your disk can read the MKV.

Re-encoding settings explained

Re-encoding uses the x264 encoder inside ffmpeg.wasm with the veryfast preset. CRF (Constant Rate Factor) sets quality instead of a fixed bitrate: 18 to 20 looks visually lossless, 23 is the x264 default and a good balance, 27 and above gives small files with visible softening. Each step of 6 roughly halves or doubles the file size. Lowering the resolution to 720p cuts the size and encoding time by more than half compared with 1080p.

Frequently asked questions

How do I convert MKV to MP4 without losing quality?

Use Copy streams. MKV and MP4 are just containers: when the video inside is H.264, HEVC or AV1 and the audio is AAC, MP3 or AC-3, the tool moves the compressed streams into an MP4 container byte for byte. Nothing is re-encoded, so quality is identical and it takes seconds.

Why is Copy streams not available for my file?

MP4 cannot store every codec. VP8, VP9, MPEG-2, Theora and AVI-style MPEG-4 video must be re-encoded, so choose Re-encode to H.264 + AAC. Audio in Opus, Vorbis, FLAC, DTS, E-AC-3 or TrueHD is converted to AAC automatically while the video is still copied.

Can it convert large MKV files like full movies?

Yes. The quick copy reads the MKV in small pieces and builds the MP4 from references to the original file, so 4 GB and larger movies work. Re-encoding with ffmpeg in the browser is limited to about 2 GB because of browser memory limits.

Are subtitles kept?

No. Subtitles in MKV files (SRT, ASS or image-based PGS) are not copied, because most MP4 players ignore them. Keep the subtitles as a separate .srt file next to the MP4, or burn them into the picture with a subtitle tool.

What happens with multiple audio languages?

Every audio track is listed. Tick the ones you want; the first one becomes the default track in the MP4 and the others can be switched in players such as VLC, QuickTime and most TVs.

Is my video uploaded to a server?

No. The whole conversion runs in your browser. The quick copy uses plain JavaScript; re-encoding downloads the open-source ffmpeg converter (about 31 MB, cached afterwards) and runs it on your own computer.

Why does the MP4 not play in my browser preview?

Browsers only preview some codecs. HEVC plays in Safari and Edge, AC-3 audio is silent in Chrome and Firefox. The MP4 file itself is fine: open it in your video player, or choose Re-encode to H.264 + AAC for a file that plays everywhere.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Video ConverterConvert videos to MP4 or WebM with your choice of resolution, frame rate and bitrate.MOV to MP4Convert MOV to MP4 instantly with no quality loss, or re-encode to H.264. No upload.WebM to MP4Convert WebM videos to MP4 (H.264) with your choice of resolution and quality. No upload.Video CompressorCompress videos in your browser: pick a quality and resolution to shrink the file size.MP4 to GIFConvert an MP4, MOV or WebM clip to a sharp GIF: trim, set fps and width, optimized palette.Video to MP3Extract the audio from a video as MP3.Webcam Video RecorderRecord video from your webcam and mic, then download it.Subtitle EditorEdit, shift and convert SRT and VTT subtitles.Video TrimmerCut the start and end off a video on a visual timeline and save the clip as WebM.Video to Frames ExtractorExtract still frames from a video every few seconds or every Nth frame, as JPG or ZIP.Video Speed ChangerSpeed up a video or make slow motion from 0.25× to 4×, with audio, and save it as WebM.Mute VideoRemove the sound from a video and save a silent copy as WebM, right in your browser.Rotate VideoRotate a video 90° or 180°, or mirror it, with sound, and save the fixed copy as WebM.SRT Time CalculatorShift subtitle timing, convert SRT frame rates, sync by two points and fix broken SRT files.Video Resolution CheckerCheck a video's resolution, length, frame rate, bitrate and codecs without uploading it.Video File Size CalculatorEstimate video file size from resolution, fps, bitrate and length, or the bitrate for a size limit.Vocal RemoverRemove vocals from a song to make a karaoke instrumental, or pull out an acapella, in your browser.Video CropperCrop a video to 1:1, 9:16, 16:9 or any area by dragging a box, with sound. Saves MP4 or WebM.Video MergerJoin several video clips into one MP4 or WebM in any order, with trimming and fades.WebM to MP3Extract the audio from WebM video or audio files and save it as MP3. Free, no upload.Add Audio to VideoAdd music or a voice-over to a video: replace or mix the sound, set offset, volume and fades.Video ReverserPlay a video backwards: reverse a clip with or without reversed sound, or make a boomerang loop.Silence RemoverFind and cut long pauses and dead air in recordings, podcasts and voice memos automatically.Add Subtitles to VideoBurn SRT or VTT subtitles into a video with your own font, color, outline and position.Add Watermark to VideoPut a text or logo watermark on any video, set position, size and opacity, then save it.Video Thumbnail GeneratorGrab thumbnails from a video at any time or make a contact sheet grid. JPG, PNG or ZIP.Slideshow MakerTurn photos into a video slideshow with transitions, captions and music. Saves MP4 or WebM.Add Text to VideoPut titles and captions on a video with your font, colour, position, timing and fade. No upload.Audio Visualizer Video MakerMake an audiogram: cover image plus animated bars or waveform synced to your audio, as MP4/WebM.AVI to MP4Convert AVI videos (Xvid, DivX, MJPEG) to H.264 MP4 in your browser, several files at once.Flip VideoMirror a video horizontally or vertically, fix selfie videos and save MP4 or WebM with sound.Frame by Frame Video PlayerStep through a video one frame at a time with frame number, timecode, slow motion and PNG export.Landscape to Vertical VideoTurn a 16:9 video into 9:16 for Shorts, Reels and TikTok with a blurred background fill.Video LooperLoop a video N times or to a set length, or make a boomerang, and save it as MP4 or WebM.MP4 to WAVExtract the audio from MP4 videos as WAV: 16/24/32-bit, any sample rate, mono or stereo, batch.Online Video PlayerPlay local videos with 0.25-4x speed, A-B loop, zoom, SRT/VTT subtitles and keyboard shortcuts.Side by Side Video MakerPut two videos side by side, stacked or picture-in-picture with sync offset and save as MP4.Video FiltersApply B&W, sepia, vintage and cinematic color filters to a video and save it as MP4 or WebM.Animated Captions for VideoBurn word-by-word animated captions (highlight, pop, karaoke) onto video from Whisper or SRT.Auto Reframe VideoTurn horizontal video into vertical 9:16 that automatically follows faces and subjects.Beat Sync Video EditorAuto-cut your clips and photos to the beat of a song and export a music-synced MP4 montage.Boomerang Video MakerMake a forward-backward looping boomerang clip from a video or webcam burst as MP4 or GIF.Brighten VideoFix dark videos: exposure, gamma, shadows lift, auto-levels and low-light denoise, save MP4.Lyric Video MakerMake a lyric video: add a song and background, tap to sync lines or import LRC, export 16:9 or 9:16.M3U8 PlayerPlay HLS .m3u8 streams in your browser, switch quality and inspect bitrate, segments and codecs.Picture in Picture Video MakerOverlay a small video on top of another, drag and resize it, round or circle it, and save MP4.Playlist Duration CalculatorAdd up track or video lengths to get the total playlist or album length and average track.Screen to GIF RecorderRecord your screen, a window or a tab and turn it straight into an optimized GIF.Slow Motion Video MakerMake smooth slow motion (0.1x-0.75x) with frame interpolation or blending on any part of a video.Square Video MakerFit any video into a 1:1 square without cropping, with blurred, color or image fill.Stop Motion MakerMake stop-motion animation with your webcam: onion skin, reorder frames, add music, save MP4 or GIF.Streaming Data Usage CalculatorEstimate GB used by video, music and video calls per day and month, and check it against a data cap.Subtitle ExtractorExtract embedded subtitle tracks from MKV and MP4 videos and save them as SRT, VTT or ASS.Teleprompter Video RecorderRecord yourself on webcam while your script scrolls on screen near the camera.Text to Video MakerTurn lines of text into an animated video with backgrounds, transitions and music; export MP4.Time-Lapse Video MakerTurn a long video into a time-lapse (2x to 200x) by keeping every Nth frame.Timecode CalculatorAdd, subtract and convert SMPTE timecode, frames and seconds at 23.976 to 60 fps, incl. drop-frame.Fix Audio Sync in VideoFix out-of-sync audio: shift the sound earlier or later in ms, preview, save without re-encoding.Video Collage MakerCombine 2 to 9 videos into one split-screen grid with trims, mute and gap colour, then save MP4.Video Fade In and OutAdd a fade from or to black or white at the start and end of a video, with matching audio fade.Video Frame Rate ConverterChange a video's FPS (60 to 30, 24 to 30 and more) with drop, blend or motion interpolation.Video Intro MakerMake a 5-10 second animated intro or outro with your logo, text, colors and sound; export MP4.Video Meme GeneratorAdd a white caption bar or classic top and bottom meme text to a video or GIF.Video Recording Time CalculatorHow many hours of video fit on an SD card or drive, or how much storage a recording needs.Video StabilizerReduce camera shake in handheld videos with ffmpeg deshake or a fast built-in stabilizer.Video to Animated WebPTurn a video clip into an animated WebP that is far smaller than a GIF, with a size comparison.Video Transition MakerJoin clips with crossfade, fade to black, wipe, slide, zoom or dissolve transitions. Save MP4.Video Voiceover RecorderRecord narration over a video with your mic, retake parts, mix with ducking and export the video.
See all 94 Video Converters & Editors →