Skip to main content

How to Extract Frames from a GIF (GIF to JPG or PNG)

To extract frames from a GIF, convert it to JPG or PNG. Our converter saves the first frame; to get every frame, use the FFmpeg or ImageMagick steps below.

Convert GIF to JPG

Upload your file — get the result instantly

GIF JPG

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

Encrypted upload via HTTPS. Files auto-deleted within 2 hours.

How to Extract Frames from a GIF

First frame (this page)

  1. Upload the GIF in the converter above.
  2. Convert to JPG. Transparent areas become white, and the JPG quality is 92.
  3. Download the still image. For lossless pixels or transparency, convert the GIF to PNG instead.

All frames with FFmpeg

ffmpeg -i input.gif -fps_mode passthrough frame_%03d.png writes frame_001.png, frame_002.png and so on: one full picture per GIF frame. Older FFmpeg versions use -vsync 0 instead of -fps_mode passthrough.

All frames with ImageMagick

magick input.gif -coalesce frame_%03d.png. The -coalesce option matters: many GIFs store only the changed part of each frame, and without it you get partial, broken-looking images. With ImageMagick 6, use convert instead of magick.

Photoshop

Open the GIF (each frame becomes a layer), then use File → Export → Layers to Files to save every frame as PNG or JPG.

GIF Format Overview

GIF (Graphics Interchange Format) was created by CompuServe in 1987 and remains in use today primarily because of one feature: animation. GIF is the only widely-supported image format that plays animated sequences in all browsers, email clients, and messaging apps without requiring video playback.

GIF's technical limitations are significant: 256 colors maximum per frame (from a palette-based system), binary transparency only (fully opaque or fully transparent, no partial transparency), and LZW compression that produces large files for photographic content.

GIF to JPG: When and Why

Converting GIF to JPG makes sense when:

  • Photographic content stored as GIF: Legacy systems sometimes save photos as GIF. JPG provides 16.7 million colors vs GIF's 256.
  • Extracting a still frame: Converting animated GIF to JPG extracts the first frame as a static image — useful for thumbnails and previews.
  • Format requirements: Some upload forms require JPG specifically.
  • Smaller file size: For photographic content, JPG is typically much smaller than GIF.

Important: Converting an animated GIF to JPG extracts only the first frame. All animation is lost. If you need to preserve animation, convert the GIF to MP4, which keeps every frame.

GIF to PNG: The Better Choice for Graphics

For most GIF content (logos, icons, graphics, screenshots), PNG is the superior target format:

  • Lossless quality: PNG preserves exact pixel data, no compression artifacts
  • Full transparency: PNG supports alpha channel (256 levels) vs GIF's binary transparency
  • Better compression: For flat-color graphics, PNG is often smaller than GIF
  • More colors: PNG supports 16.7 million colors (24-bit) vs GIF's 256

Animated GIF Warning

This is the most important thing to understand: converting animated GIF to JPG or PNG produces a single static image (the first frame). The animation is permanently lost in the conversion.

If you need to preserve animation:

  • Animated WebP: about 64% smaller than GIF in lossy mode. Our GIF to WebP converter keeps all frames, so the animation survives
  • GIF to MP4: Dramatically smaller files for web video playback

GIF vs JPG vs PNG Comparison

Feature GIF JPG PNG
Colors 256 16.7 million 16.7 million
Animation Yes No No (APNG limited)
Transparency Binary No Full alpha
Compression LZW lossless DCT lossy DEFLATE lossless
Best for Simple animations Photos Graphics, screenshots

When GIF Still Makes Sense

Despite its age and limitations, GIF remains relevant for:

  • Email animations: GIF is the only animated format supported by all email clients
  • Messaging: Universal support in iMessage, WhatsApp, Telegram, Discord
  • Memes and reactions: Cultural standard for short animated content
  • Maximum compatibility: 100% browser and app support, no exceptions

How to Count a GIF’s Frames and Find Its FPS

  • magick identify input.gif prints one line per frame, so the number of lines is the frame count.
  • magick identify -format "%T\n" input.gif prints each frame’s delay in hundredths of a second. Frame rate = 100 ÷ delay: 10 means 10 fps, 4 means 25 fps.
  • ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of csv=p=0 input.gif gives the frame count with FFmpeg’s tools.

Ready to Convert?

Convert your files with high-quality settings

GIF JPG

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

Frequently Asked Questions

No. JPG does not support animation. Only the first frame is extracted as a static image. For animation, convert the GIF to MP4.

JPG for photographs (smaller files). PNG for graphics with flat colors, text, or transparency needs. PNG is lossless and better for most GIF content.

Quality stays the same — PNG preserves GIF pixel data losslessly. But PNG supports full alpha transparency vs GIF binary transparency.

Before PNG, GIF was the standard for web graphics. Many legacy systems still use static GIFs. Converting to PNG gives modern format support.

Use FFmpeg (ffmpeg -i input.gif -fps_mode passthrough frame_%03d.png), ImageMagick (magick input.gif -coalesce frame_%03d.png) or an online GIF splitter. The converter on this page saves only the first frame.

Yes, and for frames it is usually the better choice: PNG keeps every pixel and the transparency. The commands above already write PNG files; change the extension to .jpg for smaller files.

Back to GIF to JPG Converter

Request a Feature

0 / 2000