What is the MP3 file format?
.mp3 is short for MPEG-1 Audio Layer III and is probably the most popular audio file format in the world. This lossy compressed audio format was developed in the early 1990s by Fraunhofer IIS together with the Moving Picture Experts Group (MPEG), and standardized in 1993. An .mp3 file consists of a sequence of fixed-length frames plus optional metadata tags; the majority of the file is compressed audio data.
Each audio frame carries a small header holding information about encoding, bitrate, and sampling rate. Metadata are usually stored in ID3 format - either as an ID3v2 block prepended to the file (giving the file ID3 as its first three bytes) or as a 128-byte ID3v1 trailer at the end. The ID3 standard is widely regarded as the norm for .mp3 metadata and is recognized by virtually all devices and audio players.
MP3's compression method offers significantly reduced file size - roughly 1/10 the size of an equivalent .WAV - while retaining decent to good sound quality. Quality is determined by compression settings such as bitrate (constant or variable) and sampling rate. Higher values provide better sound quality at the expense of increased file size. Typical settings are 128 kb/s bitrate and 44.1 kHz sampling rate, which generate roughly 1 MB per minute of audio; 192-320 kb/s is common when higher fidelity is needed. Because .mp3 is a lossy format - discarding audio information the ear is least sensitive to - formats such as .FLAC are preferable for lossless archival.
Security & safety
RISK: LOWA plain MP3 is passive audio data and cannot execute, so playing one is safe. The realistic cautions are about DOWNLOAD SOURCES, not the format: 'free MP3 converter/downloader' sites and apps are a common vector for adware, bundled toolbars and fake installers, so prefer open-source tools (VLC, Audacity). Historically a few media-player bugs let maliciously crafted media files trigger exploits, but that is a player-vulnerability issue fixed by keeping your player updated, not an inherent MP3 risk. Also mind copyright: downloading copyrighted songs without permission is piracy regardless of the format.
Format details
in a nutshellPrograms that open MP3 files
Technical details
deep spec| MIME type | audio/mpeg |
| Compression | Lossy perceptual coding using a psychoacoustic model to remove frequency components the human ear is least sensitive to |
| Bitrate range | 8-320 kbps; MPEG-1 Layer III supports 14 discrete CBR levels from 32 to 320 kbps, plus variable bitrate (VBR) mode |
| Common bitrates | 128 kbps (standard quality), 192 kbps (good quality), 320 kbps (highest standard MP3 quality) |
| Sampling rates | 32, 44.1, 48 kHz (MPEG-1); 16, 22.05, 24 kHz (MPEG-2); 8, 11.025, 12 kHz (MPEG-2.5 unofficial extension) |
| Channel modes | Mono, stereo, joint stereo (mid-side or intensity coding), dual channel |
| Frame structure | Fixed-length frames of 1152 PCM samples each (~26 ms at 44.1 kHz); each frame is independently decodable |
| Metadata | ID3v1 tag (128-byte trailer at end of file) and/or ID3v2 tag (prepended header); APE tags recognized by some players |
| Magic bytes | 0xFF 0xFB (MPEG audio frame sync word) at offset 0, or 0x49 0x44 0x33 ("ID3") when an ID3v2 tag is prepended |
| Encoding algorithm | Modified Discrete Cosine Transform (MDCT) with Huffman entropy coding and perceptual noise shaping |
| Typical file size | ~1 MB per minute at 128 kbps; ~2.4 MB per minute at 320 kbps |
| Governing standard | ISO/IEC 11172-3 (MPEG-1 Audio Layer III, 1993); extended by ISO/IEC 13818-3 (MPEG-2 Audio, 1995) |
| Released | MPEG-1 Audio Layer III standardized 1993 (ISO/IEC 11172-3); MPEG-2 extension 1995 |
| Open standard | Yes · royalty-free |
| Specification | www.iso.org |