FILE FORMAT GUIDE

FLAC File: Open Lossless Audio or Test Its Stream

A FLAC file contains losslessly compressed audio. A compatible decoder can recover the encoded PCM samples without lossy coding. Use an audio application for listening or editing, and the FLAC command-line tool when you need a decode integrity test.

Quick facts

Extension
.flac
Format
Free Lossless Audio Codec
Category
audio
MIME type
audio/flac
Standard / developer
Xiph.Org / IETF CELLAR
Open with
Audacity

What is FLAC?

A native FLAC stream begins with a marker, followed by metadata blocks and audio frames. FLAC audio can also be carried in other containers; those mappings use their own outer structure. Compression preserves the encoded samples, not an assurance about how the original recording was made.

How to open FLAC

Testing and decoding to an output file are separate operations.

AudacityWindows / macOS / Linux

Import the FLAC audio into a project.

Common uses and compatibility

  • Store PCM audio with lossless compression.
  • Test a FLAC stream by decoding it without writing an audio output file.

Things to check

  • Compression savings vary with the signal and encoder settings; there is no universal file-size ratio.
  • Player compatibility can depend on channels, sample rate and supported FLAC features.

Advanced inspection

These developer and command-line workflows inspect structure or metadata. They are not the default way most people open the file.

Xiph FLAC toolCommand line; flac required

Run flac --test to check the stream without saving decoded audio.

Technical details

Signature
Native FLAC: 66 4C 61 43 (fLaC) at offset 0
Encoding
Unknown
Container
Native FLAC marker, metadata blocks and audio frames; other container mappings also exist
Compression
Lossless coding of PCM audio samples

RFC 9639: Free Lossless Audio Codec

Import audio for editing

Audacity can import FLAC through File > Import > Audio. Keep the original FLAC separately from the editing project.

Sources: Importing audio — Audacity

Test a stream without writing decoded audio

With the Xiph FLAC tool installed, --test decodes and checks the stream while discarding decoded output. Check its exit status and diagnostics; a successful test does not establish the recording’s provenance.

Check stream integrity

flac --test "example.flac"

Sources: FLAC command-line tool — Xiph.Org

Decode a separate WAV copy

Use --decode when an uncompressed delivery copy is required. Supply a new output filename, leave the original in place, and check that the receiving application supports the resulting audio properties. This operation is separate from a test.

Create a separate decoded copy

flac --decode --output-name="decoded-copy.wav" "example.flac"

Sources: FLAC command-line tool — Xiph.Org

Does lossless mean it was never an MP3?

No. FLAC describes how its present samples are encoded. A FLAC made from previously lossy audio preserves those decoded samples but cannot establish that an earlier source was lossless. Keep provenance alongside important recordings.

Sources: Free Lossless Audio Codec — RFC 9639 · Digital audio glossary — Audacity

Related formats

Sources & review

Sources reviewed 2026-11-16.