What is the difference between GIF and MP4?

GIFs are image files that loop automatically and play everywhere without a video player. MP4 is a video format with better compression and quality. GIFs have no sound and limited colors (256), while MP4 supports audio and millions of colors. GIFs are better for short reactions; MP4 is better for longer or high-quality clips.