.mpg

What is a .mpg file?

MPEG-1/2 Video · Video · Moving Picture Experts Group · 1993

An .mpg file is MPEG-1 or MPEG-2 video, the older standards behind Video CDs, DVDs and early digital video. It is widely compatible but less efficient than modern codecs like H.264.

Category
Video
MIME type
Type
Binary
Also seen as
.mpeg
Is a .mpg file safe to open? Safe. MPEG video is a media stream decoded by a player.

What is a .mpg file used for?

MPEG program streams start with the bytes 00 00 01 BA. MPEG-1 powered Video CDs and MPEG-2 powered DVDs and digital broadcast, so .mpg files are common in older video collections.

Because the codecs are old, files are larger than an equivalent MP4. Almost every player opens .mpg; re-encoding to H.264 MP4 saves space and suits modern devices.

What opens a .mpg file?

The .mpg format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list.

Windows

  • VLC
  • Windows Media Player
  • MPC-HC

macOS

  • VLC
  • QuickTime
  • IINA

Linux

  • VLC
  • mpv
  • ffmpeg

Open a .mpg file step by step

  1. Confirm the file really is a .mpg. Drop it into the WhatFileType identifier, which reads its signature in your browser without uploading anything.
  2. On Windows, open it with VLC or Windows Media Player.
  3. On Mac, use VLC or QuickTime.
  4. On Linux, try VLC or mpv.
  5. Still stuck? Convert the .mpg to mp4, which opens more widely.

Why can't I open my .mpg file?

Almost always because no installed app understands MPEG. Install one of the apps above, or convert the file to a format your existing software already reads. If double-clicking opens the wrong program instead of nothing at all, the file association is set to the wrong app rather than the file being broken.

The other possibility is that the file is not really a .mpg at all. Drop it into the file identifier to check it by its bytes instead of its name. Nothing is uploaded.

How to convert a .mpg file

You can convert a .mpg file to mp4, mkv, webm using a conversion tool or the export menu of an app that opens it.

What is the .mpg file signature (magic bytes)?

A .mpg file starts with the hex bytes 00 00 01 BA. Programs identify MPEG by those bytes, not by the filename, so a renamed file still gives itself away.

These are the documented signatures for MPEG. For a full breakdown, see the MPEG-1/2 file signature page.

Documented magic-byte signatures for the .mpg format
Hex signatureOffsetASCIINote
00 00 01 BA0-program stream pack header
00 00 01 B30-video sequence header

See the full magic-numbers reference for every format.

Frequently asked questions

What is a .mpg file?

An .mpg file is MPEG-1 or MPEG-2 video, the older standards behind Video CDs, DVDs and early digital video. It is widely compatible but less efficient than modern codecs like H.264.

How do I open an .mpg file?

Almost any player opens it; VLC is the safe choice on every system. To modernise it, convert to MP4.

What is the difference between MPG and MP4?

MPG is older MPEG-1/2 video; MP4 is a modern container usually holding efficient H.264 or H.265. MP4 gives smaller files at the same quality.

Is MPG the same as MPEG?

Yes. .mpg and .mpeg are the same format; the shorter .mpg dates from when Windows limited extensions to three letters.

Related formats

Sources

Details on this page were checked against authoritative references. How sources are ranked and what is deliberately left out is set out in the methodology.