The MIME type for an MP4 video is video/mp4, for an MP3 it is audio/mpeg, for WebM video/webm, for a MOV file video/quicktime and for an M4A audio file audio/mp4. Note that MP3 is not audio/mp3: the registered type is audio/mpeg. Every type below was checked on 23 November 2026 against the IANA audio and video registries, the MDN media container guide and the defining RFCs.
Video MIME types
| File | Ending | MIME type | Registered with IANA? |
|---|---|---|---|
| MP4 video | .mp4 | video/mp4 | Yes, RFC 4337 and RFC 6381 |
| WebM video | .webm | video/webm | No, but MDN lists it as the type to use |
| QuickTime movie | .mov | video/quicktime | Yes |
| Matroska video | .mkv | video/matroska (old alias video/x-matroska) | Yes, RFC 9559 |
| Matroska 3D video | .mk3d | video/matroska-3d | Yes, RFC 9559 |
| Ogg video | .ogv | video/ogg | Yes, RFC 5334 and RFC 7845 |
| MPEG video | .mpeg | video/mpeg | Yes, RFC 2045 and RFC 2046 |
| MPEG transport stream | .ts | video/mp2t | Yes, written video/MP2T in the registry (RFC 3555) |
| AVI | .avi | video/x-msvideo | No, listed by MDN only |
| 3GP phone video | .3gp | video/3gpp | Yes, RFC 3839 |
| 3G2 phone video | .3g2 | video/3gpp2 | Yes, RFC 4393 |
MIME types are case-insensitive, so video/mp2t and video/MP2T are the same type. RFC 9559, published for Matroska, lists video/x-matroska and audio/x-matroska as deprecated aliases, so new servers should send video/matroska, while older software may still only know the x- form.
Audio MIME types
| File | Ending | MIME type | Registered with IANA? |
|---|---|---|---|
| MP3 | .mp3 | audio/mpeg | Yes, RFC 3003, which also covers .mp1 and .mp2 |
| MP4 audio | .m4a | audio/mp4 | Yes, RFC 4337 |
| AAC (raw stream) | .aac | audio/aac | Yes, ISO/IEC JTC 1 |
| WAV | .wav | audio/wav, audio/wave, audio/x-wav | No; MDN calls audio/wave the preferred form |
| FLAC | .flac | audio/flac (non-standard: audio/x-flac) | Yes, RFC 9639 |
| Ogg audio | .oga | audio/ogg | Yes, RFC 5334 and RFC 7845 |
| Opus file | .opus | audio/ogg | audio/ogg is; see the note below |
| WebM audio | .weba | audio/webm | No, listed by MDN only |
| Matroska audio | .mka | audio/matroska (old alias audio/x-matroska) | Yes, RFC 9559 |
| MIDI | .mid, .midi | audio/midi or audio/x-midi | No, listed by MDN only |
| 3GP audio only | .3gp | audio/3gpp | Yes, RFC 3839 |
The registry does contain audio/opus, but its reference is RFC 7587, the format for sending Opus over RTP in calls and streams. For a saved .opus file, which is Opus audio inside an Ogg container, MDN gives audio/ogg. For WAV, MDN lists four names that different products have used over the years; none of them appears in the IANA audio registry, so accept all of them when checking uploads.
Adding the codecs parameter
A container type such as video/mp4 says nothing about which codecs are inside, and a browser cannot play a file whose codec it does not support. MDN explains that you can add a codecs parameter so a player can decide before it downloads the file. These examples are taken from MDN:
| MIME type with codecs | What it describes |
|---|---|
| video/webm; codecs="vp8, vorbis" | WebM with VP8 video and Vorbis audio |
| video/webm;codecs="vp9" | WebM with VP9 video, no audio listed |
| video/mp4; codecs="avc1.4d002a" | MP4 with H.264 (AVC) video |
| video/mp4;codecs=hvc1.1.6.L186.B0,mp4a.40.2 | MP4 with HEVC video and AAC-LC audio |
In mp4a.40.2, the last number is the MPEG-4 audio object type, and MDN gives 2 as AAC-LC. Unlike most other parts of the codecs value, that number is decimal, not hexadecimal. In a web page, MDN notes you can pass the full string, codecs included, to MediaSource.isTypeSupported(), which returns true or false depending on whether the browser is likely to play it.
Common mistakes
- audio/mp3. Some software sends it, but the registered type for MP3 is audio/mpeg. Accept both when you check uploads, and send audio/mpeg when you serve files.
- video/mov. The type for .mov files is video/quicktime. A file input that only accepts video/mp4 will grey out iPhone .mov videos unless .mov or video/quicktime is also listed.
- Audio in an MP4 container. A file with only sound should be labelled audio/mp4, usually with the .m4a ending; video/mp4 tells players to expect a picture.
- Renaming the file. Changing .mov to .mp4 does not change what is inside. Convert it properly with Video Converter, or see how to convert MOV to MP4.
- Serving media as application/octet-stream. MDN treats that as the type for unknown binary data, and browsers usually download such files instead of playing them.
accept="video/mp4,video/quicktime,video/webm,.mp4,.mov,.webm", or use accept="video/*,audio/*" to allow every type. The filter only helps people pick files, so the server should still check each upload.Related tools
To turn a video into an MP3, use MP4 to MP3. To shrink a clip that is too big to upload, use Compress Video. For still images and documents, see our image MIME types list and document MIME types list.
Sources and dates
| Page | Checked | Used for |
|---|---|---|
| IANA media types registry (audio and video CSV exports: 166 audio and 97 video entries) | 23 November 2026 | Which types are registered and their references; WebM, AVI, WAV and MIDI types absent |
| MDN: media container formats | 23 November 2026 | WebM, WAV, FLAC, 3GP and QuickTime types, preferred audio/wave |
| MDN: common media types | 23 November 2026 | File endings, AVI, MIDI, Opus and transport stream types |
| MDN: the codecs parameter | 23 November 2026 | Codecs examples and the AAC-LC object type |
| MDN: the accept attribute | 23 November 2026 | video/* and audio/* in file inputs |
| RFC 9559: Matroska (October 2024) | 23 November 2026 | video/matroska, audio/matroska, video/matroska-3d, endings and deprecated x- aliases |
| RFC 3003: audio/mpeg and RFC 4337: MPEG-4 | 23 November 2026 | MP3 endings, video/mp4 and audio/mp4 |
Frequently asked questions
What is the MIME type for MP4?
video/mp4, registered with IANA through RFC 4337. An MP4 file that holds only audio, usually ending in .m4a, should use audio/mp4.
Is it audio/mp3 or audio/mpeg?
audio/mpeg is the registered MIME type for MP3 files, defined in RFC 3003. audio/mp3 is sometimes seen but is not the standard type.
What is the MIME type for a MOV file?
video/quicktime. It is registered with IANA. Upload forms that only accept video/mp4 will block .mov files unless video/quicktime or .mov is added.
What is the MIME type for WebM?
video/webm for video and audio/webm for audio only. MDN lists both, although neither appears in the IANA registry.
What is the MIME type for MKV?
video/matroska, registered by RFC 9559 in 2024. The older video/x-matroska is now a deprecated alias but is still used by some software.
What is the correct MIME type for WAV?
MDN gives audio/wave as the preferred form, and audio/wav and audio/x-wav are also used. None is in the IANA registry, so servers should accept all three.