Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Make a GIF from a Video: Clip Length, Frame Rate and Size

To make a GIF from a video, cut out a short moment of 2 to 6 seconds, shrink it to 320 to 480 pixels on its longer side, lower the frame rate to 10 to 15 frames per second, and save it as an animated GIF that loops forever. Length, size and frame rate decide the file size more than the app you use, because GIF compresses far less efficiently than modern video formats: every extra frame and pixel adds to the file.

Zutilium's Video to GIF converter applies all four in one step for MP4, MOV, M4V and WebM files. Below are the steps, the numbers behind each setting, phone and desktop options, and when an MP4 is the better choice.

How to make a GIF from a video with Zutilium

Video to GIF doesn't play your video on the page, so first note the second where your moment starts in any video player. Then:

  1. Drop the video on the upload area, or click Choose file. MP4, MOV, M4V and WebM files up to 50 MiB are accepted.
  2. Enter where the GIF should begin in Start time (seconds). Decimals such as 12.5 work.
  3. Set Duration (seconds, up to 30). The default is 5; most GIFs work best at 2 to 6 seconds.
  4. Pick Maximum dimension (px): 240, 320, 480, 640 or 960. The default, 480, turns a 1920 × 1080 video into a 480 × 270 GIF and a portrait 1080 × 1920 phone video into 270 × 480. Smaller videos are never enlarged.
  5. Pick Frames per second: 5, 10, 15 or 20. The default is 10.
  6. Leave Repeat count (0 = forever) at 0 for an endless loop, or enter how many extra times the clip should play.
  7. Click Convert to GIF, then Download when "Your GIF is ready" appears.

Open the downloaded GIF and watch a few loops: check the first and last frames, the smoothness and the file size.

The conversion runs on Zutilium's server, so your video is uploaded when you convert. The GIF download is temporary, so save it promptly. Sound and metadata such as location tags are left out, and the GIF can end up larger than the video.

Video to GIF settings: clip length, frame rate and size

Each GIF frame is an image of at most 256 colors, as the GIF89a specification sets out, so file size follows how many frames you keep and how many pixels each one holds. These starting points suit most clips:

GIF for Duration Frames per second Maximum dimension
Reaction or meme 1 to 3 s 10 240 or 320
Product or how-to clip 3 to 6 s 10 or 15 480
Screen recording with text 3 to 8 s 5 or 10 640 or 960
Fast action, sports, pets 2 to 4 s 15 or 20 320 or 480

Worked example: how the settings multiply

Take a 4-second moment from a 1920 × 1080 video. Frames are duration × frame rate, and each frame holds width × height pixels:

Settings GIF size Frames Pixels in all frames
320 px, 10 fps 320 × 180 40 2.3 million
480 px, 10 fps (defaults) 480 × 270 40 5.2 million
480 px, 20 fps 480 × 270 80 10.4 million
960 px, 10 fps 960 × 540 40 20.7 million
960 px, 20 fps 960 × 540 80 41.5 million

Doubling the frame rate doubles the data, and doubling the maximum dimension quadruples it. The 960 px, 20 fps version carries 8 times the pixels of the defaults and 18 times those of the 320 px version. Compression shrinks all of them, and clips where little moves, such as screen recordings, shrink far more than handheld footage where every pixel changes.

Frame rate

Phone videos are usually recorded at 30 or 60 frames per second, far more than a GIF needs; at 10 fps most motion still reads as continuous. GIF stores frame timing in hundredths of a second, so 10 fps (0.10 s per frame) and 20 fps (0.05 s) are exact, while 15 fps alternates 0.07 and 0.06 s to keep the right speed.

Longest GIF per export

Each export is capped at 30 seconds and at 120 million pixels across all frames, so large sizes at high frame rates run out sooner. For a 16:9 video at least 960 pixels wide:

Maximum dimension 10 fps 15 fps 20 fps
480 or less 30 s 30 s 30 s
640 (640 × 360) 30 s 30 s 26 s
960 (960 × 540) 23.1 s 15.4 s 11.5 s

Portrait 9:16 clips get the same limits, and at 5 fps every size allows the full 30 seconds. Square videos run out sooner: at 960 × 960, the longest exports are 13 seconds at 10 fps, 6.5 seconds at 20 fps and 26 seconds at 5 fps. The finished GIF must also stay under 80 MiB.

How GIF looping works

A GIF's loop setting is stored in the file, and Repeat count (0 = forever) writes it:

  • 0 loops forever, which is what most people expect from a GIF.
  • 1 to 100 sets how many times the clip repeats after the first play, so 1 plays it twice and 3 plays it four times. Browsers count this way; Firefox switched to match the others in version 55, as Mozilla's bug report records.

There is no setting for a GIF that plays exactly once; the FFmpeg command below can make one.

For a loop without a visible jump, end the clip where the picture matches the start, such as one full turn of a wheel or a complete nod. A still camera helps, because shake makes the jump obvious.

Turn a video into a GIF on iPhone, Android or Windows

iPhone, iPad and Mac: Shortcuts

Apple's Shortcuts app includes a Make GIF action, and its Gallery offers ready-made GIF shortcuts. Open Shortcuts, tap Gallery, search for GIF and tap Add Shortcut, as Apple's Gallery guide describes. Run it, pick a video, drag the trim handles around your moment and tap Save, then save the GIF to Photos or share it.

Samsung Galaxy: Gallery

Samsung says its Gallery app can turn short video clips into animated GIFs on recent Galaxy phones. Menus vary by model and One UI version, so open the video in Gallery and look for a GIF option in the player or editor. If your phone has no GIF option, open Video to GIF in its browser instead.

Windows: Clipchamp

Microsoft's Clipchamp video editor exports a GIF from any project of 15 seconds or less. Add your video, trim the timeline to your moment, click Export at the top right and choose GIF. As of November 2026, GIF export is included on free personal accounts.

Convert MP4 to GIF with FFmpeg

With FFmpeg, a free command-line tool, this command makes a 4-second GIF starting at 12 seconds, fitted inside 480 × 480 pixels at 10 fps, with a palette built from the clip itself, the same approach Zutilium's converter uses:

ffmpeg -ss 12 -t 4 -i input.mp4 -filter_complex "fps=10,scale=480:480:force_original_aspect_ratio=decrease:flags=lanczos,split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=sierra2_4a" -loop 0 output.gif

A plain ffmpeg -i input.mp4 output.gif uses a fixed, generic palette, which is why its colors often look blotchy. palettegen picks the 256 colors from your clip, and stats_mode=diff favors the parts that move. Change -loop 0 to -loop -1 for a GIF that plays once; the FFmpeg formats documentation lists both values under the GIF muxer.

When an MP4 is better than a GIF

GIF has hard limits: 256 colors per frame, no sound and weak compression. In Google's web.dev guide to replacing GIFs with video, a 3.7 MB GIF became a 551 KB MP4. Pick the format by where the clip is going:

Where it's going Better choice Why
Email, forums, wikis, README files GIF Works where only images are allowed
Chat apps and social posts that take video MP4 Much smaller, keeps sound
Your own website MP4 or WebM A muted, looping video acts like a GIF
Longer than about 10 seconds MP4 GIF size grows with every second
Skies, gradients, skin tones MP4 256 colors cause banding

If you already have a GIF and need a video, GIF to MP4 converts it, and the GIF to MP4 guide covers timing and looping.

Troubleshooting

The video is over 50 MiB

Cut out the moment first. Video Trimmer takes videos up to 100 MiB and previews them in your browser, when it can play the format, before anything is uploaded. Press Set start here and Set end here around your moment, click Export MP4, then download the short clip and convert it. For bigger files, trim the video on your phone or computer first.

The GIF is too big to post

Lower the settings in this order: shorten the duration, drop the frame rate to 10, then reduce the maximum dimension one step. Re-exporting from the video avoids squeezing an already compressed GIF; if the GIF is all you have, see how to reduce GIF file size.

Colors look banded, grainy or washed out

Banding and grain come from the 256-color limit: the converter builds one palette for the whole clip, favoring moving areas, and dithers (mixes palette colors in a fine pattern) to hide the steps. Clips with gradients or several scenes suffer most, so keep the GIF to one scene or use MP4. Washed-out colors often mean HDR video, which the converter doesn't convert to standard range; on iPhone, turn off HDR Video for clips you plan to turn into GIFs.

The GIF is shorter than the duration

The clip stops at the end of the video and never repeats it to fill the time, so 10 seconds starting 3 seconds before the end gives a 3-second GIF. Start time (seconds) must also be earlier than the video's length.

You only want part of the frame

Video to GIF has no crop setting. Crop the video first with Crop Video, then convert the MP4 it produces.

Other messages

  • "This GIF would be too large": the export passed the 120-million-pixel budget. Use the table above to shorten the clip, lower the frame rate or pick a smaller size.
  • "Both video processing slots are busy": two conversions are already running. Wait a moment and try again.
  • "Video conversion timed out": choose a shorter clip or a smaller maximum dimension.
  • "no more than 16 megapixels and 8192 pixels per side": the source frame is too large, as with 8K video. Export a smaller copy first.

Frequently asked questions

How do I turn a video into a GIF on my phone?

On an iPhone, use a GIF shortcut from the Shortcuts Gallery; on recent Samsung Galaxy phones, use the GIF option in Gallery. Any phone can also open Video to GIF in the browser and tap to choose a video. Longer phone videos can pass the 50 MiB upload limit, so trim them in your phone's photo app first.

How long can a GIF from a video be?

The GIF format has no length limit, but file size grows with every second, so most GIFs run 2 to 6 seconds. Video to GIF exports up to 30 seconds at a time, less at 960 pixels and high frame rates. For longer clips, an MP4 is usually the better format.

Why is my GIF bigger than the original video?

Video formats such as H.264 mostly store what changes between frames, while GIF stores a series of 256-color images with simpler compression, so a GIF can easily outweigh the MP4 it came from. A shorter clip, a lower frame rate and a smaller maximum dimension bring it down.

Can a GIF have sound?

No. The format holds images and their timing only, so the audio track is dropped during conversion. If the sound matters, share a short MP4 instead.

How do I make a GIF from pictures instead of a video?

Use Animated GIF Maker, which turns 2 to 20 still images into frames that share one delay. Its Playback setting counts total plays, so Play once really plays once, unlike the repeat count in Video to GIF. The guide on how to make a GIF from pictures covers frame order and delays.