Science, Tech, Math › Computer Science Audio File MIME Types Embed sound in your web pages with the correct MIME type Print Science, Tech, Math PHP Programming Perl Python Java Programming Javascript Programming Delphi Programming C & C++ Programming Ruby Programming Visual Basic View More By Jennifer Kyrnin Jennifer Kyrnin Writer University of California University of Washington Jennifer Kyrnin is a professional web developer who assists others in learning web design, HTML, CSS, and XML. Learn about our Editorial Process Updated on July 17, 2020 Audio files must be recognized by a web browser so that the browser knows how to handle it. The standard for identifying file types—Multi-Purpose Internet Mail Extensions (MIME)—stipulates the nature of non-text files transmitted by email. MIME, however, is also used by web browsers. To embed audio into a web page, you'll need to verify that the browser understands the file's MIME type. Embedding Audio Use MIME types to embed sound files in your web pages using the HTML4 standard. Include the MIME type value in the type attribute of the embed element. For example: <embed src="sunshine.mp3" type="audio/mpeg"> Find MIME Types by Content Type for Web Design By Jennifer Kyrnin Read More HTML4 doesn't have built-in support to play audio, only the embedding of the file. You'll need to use a plug-in to play the file on a page. In HTML5, the audio element supports the MP3, WAV, and OGG formats. If the browser doesn't support the element or the file type, it returns an error message. Using audio allows the browser to playback supported sound files without the need for a plug-in. Talaj / Getty Images Understanding Mime Types MIME types associate with common file extensions. The content-type indicator identifies the extension in greater detail. Content-type tags appear as slashed pairs. The first term indicates the broad class of what it is, for example, audio or video. The second term indicates the subtype. An audio type might support dozens of subtypes, including MPEG, WAV, and RealAudio specifications. If the MIME type is supported by an official Internet standard, the standard is indicated through a numbered Request for Comments that, when the comment period closes, defines the type or subtype officially. For example, RFC 3003 defines the audio/MPEG MIME type. Not all RFCs are officially approved. Some, like RFC 3003, exist in a state of semi-permanent proposed status. Common Audio MIME Types The following table identifies some common audio-specific MIME types: File Extension MIME Type RFC au audio/basic RFC 2046 snd audio/basic Linear PCM auido/L24 RFC 3190 mid audio/mid rmi audio/mid mp3 audio/mpeg RFC 3003 mp4 audio audio/mp4 aif audio/x-aiff aifc audio/x-aiff aiff audio/x-aiff m3u audio/x-mpegurl ra audio/vnd.rn-realaudio ram audio/vnd.rn-realaudio Ogg Vorbis audio/ogg RFC 5334 Vorbis audio/vorbis RFC 5215 wav audio/vnd.wav RFC 2361 Cite this Article Format mla apa chicago Your Citation Kyrnin, Jennifer. "Audio File MIME Types." ThoughtCo, Jul. 31, 2021, thoughtco.com/audio-file-mime-types-3469485. Kyrnin, Jennifer. (2021, July 31). Audio File MIME Types. Retrieved from https://www.thoughtco.com/audio-file-mime-types-3469485 Kyrnin, Jennifer. "Audio File MIME Types." ThoughtCo. https://www.thoughtco.com/audio-file-mime-types-3469485 (accessed March 28, 2024). copy citation By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies