Using the search means you accept our Terms of Use.

Search

Audio and Music Guides

What an MP3 File Is and How the Format Works

An MP3 file is recorded sound stored in a compressed form that takes roughly a tenth of the space the same audio needs on a CD. Its name ends in .mp3 and its media type is audio/mpeg. It holds audio only. The saving comes from removing parts of the sound that human hearing is unlikely to notice, which is why MP3 is called a lossy format.

This guide explains how that removal works, what is inside the file, where the format is strong and where newer ones have passed it. It stays with MP3 itself. For the wider picture of sampling and codecs, start with digital audio basics. For rival formats side by side, see the audio format comparison of MP3, AAC, Opus, WAV and FLAC.

How an MP3 file shrinks sound: masking and frames

Uncompressed CD audio uses 1,411 kilobits for every second of stereo sound. An MP3 encoder cuts that to 128 or 192 by relying on two limits of hearing. Very quiet sounds go unheard. A loud sound also hides quieter ones close to it in pitch or in time, an effect called masking. Masked detail is stored coarsely or dropped.

The encoder works in short slices called frames, each covering about 26 milliseconds of music at the CD sample rate. It splits each frame into frequency bands, decides how many bits each band deserves, and packs the result tightly. Playback reverses the packing. The dropped detail cannot be rebuilt, so converting an MP3 to WAV or to a higher bitrate restores nothing.

Inside the file: frames, bitrates and ID3 tags

Each frame begins with a small header that states the bitrate, the sample rate and whether the sound is mono or stereo. At CD sample rates the standard allows fourteen fixed bitrates from 32 to 320 kbps, and 320 is the ceiling. At 128 kbps a minute of music takes just under one megabyte. The MP3 bitrate guide compares the common steps.

Song details live in a tag, a block of data stored beside the audio. The older ID3v1 tag sits at the end of the file and holds short fields for title, artist, album, year and genre. ID3v2 sits at the start and adds longer text, track numbers and cover art. A file without a tag shows only its file name in a player.

Advantages and disadvantages of MP3

Compatibility is the main strength. Phones, computers, car stereos and pocket players from twenty years ago all read MP3, and few formats are understood by so many devices. Files are small enough to store in bulk. Decoding takes so little processing power that even simple hardware manages it.

The limits come from age. At the same bitrate, AAC usually keeps more detail than MP3, and the gap widens below 128 kbps, as MP3 vs AAC shows. Sharp sounds such as cymbals, castanets and applause can smear at low settings. A standard MP3 carries two channels at most, so it cannot hold surround sound.

Every re-encoding discards a little more, so avoid converting a file twice. An MP3 converter that works from an online video already makes a second lossy copy, because the video's sound was compressed once before.

MP3 history: who developed it and why it is now free to use

MP3 is short for MPEG-1 Audio Layer III. It was developed in the late 1980s and early 1990s, with much of the work done at the Fraunhofer institute in Erlangen, Germany, and published as part of the MPEG-1 standard in 1993. The .mp3 file ending was chosen in 1995. Software players and the first pocket players followed within three years.

Encoders and players once needed patent licences. Those patents have run out, and the licensing programme closed in 2017, so anyone may now implement the format. That freedom covers the technology only. Recordings carry their own rights: save only those you made yourself, have a licence or permission for, or that are in the public domain or under an open licence. Rules differ by country.

Audio and Music Guides

Questions and answers

What does MP3 stand for?

MPEG-1 Audio Layer III. MPEG is the Moving Picture Experts Group, the standards body that defined it, and Layer III was the most advanced of the three audio schemes in that standard. The name does not mean MPEG-3, which was never released as a standard of its own.

Is MP3 audio or video, and how does it differ from MP4?

Audio only. An MP3 holds one audio stream, plus an optional tag with text such as title and artist and a cover image. It cannot hold video. MP4 is a different kind of file, a container that can carry video and audio together, and it is not a newer version of MP3.

What is the downside of MP3?

It is lossy, so part of the original sound is removed for good, and it needs more data than newer formats such as AAC or Opus to reach the same quality. Converting an MP3 again, to any lossy format, lowers the quality a little further each time.

Is MP3 still patented, or is it free to use?

The format is free to use. The patents that covered MP3 have expired, and the patent holders closed their licensing programme in 2017. That applies to the technology, not to the music: a recording stored as MP3 can still be protected by copyright.

How big is a typical MP3 song?

About one megabyte per minute at 128 kbps, so a four-minute song comes to nearly 4 MB. At 320 kbps the same song takes about 9.6 MB. Only the length of the track and the bitrate decide the size, apart from a small addition for tags and cover art.

Can an MP3 be turned back into CD quality?

No. Converting an MP3 to WAV or FLAC produces a much larger file that sounds the same as the MP3, because the detail removed during encoding no longer exists. CD quality needs a copy made from the original lossless source. The comparisons MP3 vs WAV and MP3 vs FLAC show what each format keeps.

What are ID3 tags?

They are small blocks of data inside an MP3 that store the title, artist, album, track number, year, genre and cover art. Music players read them to sort and label a library. A file listed as Unknown Artist has empty tags, and a separate tag editor program can fill them in.

How do I open an MP3 file?

Tap it or double-click it. Android, iPhone, Windows and macOS all include a player that opens MP3 without extra software, and most car stereos, smart TVs and games consoles play it too. If a file refuses to open, a damaged or incomplete download is a more likely cause than the format, as why a downloaded MP3 will not play explains.

Updated: