FLAC plays in Chrome 56+, Edge 16+, Firefox 51+, Safari 11+ iOS, Safari 13+ macOS, Opera 42+, and Samsung Internet 4+. Learn the codec, MIME types, and limits.

Prince Dewani
May 1, 2026
FLAC, the Free Lossless Audio Codec, is an open-source, patent-unencumbered audio format maintained by the Xiph.Org Foundation. It plays in Chrome 56+, Edge 16+, Firefox 51+, Safari 11+ on iOS, Safari 13+ on macOS, Opera 42+, and Samsung Internet 4+, while Internet Explorer and Opera Mini never added support.
This guide covers what FLAC is, the browsers that support it, the key features, how to play FLAC in HTML5 audio, comparisons with other audio formats, and the known issues.
FLAC, short for Free Lossless Audio Codec, is an open audio format from the Xiph.Org Foundation that compresses CD-quality audio to about half its original size with zero quality loss. The IETF published the bitstream as RFC 9639. The standard file extension is .flac and the standard MIME type is audio/flac.
Every modern browser engine supports FLAC inside the HTML5 audio element on desktop and mobile, with global support sitting at roughly 96% of all web traffic, while Internet Explorer and Opera Mini are the only holdouts.
Chrome supports FLAC from Chrome 56 on Windows, macOS, Linux, ChromeOS, and Android. Chrome 47 to 55 had partial FLAC support behind a flag, and Chrome 4 to 46 did not support it at all. Chrome 62 added FLAC inside MP4 fragments for Media Source Extensions, which is the path adaptive players use for chunked FLAC streaming.
Microsoft Edge supports FLAC from Edge 16 on Windows. Pre-Chromium EdgeHTML 16 to 18 used the Windows Media Foundation FLAC pipeline. Chromium-based Edge 79+ on Windows, macOS, and Linux uses the same FLAC decoder as Chrome. Edge for Android also plays FLAC, since it tracks Chromium for Android.
Firefox supports FLAC from Firefox 51 on Windows, macOS, and Linux, and from Firefox 58 on Android. Firefox 2 to 50 did not ship a FLAC decoder. Mozilla bundles a software FLAC decoder, so the codec works on every desktop and mobile build without an operating-system dependency.
Safari support for FLAC is split between iOS and macOS. Safari on iOS supports FLAC from iOS 11, since iOS uses Core Media for HTML5 audio. Safari on macOS only added FLAC playback in Safari 13 on macOS Catalina, when Apple moved macOS Safari to the same Core Media path. Safari 11 to 12.1 on macOS played FLAC only as a download, not inside the audio element. Safari 3.1 to 10.1 on macOS and Safari 3.2 to 10.3 on iOS did not support FLAC at all.
Opera supports FLAC from Opera 42 on Windows, macOS, and Linux, the version where Opera tracked Chromium 55 features. Opera 9 to 41 did not support FLAC. Opera Mobile on Android adds FLAC from Opera Mobile 12.1, while Opera Mini does not play FLAC in any version because Opera Mini renders pages on a server-side proxy that strips the audio element.
Samsung Internet supports FLAC from version 4.0 on Galaxy phones and tablets, since the browser ships the Chromium media stack. The FLAC decoder is on by default, so Galaxy users do not need to flip a setting in the Samsung Internet app. FLAC in Ogg and FLAC in MP4 both work on Samsung Internet 5.0 and later.
Chrome for Android supports FLAC from Chrome 56, so any current Android phone or tablet running Chrome can play FLAC inside the HTML5 audio element. The legacy stock Android Browser based on WebView 2.1 to 4.4.4 never added FLAC. Firefox for Android supports FLAC from Firefox 58, and the Android System WebView used by in-app browsers tracks Chrome.
Internet Explorer does not support FLAC in any version from IE 5.5 to IE 11. The Trident engine never added a FLAC decoder, and IE relied on the older DirectShow stack which had no public FLAC filter. Microsoft has retired Internet Explorer 11, so move FLAC-dependent web apps to Chromium-based Edge or Chrome for any new work.
Note: FLAC playback breaks across older Safari, Internet Explorer, and Opera Mini. Test it on real browsers and OS with TestMu AI. Try TestMu AI free!
FLAC pairs lossless audio with an open, royalty-free license, and the bitstream is flexible enough to fit archival, streaming, and high-resolution use cases. The headline features cover compression behavior, audio quality limits, container choices, and playback ergonomics.
You play FLAC in HTML5 audio by serving the file with the audio/flac MIME type and pointing an audio element at the URL. The browser handles the rest, just as it would for an MP3 file. To handle older browsers gracefully, list a fallback source so the engine can pick a format it can decode.
// Paste this into the DevTools console to confirm the browser plays FLAC.
const audio = document.createElement("audio");
const flacMimeTypes = [
"audio/flac",
"audio/x-flac",
'audio/ogg; codecs="flac"',
'audio/mp4; codecs="flac"'
];
for (const mime of flacMimeTypes) {
const result = audio.canPlayType(mime);
console.log(mime, "->", result || "(empty: not supported)");
}
// 'probably' or 'maybe' means the browser will try to decode FLAC.
// An empty string means the engine has no FLAC decoder for that container.If every line prints an empty string, the browser is Internet Explorer, Opera Mini, or a pre-FLAC build of Chrome, Firefox, or Safari. Fall back to MP3 or AAC for those visitors and warn anyone serving live FLAC streams that iOS Safari only handles progressive FLAC downloads, not Icecast or HLS streams.
FLAC sits in the lossless lane against ALAC and WAV, while MP3 sits in the lossy lane. The table below sums up the differences across compression, file size, browser reach, and use case.
| Dimension | FLAC | MP3 | WAV | ALAC |
|---|---|---|---|---|
| Compression | Lossless, about 50% of source | Lossy, about 10% of source | Uncompressed, 100% of source | Lossless, about 60% of source |
| File size, 3-min song | 20 to 25 MB | 3 to 5 MB | 30 to 35 MB | 22 to 27 MB |
| Max bit depth | 32-bit | 16-bit equivalent | 32-bit float | 32-bit |
| Max channels | 8 | 2 (stereo) | Up to 18 | 8 |
| Licensing | Open, royalty-free, RFC 9639 | Royalty-free since patent expiry | Open, Microsoft and IBM | Open-source, Apple-led |
| Browser support | Chrome 56+, Firefox 51+, Safari 11+ iOS, Safari 13+ macOS, Edge 16+ | Every browser, including IE 9+ | Every browser, including IE 9+ | Safari 13+ macOS only |
| Best for | Archival, hi-res streaming, music libraries | Podcasts, low-bandwidth audio | Studio masters, audio editing | Apple Music, iTunes downloads |
FLAC plays cleanly in every modern browser engine, so the painful edge cases land on legacy Safari, live streaming on iOS, server MIME types, and the file-size cost of a lossless codec.
In my experience, the trickiest failure is the iOS live-stream gap. A FLAC internet radio station that works in Chrome on Windows and Safari on macOS will silently fail on iPhone, because iOS Safari only progressive-loads FLAC and rejects FLAC frames inside an HLS or Icecast stream. Always probe the user agent and route iOS listeners to a parallel AAC stream, or your iPhone analytics will show a flat zero on play events.
All FLAC version numbers and platform notes in this guide come from these primary sources:
Did you find this page helpful?
More Related Hubs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance