MPG to GIF Converter
Make an animated GIF from an MPG video, up to 480 px on its longer side.
or drop files here
MPG Format
MPEG video
A file extension for MPEG-1 or MPEG-2 video and audio in an MPEG program stream. It was the standard for VCD and DVD video.
- MPEG-1 or MPEG-2 video
- MPEG program stream
- Lossy compression
- Legacy format
GIF Format
Graphics Interchange Format
A raster image format introduced by CompuServe in 1987, with LZW compression, a palette of at most 256 colors per frame and simple animation.
- 256-color palette per frame
- Lossless LZW compression
- Animation
- No sound
How to convert MPG to GIF
Follow these steps to convert MPG to GIF online.
Choose your MPG file, or several at once.
Wait while the converter turns each file into GIF.
Download each new GIF file. Your original file isn't changed.
Related Tools
MPG to AIFF
Convert MPG files to AIFF format
MPG to AU
Convert MPG files to AU format
MPG to CAF
Convert MPG files to CAF format
MPG to DIVX
Convert MPG files to DIVX format
MPG to FLAC
Convert MPG files to FLAC format
MPG to FLV
Convert MPG files to FLV format
MPG to HEVC
Convert MPG files to HEVC format
MPG to M4R
Convert MPG files to M4R format
MPG to MJPEG
Convert MPG files to MJPEG format
MPG to OGA
Convert MPG files to OGA format
MPG to VOB
Convert MPG files to VOB format
MPG to WMV
Convert MPG files to WMV format
3GP to GIF
Convert 3GP files to GIF format
AI to GIF
Convert AI images to GIF format
AVI to GIF
Convert AVI files to GIF format
BMP to GIF
Convert BMP images to GIF format
GIF Compressor
Compress and optimize GIF files
DNG to GIF
Convert DNG images to GIF format
M2TS to GIF
Convert M2TS files to GIF format
MJPEG to GIF
Convert MJPEG files to GIF format
OGV to GIF
Convert OGV files to GIF format
PNG to GIF
Convert PNG images to GIF format
RM to GIF
Convert RM files to GIF format
WMV to GIF
Convert WMV files to GIF format
What to know before converting MPG to GIF
- The GIF's longest edge is capped at 480 px, and it plays at 15 frames per second.
- The whole clip is converted, with no trimming.
- The sound is dropped, because a GIF can't hold audio.
- A palette is built from your clip, but a GIF still has at most 256 colors.
- Frames flagged interlaced are deinterlaced.
Understanding MPG and GIF
What is an MPG file?
An MPG file holds MPEG-1 or MPEG-2 video and audio together in an MPEG program stream. The .mpg ending is the short form of .mpeg, and both are used for MPEG video. MPEG-2 was designed for television delivery and then became the video format of the DVD, while MPEG-1 and MPEG-2 were the standard for VCD and DVD video. Its media type is video/mpeg.
Inside, the picture and sound are coded separately, each as an elementary stream, then cut into packets and interleaved, so one file carries both. Streams in an MPEG system carry coded picture, sound and data, and each elementary stream stands for one coded component. It turns up on video CDs and DVDs, in older downloads and in broadcast captures. MPEG is a lossy format, and the detail it discards cannot be recovered from the file.
Programs that open MPG files
- Windows, Mac and Linux: VLC names MPEG program streams among its readable inputs; FFplay is another option.
- Windows: Windows Media Player supports the .mpg and .mpeg endings.
- Mac: QuickTime Player is on the list of openers for MPG.
- Mobile: install VLC for Android or VLC for iOS and the clip plays as it is. On Android, VLC includes the desktop decoding; on iOS it plays local files in a player of its own, bypassing the system's.
MPG and GIF compared
- Extensions and types: .mpg with video/mpeg, and .gif with image/gif.
- What they are: MPG is a video format with sound. GIF is an image format introduced by CompuServe in 1987, and it animates by holding many images with a delay between them.
- Color: a GIF image draws from a small palette. This page generates that palette from the clip itself.
- Sound: MPG carries audio. A GIF has none, so the sound is dropped. Keep the MPG itself when you still need the sound.
- Compression: both are compressed, MPG with lossy video coding and GIF losslessly with LZW.
- Transparency: one palette entry can be set fully transparent, and no pixel can be half see-through.
- Timing: a GIF holds many images, each followed by a delay in hundredths of a second, which is all that GIF animation consists of.
- History: version GIF89a from July 1990 introduced transparency, frame timing, comment and application-data extensions. From 1994 Unisys wanted license fees for LZW. The American patent lapsed in 2003; the equivalent European and Japanese ones lapsed in 2004.
- Looping: a GIF can repeat, and the command this page runs sets it to loop without end.
- Playback: every major browser displays a GIF with no player, while an MPEG needs a program that has the right decoders.
- Editing afterward: GIMP can export layers as an animation set to repeat endlessly, and ImageMagick lists GIF too, so the result can be adjusted afterwards.
Your MPG goes through FFmpeg in your browser. Footage whose frames are marked interlaced is deinterlaced first. The result plays at 15 frames per second, and its longest edge is capped at 480 pixels, with both sides rounded down to an even number. A picture that is already smaller keeps its size. A palette is generated from the clip itself before the frames are drawn, and the GIF is written to loop. Nothing trims the video, so the whole clip is used. If you choose more than one MPG, the converter handles them in sequence, producing a separate GIF per file while the originals stay put.
Other ways to convert MPG to GIF
- FFmpeg: run
ffmpeg -i source.mpg animation.gif.
Problems with MPG files
- A player won't open it: both the video and the audio need a decoder, because combining them into one file does not make their codecs the same.
- It looks soft or blocky: lossy MPEG encoding cannot retain every detail from the uncompressed picture, so start from the best copy you have.
- A very long clip: nothing on the page limits size or run time; a long MPG takes whatever time your device requires.
- The file isn't recognized: some MPEG files are raw video and others are system streams, so the right reader depends on how the file is structured, and an unreadable one may simply differ from what you assumed.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert MPG to GIF?
How big is the GIF?
What frame rate does the GIF use?
Can I choose which part of the MPG becomes the GIF?
Why does the GIF have no sound?
Why do the colors look banded in the GIF?
Does the GIF loop?
What happens to interlaced MPG video?
Is .mpg different from .mpeg?
Can I do a batch of MPG clips?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.