Convert MKV to FLAC

Converting MKV to FLAC takes the soundtrack out of a video file and stores it in the format lossless music archives are built on. Matroska is the one common video container that carries FLAC natively, so for a concert recorded that way this is a genuinely lossless move — and where the source is AAC or Opus instead, this page says plainly what FLAC cannot give back.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The FLAC holds exactly what the MKV held.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Only the first soundtrack is kept. A film with a second language or a commentary track loses it.

Up to 100 files at once. Mixed formats are fine.

The reason a lossless recording ended up inside a video file

Live capture is the usual story. A concert, a recital, a broadcast or a conference session gets filmed and recorded at the same time, and the person doing it wants the sound kept properly even though the picture is only ever going to be a reference. Matroska is where that combination goes, because it is the only widely used video container that will accept a FLAC audio track alongside the video without complaint.

MP4 will not do this. Nor will MOV in any way a normal tool will produce. So a recordist who wants lossless audio and a picture in one file has essentially one option, and that is why a certain kind of MKV turns up in music and archive collections rather than film ones.

When this conversion genuinely loses nothing

If the MKV already carries FLAC, the audio is decoded to samples and encoded again as FLAC, and the samples that come out are the samples that went in. FLAC is a lossless codec in both directions, so a second pass changes the compression and not the sound. Verify it if you like: decode both to PCM and compare the checksums.

This is worth stating precisely because it is rare here. Almost every other conversion on this site costs something, and most pages exist partly to say so. This one has a real case where the answer is nothing at all, and the only condition is what the source track happens to be.

When the MKV holds AAC or Opus instead, and what FLAC can do about it

Nothing, is the short answer, and it is worth being blunt. A lossy codec discards detail permanently when it encodes. FLAC then stores whatever the decoder produces with perfect fidelity, which means it preserves the loss along with the sound. The file is exactly as good as the AAC it came from and several times larger.

That is not always a bad trade. If the recording is about to be edited, restored or processed repeatedly, holding it as FLAC between passes stops any further compression from accumulating, and the checksum gives you something to verify against later. What it does not do is upgrade anything, and any tool that suggests otherwise is selling storage.

Only the first soundtrack in the MKV becomes the FLAC

FLAC as a format holds exactly one audio stream. Matroska has room for 127 and live recordings often use more than one — a desk mix and a pair of room microphones, a stereo bounce and a spare, a main feed and a translation channel. When the file holds several, the first one declared is converted and the others are discarded without comment.

The route to all of them is to convert the whole MKV to a MOV or an MP4 first, both of which carry every audio track the browser can decode, and to split them out in a DAW. It costs a generation of compression on each track, which is exactly the wrong outcome for an archive — so where the material really matters, MKVToolNix on the desktop will separate the tracks without decoding anything.

The size FLAC actually costs, and why it is still worth it

Against uncompressed PCM, FLAC is typically around half the size for the same samples, and there is no setting to trade because there is nothing to trade — the output is identical either way. Against the lossy track that may have been inside the MKV, it is several times larger, and every one of those bytes is describing the same sound in more detail than the original codec preserved.

The reason to accept that on an archive is verification rather than fidelity. FLAC writes an MD5 of the decoded audio into its own header, so a file can be checked against itself years later and prove it has not been silently truncated or corrupted in a backup cycle. WAV holds the same samples in twice the space with nothing to verify them against.

The disc audio an MKV can hold that this cannot read

If the conversion stops with a message saying nothing in the file could be converted, the browser was unable to decode the soundtrack and, with the picture discarded, there was nothing left to write. The codecs involved are always the same: AC-3, E-AC-3, DTS and Dolby TrueHD.

Those are the soundtracks on DVDs and Blu-rays, and browsers ship no decoders for them — DTS and TrueHD are not recognised as codecs by the reader at all. It is worth noting for archivists specifically, because a TrueHD track from a concert Blu-ray is precisely the sort of thing somebody would reasonably want in FLAC, and it is the one case this cannot help with. A desktop tool that owns those decoders is the answer.

Where the tags on the MKV end up in the FLAC

Title, artist, album, date, description and comment are read out of the Matroska tags and written into the FLAC as Vorbis comments — the tag format every music player, library manager and archive tool expects to find there. Embedded cover art is carried into the FLAC’s picture block where the source has one.

In practice most MKV recordings carry nothing, because recorders do not write tags and ripping tools rarely bother. That leaves an untagged FLAC named after the source file, which is fine for one recording and unmanageable for fifty. Tagging on the way into the archive rather than afterwards is the habit worth having.

The recording is encoded on your own machine

The decoding and the FLAC encoding both run inside the browser tab. Nothing carrying the file is sent anywhere, there is no account, and there is no queue. If the browser has no native FLAC encoder, a WebAssembly build of the reference encoder is downloaded once and used from then on, which is why the first conversion in a session starts slightly slower than the ones after it.

The free tier takes files up to 100 MB, measured on the MKV going in. A full concert capture is well past that, and the honest recommendation for one is a desktop tool that can copy the FLAC track straight out of the container without decoding a single sample — which is both faster and, for an archive, the more correct operation.

How to extract a FLAC file from an MKV

  1. Check what the MKV holds first — MediaInfo will tell you whether the audio track is already FLAC.
  2. Drop the file onto this page and convert. There is nothing to configure, because a lossless target has no quality to trade.
  3. Download the FLAC and tag it before it goes into the archive.

MKV and FLAC: the container that already speaks lossless

MKV compared with FLAC
MKVFLAC
Full nameMatroska VideoFree Lossless Audio Codec
File extension.mkv.flac
Media typevideo/x-matroskaaudio/flac
CompressionLossy — file size is bought with qualityLossless — nothing is discarded
First published20022001
Published byXiph.Org
SpecificationMatroskaRFC 9639
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth32
Audio channelsup to 8
Opens in a browserSome browsersEvery browser
Considered insteadMP4, WebMWAV, AIFF, MP3

What the target format adds

FLAC is a working format and MKV is a finished one. What comes back is editable text and objects rather than a picture of a page, which is usually the reason for the conversion and also where its limits are.

Opening the result

FLAC opens in every current browser. MKV has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

VLC reads both MKV and FLAC, so there is a way to check the result against the original without a second tool.

What each format is for

MKV was published in 2002. The specification is Matroska, and it is worth reading if the file has to outlive the tool that wrote it.

FLAC comes from Xiph.Org and dates from 2001, specified as RFC 9639. Audacity, foobar2000 and VLC all read it.

MKV to FLAC: what survives, what does not and how big it gets

Are my MKV files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is mediabunny, a wrapper around WebCodecs, which borrows your device's own hardware decoders; your browser fetches it once and caches it.

Is converting MKV to FLAC lossless?

It depends entirely on what the MKV holds. Matroska is the one common video container that can carry FLAC natively, and when it does, the samples are decoded and re-encoded with nothing changed — the audio in the FLAC is identical to the audio in the MKV. When the source track is AAC or Opus, FLAC preserves exactly what those codecs decode to, which is not the original recording and never can be.

How do I find out which one my file is?

MediaInfo lists every track and its codec in a couple of seconds, and VLC shows the same thing in its codec information panel. It is worth checking before converting, because the answer decides whether you are archiving a master or storing a lossy recording in a lossless box.

Why is the FLAC so much bigger than the source?

Because a lossy codec threw most of the data away and FLAC cannot. A concert track that was 120 MB as AAC inside the MKV can be several times that as FLAC, and none of the extra bytes carry any extra sound. That is the honest reason not to convert lossy audio to FLAC unless a workflow demands the format.

Does the FLAC keep a checksum of the audio?

Yes. FLAC stores an MD5 of the uncompressed samples in its own header, which is what lets a verification pass years later prove a file has not rotted or been truncated. It is the property that makes FLAC an archival format rather than merely a compressed one.

What happens if the recording has two soundtracks?

The first one declared in the file becomes the FLAC and the rest are dropped, because a FLAC holds exactly one audio stream. A live capture with a board mix and an audience mix will give you whichever the recorder wrote first. Convert to a MOV or an MP4 if you need both, then split them out.

Do the tags come across?

Where the MKV carries them. Title, artist, album, date and comment are read from the Matroska tags and written into the FLAC as Vorbis comments, which is what every music player and library manager reads. Recorders rarely write tags, so most files arrive untagged and need naming afterwards.

More about these formats