What is an MP4 file?

MP4 is the most common video container. It holds a video stream (usually H.264) and an audio stream (usually AAC). It plays on almost every phone, browser and TV, and it is the format most platforms ask for.

Drop your file here

or select file

Images, video, audio, documents, data, archives, fonts and more.

About MP4 file:

01MP4 at a glance

Full name
MPEG-4 Part 14
Type
Video container: video, audio, subtitles and an index in one file
Extension
.mp4 (also .m4v)
MIME type
video/mp4
First bytes (hex)
The size, then 66 74 79 70 (the text ftyp)
Standard
ISO/IEC 14496-14, based on the ISO base media file format

02What is an MP4 file

MP4 is the most common video file type. It is a container: one file that holds a video stream, an audio stream and an index. The usual codecs are H.264 or H.265 (HEVC) for the picture and AAC for the sound. Phones, browsers, TVs and most websites play it.

A container is not a codec. Two MP4 files can have different codecs inside, and one can play where the other does not. H.264 with AAC plays almost everywhere. HEVC and AV1 inside an MP4 need newer devices. This tool shows the codec, so you can see what is inside.

The file has a list of boxes. The most important one, called moov, is the index of the whole video. When moov is at the start of the file, a web page can start playing before the download ends. This layout is called Fast Start. When moov is at the end, a player must download the whole file first.

An MP4 can also store GPS coordinates, the encoder name and the creation date. Phones often write the location where the video was recorded. Check this before you publish a video you recorded at home. The format is not a copy-protection system, but a file can carry DRM that only one app can play.

03Good and bad sides

Good

  • Plays on almost every phone, browser, TV and editing program
  • Small files at good quality with H.264 or H.265
  • Accepted by nearly all video platforms
  • Can start playing before the download ends (Fast Start)

Bad

  • The container says little about what plays: the codec inside decides
  • Can contain GPS location, which many people do not know about
  • Not made for editing: the compression is heavy

04Best for

  • Websites

    Plays in all major browsers when it uses H.264 and AAC. Use Fast Start so playback begins before the download ends.

  • Phones and tablets

    Plays on almost every phone, tablet and TV.

  • Sharing and messengers

    Small files at good quality that open for almost everyone. Check for GPS location in the file before you share it.

  • Video sites and streaming

    MP4 with H.264 and AAC is the combination most video sites recommend. Put the index at the front.

  • Editing and master copy

    The compression is heavy, so it is not ideal as a master. Keep the camera original if you may edit again.

05How to open it

Windows
Movies & TV, VLC, Windows Media Player, any browser
macOS
QuickTime Player, VLC, any browser
iPhone and Android
The built-in player, VLC, Google Photos
Linux
VLC, mpv, any browser
Online
Any browser plays H.264 and AAC in MP4

06Convert and compare

Related formats: MOV, WebM, MKV

Sources