Audio formats

Codec

Simple definition
The method used to encode and decode audio data.
Technical definition
A codec (coder–decoder) is the algorithm that compresses audio into a format and decompresses it for playback. Examples include MP3, AAC, FLAC and Opus. A codec is distinct from the file container.
Example
The AAC codec encodes the audio; it might be stored inside an .m4a container.

Why it matters

A codec is the recipe for turning audio into a compact or convenient stream of data and back again. MP3, AAC, Opus and FLAC are codecs; they are not 'the .mp3 idea' alone. Two files with the same extension can still hide different codecs or settings. If you work with video, podcasts or games, the codec choice can matter as much as the mix because the destination will transcode whatever you send.

How to use it

When a platform lists supported formats, read the codec and the container separately. Encode from a lossless source with a current encoder, not a forgotten preset from a decade-old ripper. For speech-heavy work, try a codec known for low-bitrate talk; for music previews, audition rather than trusting a brand name. Keep notes of encoder settings in the session folder so you can repeat a delivery.

Common mistakes

Renaming .m4a to .mp3 does not change the codec and will break players. Assuming 'PCM' and 'WAV' always mean the same thing ignores that a WAV can hold other encodings. Comparing codecs at unmatched loudness or unmatched bitrate is a sport, not a test.

FAQ

Is a codec the same as a file type?
No. The codec is the encoding method. The file type you see is often a container that can hold that codec — and sometimes others.
Why do two AAC files sound different?
Different encoders, profiles and bitrates produce different trade-offs. 'AAC' is a family, not a single quality promise.