What is the MP4 file format?
Files with the .mp4 extension contain audio and video streams held inside a flexible container file defined by the MPEG-4 Part 14 standard (ISO/IEC 14496-14). The container is codec-agnostic: it can carry video encoded with H.264 (AVC), H.265 (HEVC), AV1, or the older MPEG-4 Part 2 codec, paired most commonly with AAC audio. The file may also include metadata, chapter markers, subtitles, still images, and multiple audio tracks, though these optional features are used less often. It supports progressive download and adaptive HTTP streaming (HLS, MPEG-DASH), making it the dominant delivery container on the web and mobile platforms.
The standard is based on Apple's QuickTime format. It was originally standardised in 2001, and the MPEG-4 Part 14 specification - the current version - followed two years later in 2003. File identity is stored in an ftyp box at byte offset 4; the brand code that follows (isom, mp42, avc1, etc.) indicates the exact flavor.
The .mp4 container is shared by several related extensions:
.mp4- the most universal variant.m4a- audio-only; used by Apple for AAC or ALAC content, unencrypted.m4p- audio protected with Apple FairPlay DRM, formerly downloaded from iTunes.m4v- Apple's video variant, optionally FairPlay-protected; used for iTunes and Apple TV purchases
The .3gp format is derived from MP4 and was widely used on early mobile phones. Today .mp4 plays natively on virtually every smartphone, smart TV, web browser, and media player, and is the standard container for streaming services, screen recordings, and consumer camcorders.
Security & safety
RISK: LOWMP4 is a media container, not executable code, so a genuine MP4 is safe to play. Two cautions: (1) a file named "video.mp4.exe" or an MP4 from an untrusted source could be malware in disguise - check the real extension; (2) crafted media files have occasionally exploited player bugs, so keep your player (VLC, system codecs) updated. Online MP4 converters upload your video to a third party - avoid for private footage and use a local tool (VLC/HandBrake/ffmpeg) instead.
Format details
in a nutshellPrograms that open MP4 files
Technical details
deep spec| Container standard | ISO Base Media File Format (ISO-BMFF), ISO/IEC 14496-14 |
| Common video codecs | H.264 (AVC), H.265 (HEVC), AV1, MPEG-4 Part 2 (ASP) |
| Common audio codecs | AAC, MP3, AC-3 (Dolby Digital), E-AC-3, ALAC, Opus |
| MIME type | video/mp4 |
| File signature (magic bytes) | "ftyp" at byte offset 4 (hex: 66 74 79 70); bytes 0-3 hold the box size |
| Brand codes | isom, mp41, mp42, avc1, M4V (Apple); identifies the exact MP4 flavor |
| Maximum resolution | No hard limit in the spec; 4K (3840×2160) and 8K (7680×4320) are commonly used |
| Subtitle and caption support | MPEG-4 Timed Text (TX3G), WebVTT-in-MP4, CEA-608/708 closed captions |
| Multi-track support | Multiple independent video, audio, and subtitle tracks within one file |
| Chapter markers | Named chapter entries embedded in the moov atom |
| Streaming protocols | Progressive download, HLS (HTTP Live Streaming), MPEG-DASH |
| DRM support | Common Encryption (CENC); compatible with Widevine, PlayReady, and FairPlay |
| Maximum file size | Up to 2^64 bytes using 64-bit extended box sizes (largesize field) |
| Metadata storage | iTunes-style atoms (moov/udta/meta) for title, artwork, GPS, ratings, and custom tags |
| Frame rate support | Variable (VFR) or constant (CFR); up to 120 fps and above depending on codec |
| HDR and color depth | 8-bit standard; 10-bit (HDR10, HLG) and 12-bit (Dolby Vision) via H.265/AV1 profiles |
| Released | 2001 (MP4 v1, ISO/IEC 14496-1); MP4 Part 14 standardized 2003 |
| Open standard | Yes · royalty-free |
| Specification | www.iso.org |