Audio File MIME Types

Embed Sound in Your Web Pages with the Correct MIME Type

a child ignoring sounds
Sound can be loud or soft. Photodisc / Getty Images

The following MIME types can be used to embed sound in your web pages. Include the MIME type value in the type attribute of the EMBED element. For example:

<embed src="eureka.wav" type="audio/wav" />

HTML5 Support

You don't need to include the MIME type in the HTML5 AUDIO element as the browsers should recognize the files based on the file names. Here is a tutorial for using HTML5 to add sound to your web pages: How to Add Sound to an HTML5 Web Page.

Audio File MIME Types

File ExtensionMIME TypeRFC
auaudio/basicRFC 2046
sndaudio/basic 
Linear PCMauido/L24RFC 3190
midaudio/mid 
rmiaudio/mid 
mp3audio/mpegRFC 3003
mp4 audioaudio/mp4 
aifaudio/x-aiff 
aifcaudio/x-aiff 
aiffaudio/x-aiff 
m3uaudio/x-mpegurl 
raaudio/vnd.rn-realaudio 
ramaudio/vnd.rn-realaudio 
Ogg Vorbisaudio/oggRFC 5334
Vorbisaudio/vorbisRFC 5215
wavaudio/vnd.wavRFC 2361