What is FLAC?

Learn what FLAC is, how lossless audio compression works, and why audiophiles prefer it. Understand FLAC quality, file size, and how it compares to MP3.

The FLAC lossless audio format explained: how it works, its specs, and when to use it.

FLAC

What is FLAC?

2001 Year CreatedLossless CompressionAudiophile Audio Primary Use

FLAC (Free Lossless Audio Codec) is an open-source audio format that compresses audio without any quality loss, preserving the exact original audio data while reducing file size by 40-60% compared to uncompressed WAV.

Understanding FLAC helps you choose the right format for your specific needs and workflow.

How FLAC Works

FLAC stands for Free Lossless Audio Codec, and the word that matters most is lossless: it shrinks an audio file without throwing away a single sample. Where MP3 and AAC achieve small sizes by discarding sound the ear is unlikely to notice, FLAC keeps everything and instead compresses the data the way a ZIP archive compresses a document, by finding and removing mathematical redundancy. Decode a FLAC file and you get back the original PCM audio bit for bit, identical to the WAV it came from.

It does this in two stages. First, linear prediction: the encoder looks at each short block of audio and fits a simple mathematical model that predicts where the waveform is heading based on the samples just before it. Audio is highly predictable over short spans, so the model is usually close. Rather than store the actual samples, FLAC stores only the small residual, the difference between the prediction and the real sample, which is a much smaller number and therefore takes far fewer bits.

Second, those residuals are packed using Rice coding, an entropy-coding method that is extremely efficient for exactly the kind of small, clustered-around-zero numbers that prediction residuals tend to be. The combination typically compresses music to between 50% and 70% of the original WAV size, not as small as a lossy MP3, but with zero quality cost. A FLAC stream is laid out as a section of metadata blocks (tags, seek points, cover art) followed by the audio frames, and it carries per-frame and stream-level checksums so a player can detect if a file has been corrupted in storage or transfer.

FLAC exposes a compression-level setting from 0 to 8. Higher levels make the encoder work harder to find redundancy, producing a slightly smaller file at the cost of longer encoding time; decoding speed is essentially the same regardless of level. Because the output is lossless either way, the level only trades encode time against a few percent of file size, there is no quality decision to make.

History and Standardization

FLAC was created by Josh Coalson starting in 2000, at a time when the only ways to store lossless audio were bulky WAV files or proprietary formats. It quickly became the open alternative and was adopted by the Xiph.Org Foundation, the same non-profit that stewards Ogg, Vorbis, and Opus, which gave it a stable institutional home and a commitment to keeping it free.

For most of its life FLAC was defined not by a formal standards document but by its reference implementation and detailed format specification, which in practice worked well because the reference encoder and decoder were open and widely used. That changed in 2024, when the IETF published RFC 9639, giving FLAC a formal, vendor-neutral specification more than two decades after its first release, a notable milestone that cements its status as a long-term archival format.

Its openness is the main reason FLAC became the default for serious music archiving and high-resolution downloads. Because it is free of patents and licensing fees, hardware makers, software developers, and online stores could adopt it without cost, and it spread to network music players, phones, and dedicated hi-fi gear. Today it is the de facto standard for lossless music distribution outside Apple's ecosystem.

FLAC Compared to Other Lossless Formats

FLAC's main rivals are ALAC (Apple Lossless) and WMA Lossless (Microsoft). All three are lossless and produce similar file sizes, so the difference is not sound quality, it is openness and support. ALAC is now open-source but is most at home in the Apple ecosystem; WMA Lossless is tied to Windows and effectively legacy. FLAC, being free, open, and patent-unencumbered, has the widest cross-platform support of the three and is the safest choice for a library you want to keep for decades and play on any device.

Against a lossy format like MP3 or AAC, the trade-off is simple: FLAC files are several times larger, but they are an exact copy of the master, so they can be edited, re-encoded to any other format, and archived indefinitely without ever degrading. The usual workflow is to rip or record to FLAC as the master library, then generate lossy MP3 or AAC copies on demand for phones or streaming where size matters more than perfection.

Practical niceties round out the format: FLAC supports fast seeking (jumping to any point in a long file without scanning from the start), rich embedded metadata and cover art, and embedded cue sheets, which together make it convenient for storing an entire album as a single tagged file. Those qualities are why it became the archivist's and audiophile's format of choice rather than just a smaller WAV.

FLAC vs Other Audio Formats

FeatureFLACMP3WAVALAC
CompressionLossless[1]LossyUncompressedLossless
QualityPerfect[1]ReducedPerfectPerfect
File size40-60% of WAV[1]SmallestLargestSimilar to FLAC
LicenseOpen-source[4]Patented (expired)OpenApple
Best forLossless archivingPortable musicEditingApple ecosystem

FLAC preserves full audio quality with smaller files than WAV, while MP3 sacrifices fidelity for the smallest size.

FLAC Technical Specifications

Developer
Josh Coalson / Xiph.Org[1]
File Extension
.flac[1]
Compression
Lossless[1]
Bit Depth
Up to 32-bit[1]
Sample Rate
Up to 655,350 Hz[1]
Channels
Up to 8 (7.1 surround)[1]
Metadata
Vorbis comments[1]
MIME Type
audio/flac[1]

Advantages & Disadvantages

Advantages

Perfect Quality, Decoding a FLAC file produces bit-for-bit identical audio to the original - no quality loss whatsoever.

Smaller than WAV, FLAC compresses audio by 40-60% without any quality loss, saving significant storage compared to WAV or AIFF.

Open Source, FLAC is completely free and open-source with no licensing fees or patent restrictions.

Excellent Metadata, Supports comprehensive tags for artist, album, artwork, lyrics, and ReplayGain data.

Disadvantages

Larger than MP3, FLAC files are typically 3-5x larger than equivalent MP3 files, using significantly more storage.

Limited Streaming, Most music streaming services use lossy formats. Only Tidal and Qobuz offer FLAC streaming.

No iTunes Native Support, Apple iTunes and iOS do not support FLAC natively; you need to convert to ALAC for Apple devices.

CPU Intensive, Decoding high-resolution FLAC files requires more processing power than MP3 on older hardware.

Common Use Cases

Here are the most common scenarios where FLAC is the right choice:

Music Archiving

Audiophiles and music collectors use FLAC to rip CDs with perfect quality preservation.

Hi-Res Music

High-resolution audio (24-bit/96kHz or higher) is distributed in FLAC for audiophile listening.

Recording Masters

Musicians and producers store master recordings in FLAC before converting to lossy formats for distribution.

Home Theater

FLAC is used for lossless surround sound audio in home theater setups.

References

  1. FLAC (Free Lossless Audio Codec) - Library of Congress
  2. FLAC (Free Lossless Audio Codec), Version 1.1.2 - Library of Congress
  3. RFC 9639: Free Lossless Audio Codec (FLAC) - IETF
  4. FLAC Format Specification - Xiph.Org

How to open a FLAC file

FLAC files, known for their lossless compression, can be handled by various types of software, including professional audio editing tools, free and open-source applications, browser-based solutions, and built-in system players. Professional tools are suited for audio engineers and musicians needing advanced editing features, while free and open-source options cater to casual users and hobbyists. Browser-based tools offer convenience for quick access without installation, and built-in players provide basic functionality for everyday listening.

When choosing software for FLAC, key factors include fidelity of playback, capabilities for editing versus simple viewing, cost models, and platform compatibility. Users should consider whether they need advanced features like audio manipulation or if basic playback suffices. Additionally, export needs may dictate whether to convert FLAC to other formats, especially if compatibility with non-FLAC devices is required.

Audacity 3.2.5

Windows, macOS, LinuxFree (GPL)

Audacity is a free, open-source audio editor that supports FLAC files for both playback and editing. It allows users to manipulate audio tracks with a variety of effects while maintaining the lossless quality of FLAC.

Key features
  • Multi-track editing and mixing
  • Support for VST and LADSPA plugins
  • Noise reduction and audio restoration tools
  • Real-time audio monitoring
  • Batch processing for multiple files
Strengths
  • Comprehensive editing capabilities
  • Strong community support and resources
  • Cross-platform compatibility
Limitations
  • Steeper learning curve for beginners
  • Limited native export formats

Exports to: WAV, MP3, OGG, AIFF

Best for: Choose Audacity for powerful editing of FLAC files if you need advanced features and are comfortable with a learning curve.

Visit Audacity →

VLC Media Player 3.0.16

Windows, macOS, Linux, Android, iOSFree (GPL)

VLC Media Player is a versatile media player that supports a wide range of audio and video formats, including FLAC. It excels in playback quality and offers basic editing features, making it suitable for casual users.

Key features
  • Cross-platform support
  • Customizable equalizer and audio effects
  • Streaming capabilities
  • Playlist management
  • Basic audio conversion options
Strengths
  • Extensive format support
  • User-friendly interface
  • No ads or spyware
Limitations
  • Limited advanced editing features
  • Occasional playback issues with large files

Exports to: MP3, OGG, WAV

Best for: VLC is ideal for users seeking a reliable and free media player for FLAC files without the need for extensive editing.

Visit VLC Media Player →

Foobar2000 1.6.11

WindowsFree

Foobar2000 is a highly customizable audio player for Windows that provides excellent support for FLAC files. It offers a range of features for organizing and playing music, making it a favorite among audiophiles.

Key features
  • Advanced tagging capabilities
  • Support for high-resolution audio
  • Customizable user interface
  • Gapless playback
  • Built-in audio converter
Strengths
  • Lightweight and efficient
  • Highly customizable with plugins
  • Excellent audio quality
Limitations
  • Windows-only platform
  • Initial setup can be complex

Exports to: WAV, MP3, AAC, OGG

Best for: Foobar2000 is perfect for Windows users who want a customizable and high-quality player for their FLAC files.

Visit Foobar2000 →

Adobe Audition 2023

Windows, macOSSubscription

Adobe Audition is a professional audio editing software that supports FLAC files and offers a comprehensive suite of tools for audio production. It is designed for users needing advanced features for editing and mixing.

Key features
  • Multi-track editing with spectral display
  • Advanced noise reduction and restoration
  • Support for 32-bit audio processing
  • Integration with Adobe Creative Cloud
  • Extensive audio effects library
Strengths
  • Industry-standard tool for audio professionals
  • Powerful editing and mixing capabilities
  • Seamless integration with other Adobe products
Limitations
  • High subscription cost
  • Resource-intensive application

Exports to: WAV, MP3, AIFF, OGG

Best for: Adobe Audition is best for professionals seeking a robust audio editing solution for FLAC files with extensive features.

Visit Adobe Audition →