What is Codec?
A codec (short for coder-decoder) is software or hardware that compresses video or audio for storage or streaming and decompresses it for playback.
Updated
Only download content you own or have permission to save. Terms
Definition
Codec — A codec (short for coder-decoder) is software or hardware that compresses video or audio for storage or streaming and decompresses it for playback. Examples include H.264, H.265, VP9 and AV1 for video, and AAC, MP3 and Opus for audio. The codec, not the file extension, mostly determines quality, size and compatibility.
The two halves of a codec
The encoder takes raw frames or sound and turns them into a much smaller stream of data. The decoder reverses the process on your phone or computer so you can watch or listen. Both sides must speak the same codec. If your device lacks the right decoder, you get the classic symptoms: audio with a black screen, a "format not supported" error, or a frozen picture.
Codec vs container
People often mix up codecs with file formats. A file such as .mp4 or .mkv is a container that holds one or more encoded streams. Think of the container as the envelope and the codec as the language the letter is written in.
| Type | Common examples |
|---|---|
| Video codecs | H.264, H.265, VP9, AV1 |
| Audio codecs | AAC, MP3, Opus, FLAC |
| Containers | MP4, WebM, MKV, M4A |
MP3 is a slightly confusing case: the name refers to both the codec and the file type, because MP3 audio is usually stored on its own.
Why codecs matter when downloading videos
- Playback: newer codecs save space but may not play on older hardware. AV1, for example, is smooth only on fairly recent devices.
- Editing: many editors work best with H.264; less common codecs may need converting first.
- Quality per megabyte: at the same bitrate, a modern codec usually looks sharper than an older one.
Changing a codec always means transcoding, which takes time and can reduce quality slightly. Changing only the container, called remuxing, keeps the streams untouched.
How to check a file's codec
On a computer, open the file in VLC and look under Tools, then Codec Information. MediaInfo is another free tool that lists every stream. On phones, several file-info apps show the same details.
If you simply want a file that plays nearly everywhere, choose MP4 in the video to MP4 tool. Remember to respect the creator's rights when saving.
FAQ
Frequently asked questions
What does codec stand for?
Codec is short for coder-decoder (sometimes compressor-decompressor), describing its job of encoding and decoding media.
Do I need to install codecs?
Usually not, since modern systems include common codecs; occasionally a format such as HEVC on Windows needs an add-on, or you can use a player like VLC.
Glossary