Most GIFs loop forever, but not all of them. Whether a GIF repeats, and how many times, is not decided by the website or app showing it. It is a small setting stored inside the file, usually called the loop count. If your GIF plays once and freezes, or keeps looping when you wanted it to stop, that setting is what you need to change.
How GIF looping works
An animated GIF can carry a short block of data, known as the Netscape loop extension, that tells viewers how often to repeat the animation. What it contains decides the behaviour:
| Loop setting in the file | What viewers usually do |
|---|---|
| Loop count 0 | Loop forever |
| No loop block at all | Play once and stop on the last frame |
| Loop count N (1 or more) | Play once, then repeat N more times |
The last row is the one that surprises people. A loop count of 1 usually means the animation is shown twice: the first play, then one repeat. Tools describe this differently, and viewers have not always agreed, so test the finished GIF where you plan to use it before you rely on an exact number.
Make a GIF that loops forever
The LoopVideo video to GIF converter writes GIFs that loop forever. It runs in your browser, with no sign-in or credits.
- Upload a short MP4, MOV or WebM clip. The converter uses the whole video, so trim longer footage in an editor first.
- Set the width and frame rate. It starts at 480 pixels wide and 12 FPS; the frame rate can be set from 8 to 24, and the height follows the aspect ratio.
- Convert, check the preview and download the GIF.
The converter does not let you choose a loop count. If you need the GIF to stop after a few plays, use one of the tools below on the downloaded file.
Set a loop count with ffmpeg or gifsicle
Two free command-line tools can write any loop setting.
ffmpeg sets the loop count when it creates the GIF from a video. -loop 0
loops forever and is ffmpeg's default, -loop 2 writes a loop count of 2
(usually three plays in total), and -loop -1 leaves out the loop block, so
the GIF plays once:
ffmpeg -i clip.mp4 -loop 0 forever.gif
ffmpeg -i clip.mp4 -loop 2 three-plays.gif
ffmpeg -i clip.mp4 -loop -1 once.gifThese short commands skip the palette step, so colours can look rougher than in the LoopVideo converter, which builds a palette from your clip. It is often easier to convert in the browser and change the loop count afterwards.
gifsicle changes the setting of a GIF you already have and leaves the picture as it is:
gifsicle --loopcount=forever input.gif > forever.gif
gifsicle --loopcount=2 input.gif > three-plays.gif
gifsicle --no-loopcount input.gif > once.gifIts manual spells out the counting: a loop count of 1 loops once, so every frame is shown twice. Graphics editors that export animated GIFs offer the same choice, usually as looping options such as Once, Forever or a custom number.
Why your GIF still does not loop
If the file is set to loop forever but it does not repeat where you post it, the cause is usually outside the GIF:
- The platform converted it. Many social networks and chat apps turn uploaded GIFs into video files and play them with their own rules, so the loop count in your file may be ignored.
- The viewer ignores animation. Some email clients and document viewers show only the first frame of an animated GIF.
- It was saved as a still image. Screenshots, some image editors and some "save image" options keep only one frame. Share the original file.
- Reduced motion settings. Some apps pause animations when the device asks for less motion.
Open the downloaded GIF directly in a web browser. If it loops there, the file is fine and the platform is changing it.
Make the loop point smooth
A GIF that loops forever also shows its loop point forever. When the last frame does not match the first, every repeat starts with a jump, and setting a loop count cannot fix it, because the frames stay the same.
Fix the jump in the video before converting:
- Upload the clip to the LoopVideo workspace and watch the free repeat preview to see the end-to-start cut.
- If it jumps, choose the AI seamless loop. LoopVideo generates a transition of about five seconds from the final frame back to the first frame. AI requires sign-in, and email accounts must be verified; the one-time free trial, where available, adds a visible watermark, and one paid credit gives a watermark-free result.
- Download the seamless video and convert it to a GIF.
The added transition makes the GIF longer and therefore larger, so start from a short clip. The full workflow, including size tips, is in how to make a seamless looping GIF.
When a looping video is the better choice
GIF has no sound and only 256 colours per frame, and its files grow quickly.
On a web page you control, a muted MP4 with the loop attribute usually looks
sharper at a fraction of the size. See
how to loop a video on any device for player and
web options.
FAQ
How do I make a GIF loop forever?
Set its loop count to 0, which means forever. GIFs from the LoopVideo
converter already loop forever; for other files, run
gifsicle --loopcount=forever input.gif > output.gif.
How do I make a GIF play only once?
Remove the loop block, for example with gifsicle --no-loopcount or
ffmpeg's -loop -1. Setting the count to 1 usually shows it twice.
Why does my GIF stop after one play?
The file has no loop block, or a small loop count. Set it to loop forever and test the file in a browser.
Can I change the loop count without losing quality?
Yes. GIF compression is lossless, and gifsicle changes only the loop setting unless you ask it to optimise or resize the frames.
Does LoopVideo add a watermark to GIFs?
The converter does not. A GIF made from a free AI trial result keeps that result's visible watermark.

