What is MP4?
MP4 (MPEG-4 Part 14) is a digital multimedia container format most commonly used to store video and audio, but which can also store subtitles, images, and other data.
Last updated:
What is MP4?
MP4 (MPEG-4 Part 14) is a container format standardized by MPEG in 2001. A container format is a wrapper that holds different types of data - typically video encoded with H.264 or H.265, and audio encoded with AAC - along with metadata like subtitles and chapter markers.
MP4 is the dominant video format on the internet, used by YouTube, Netflix, Instagram, and virtually every modern device. Its combination of broad compatibility and excellent compression makes it the default choice for video distribution.
How MP4 Works
MP4 is based on the ISO Base Media File Format (ISO/IEC 14496-12), organizing all data into nested boxes (also called atoms) such as moov for metadata and mdat for the actual media samples.[1] The container itself does not compress media; it multiplexes independently encoded elementary streams, typically H.264 or H.265 video with AAC audio, and stores a sample table that maps timestamps to byte positions for synchronized playback and seeking.[3]
History and Standardization
MP4 derives from Apple's QuickTime file format, which MPEG adopted as the basis for the ISO Base Media File Format, with the MP4 specification (MPEG-4 Part 14) first published in 2001 and revised since.[1] The current edition is maintained as ISO/IEC 14496-14, and related members of the same family include the .m4a audio and .mov QuickTime variants.[3]
Codecs and Compatibility
Because MP4 is only a wrapper, playback depends on whether the device can decode the contained codecs; the H.264/AAC combination is decodable virtually everywhere, while H.265 (HEVC) offers better compression but carries licensing and support constraints.[2] A "fragmented MP4" layout breaks the file into self-contained segments, the basis for adaptive streaming protocols such as MPEG-DASH and HLS.[2]
Technical Specifications
MP4 vs Other Video Formats
| Feature | MP4 | MKV | WebM | MOV |
|---|---|---|---|---|
| Standardized by | ISO/MPEG[3] | Matroska.org | Apple | |
| Type | Container[1] | Container | Container | Container |
| Common codecs | H.264, H.265[2] | Any codec | VP9, AV1 | H.264, ProRes |
| Device support | Universal[4] | Limited | Web-focused | Apple-focused |
| Subtitles/tracks | Limited | Unlimited | Limited | Multiple |
| Best for | Universal sharing | Media archiving | Web streaming | Mac editing |
MP4 offers the widest device compatibility, while MKV is more flexible for storing many tracks and WebM targets open web streaming.
Pros and Cons of MP4
Advantages
Plays on every device - phones, TVs, computers, gaming consoles - without conversion.
H.264 and H.265 codecs produce high-quality video at small file sizes.
Supports progressive download and HTTP streaming for smooth online playback.
Stores subtitles, chapters, thumbnails, and multiple audio tracks in one file.
Disadvantages
Quality depends heavily on which codec was used - not all MP4 files are equal.
Standard codecs are lossy. For professional editing workflows, use ProRes or DNxHD.
The more efficient H.265 codec involves licensing fees, limiting some open-source use.
Not ideal for video editing - use intermediate codecs during production, export to MP4 for delivery.
When to Use MP4
MP4 is the right choice for almost all video distribution and sharing scenarios.
Video Sharing
YouTube, Vimeo, Instagram, and TikTok all accept and prefer MP4 uploads.
Streaming
Netflix, Amazon Prime, and most streaming platforms distribute content in MP4 containers.
Mobile Video
Smartphones record and play MP4 natively - the default format for recorded video.
Web Embedding
HTML5 video elements support MP4/H.264 natively in all modern browsers.
Need to Convert or Compress Video?
Convert AVI, MOV, MKV, and other formats to MP4, or compress large video files - free online with no signup.
Try Video Converter FreeFrequently Asked Questions
What is the difference between MP4 and H.264?
MP4 is the container format (the wrapper), while H.264 is the video codec (the compression method). Most MP4 files use H.264 video, but MP4 can also contain H.265, VP9, or other codecs.
Why is my MP4 file so large?
File size depends on video resolution, frame rate, bitrate, and length. Use a video compressor to reduce size - lowering bitrate or resolution significantly reduces file size.
Can I play MP4 on any device?
Yes. MP4 with H.264 video and AAC audio is the most universally compatible video format in existence. If a device plays video, it almost certainly plays MP4.
Is MP4 good for editing?
MP4 works for basic editing, but professional workflows use intermediate formats like ProRes. Re-encoding MP4 multiple times reduces quality. Edit in a lossless format and export to MP4 for delivery.
What is the difference between MP4 and MKV?
Both are container formats, but MKV is open-source and more flexible - supporting more codecs and unlimited audio/subtitle tracks. MP4 has broader device compatibility. MKV is preferred for archiving, MP4 for sharing.