file in abyss
Back to formats

Audio

MP3 MPEG Audio Layer III

MPEG Audio Layer III is a audio format commonly identified by .mp3. Use the listed signatures, MIME types, and structure notes to validate files beyond the extension.

Extensions .mp3
MIME audio/mpeg

Magic numbers

Analyze your file
offset 0 MPEG Audio Layer III leading signature
49 44 33
ID3
offset 0 MPEG Audio Layer III leading signature
FF FB
..

Structure

  1. Optional ID3v2 tag
  2. MPEG audio frames
  3. Optional ID3v1 tag

Caveats

  • Do not trust the extension alone. Check the MIME type, the first bytes such as 49 44 33, and format-specific structure when possible.
  • Container formats and damaged files can share the same opening bytes, so deeper validation may be required for production upload, preview, or conversion flows.

Detection example

SIGNATURE = bytes.fromhex("494433")
OFFSET = 0

def is_mp3(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

MPEG Audio Layer III is used for playback, waveform processing, upload checks, duration handling, and bitrate validation. Short clips, silence, and ambient audio help expose player and conversion edge cases.

Common detection mistakes

  • The .mp3 extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • MPEG Audio Layer III can start with signatures such as 49 44 33 or FF FB, but related containers and damaged files may require additional validation.

Security notes

Media files can still stress decoders through corrupt metadata, extreme dimensions, long durations, or unusual chunks. Read size, dimensions, and duration before processing.

Using samples

11 samples help test duration handling, playback startup, metadata reads, and download behavior.

Sample files

11 / 11 files
Sample Traits Size Source / license / SHA-256
Aud

1s Silence MP3

1s Silence MP3 is a MPEG Audio Layer III sample generated for file format testing. It can be used to test downloads, parsers, previews, and file type detection.

silence-1s.mp3
Type Sample
4.3 KB
Generated CC0 1.0
SHA-256 4770cc967e07847b98d3d53b8fb43fdc114473b6db49ec9a00a15c228de07461
Download
Aud

Lake Waves MP3 0.25s

Lake Waves MP3 0.25s is a MPEG Audio Layer III sample based on Wikimedia Commons, 0.25s. It can be used to test downloads, parsers, previews, and file type detection.

01-lake-waves.mp3
Duration 0.25s
Short clip
1.8 KB
SHA-256 03e0bafca1e0ec8e98a6a18f09480a95d5cbb0189022f59bbfc6e735934e988a
Download
Aud

Lake Waves MP3 0.5s

Lake Waves MP3 0.5s is a MPEG Audio Layer III sample based on Wikimedia Commons, 0.5s. It can be used to test downloads, parsers, previews, and file type detection.

02-lake-waves.mp3
Duration 0.5s
Short clip
7.7 KB
SHA-256 ad9eeebbb60ad412cfd98364fc32b3f26a292bc49e76ed355975fc237244c3e5
Download
Aud

Lake Waves MP3 1s

Lake Waves MP3 1s is a MPEG Audio Layer III sample based on Wikimedia Commons, 1s. It can be used to test downloads, parsers, previews, and file type detection.

03-lake-waves.mp3
Duration 1s
1s media
15 KB
SHA-256 44138f95e88ad917e502886c5c1c63afaec15b2ff532a7ba7453ba31a542217d
Download
Aud

Lake Waves MP3 1.5s

Lake Waves MP3 1.5s is a MPEG Audio Layer III sample based on Wikimedia Commons, 1.5s. It can be used to test downloads, parsers, previews, and file type detection.

04-lake-waves.mp3
Duration 1.5s
1.5s media
22 KB
SHA-256 cff47cb96e33f7d33ec225558d6aed1ecc7adab380efd6d359655cf3cc46ecf7
Download
Aud

Lake Waves MP3 2s

Lake Waves MP3 2s is a MPEG Audio Layer III sample based on Wikimedia Commons, 2s. It can be used to test downloads, parsers, previews, and file type detection.

05-lake-waves.mp3
Duration 2s
2s media
29 KB
SHA-256 216594036dfd9a78ca568bf8a2552274ea873df8030666e88c924949b1f2c1de
Download
Aud

Lake Waves MP3 3s

Lake Waves MP3 3s is a MPEG Audio Layer III sample based on Wikimedia Commons, 3s. It can be used to test downloads, parsers, previews, and file type detection.

06-lake-waves.mp3
Duration 3s
3s media
43 KB
SHA-256 a9191c36313720f786384943cf6166a5df6cc7d313cac30fd2aaf994613c6af5
Download
Aud

Lake Waves MP3 4s

Lake Waves MP3 4s is a MPEG Audio Layer III sample based on Wikimedia Commons, 4s. It can be used to test downloads, parsers, previews, and file type detection.

07-lake-waves.mp3
Duration 4s
4s media
59 KB
SHA-256 33165569b743c51617414ac089c20decce6e2fbcd475df0e1db551413ee0db1e
Download
Aud

Lake Waves MP3 6s

Lake Waves MP3 6s is a MPEG Audio Layer III sample based on Wikimedia Commons, 6s. It can be used to test downloads, parsers, previews, and file type detection.

08-lake-waves.mp3
Duration 6s
6s media
87 KB
SHA-256 bb9c66d080005c5792b4a7cacff77b2b1d3614d3e2996e43b28b79526c95160d
Download
Aud

Lake Waves MP3 8s

Lake Waves MP3 8s is a MPEG Audio Layer III sample based on Wikimedia Commons, 8s. It can be used to test downloads, parsers, previews, and file type detection.

09-lake-waves.mp3
Duration 8s
8s media
109 KB
SHA-256 788cb844d4560f6dc5d7e0f4fc238c705c367260b054f5ab6d5361104e34301b
Download
Aud

NASA TV Audio MP3

NASA TV Audio MP3 is a MPEG Audio Layer III sample based on NASA Image and Video Library, 2s. It can be used to test downloads, parsers, previews, and file type detection.

nasa-tv-audio.mp3
Duration 2s
2s media
18 KB
SHA-256 4f9c34bc5d351f473dde761c4d7d6c9ceec1ca07048f59a4ad66d41369d5eb17
Download

Frequently asked questions

What is the magic number (file signature) of MPEG Audio Layer III?

MPEG Audio Layer III files begin with the byte signature 49 44 33 ("ID3") or FF FB (".."). Detect the format by reading these leading bytes rather than trusting the file extension alone.

What is the MIME type of MPEG Audio Layer III?

The MIME type for MPEG Audio Layer III is audio/mpeg.

What file extension does MPEG Audio Layer III use?

MPEG Audio Layer III files use the .mp3 extension. The extension is a convention only and does not guarantee the file contents, so combine it with signature and structure checks.

Related formats