Skip to main content

audio/mpeg

audio

The MIME type for MP3 audio files. Used for serving audio streams and downloads. Browsers support HTML5 <audio src='file.mp3'> with this type. For modern audio, consider audio/ogg (Opus codec) for better compression at equivalent quality.

Details

audio/mpeg covers MPEG-1 Audio Layer III (MP3) and related MPEG audio formats. Registered by RFC 3003.

Browser audio support: audio/mpeg (MP3): all modern browsers audio/ogg (Opus/Vorbis): Chrome, Firefox, Edge (not Safari without plugin) audio/webm: Chrome, Firefox, Edge

HTTP range requests: audio/mpeg responses should support Range requests to allow seeking in audio players. Set Accept-Ranges: bytes on the server.

Content-Disposition: for audio downloads, use Content-Disposition: attachment;filename="track.mp3".

Common use

Music streaming, podcast serving, audio file downloads

See Also