What the loop setting means
A GIF file carries a repeat count. Without one, it plays once and stops on the last frame. With a count of forever, it restarts endlessly. Most GIFs you meet online loop forever, but a GIF that plays two or three times and then stops can be better for an announcement, a countdown or a reveal that should not distract once it is over.
Number of plays
Set the number of plays to forever, once, or any number you choose. Most browsers and apps respect the count. Some messengers always loop GIFs, whatever the file says, so the setting is a hint, not a promise. When the exact behavior matters, test in the app where the GIF will be used.
Make a clean loop with a boomerang
A loop feels smooth when the last frame leads naturally into the first. If it does not, the animation seems to jump at the restart. Boomerang solves this: the GIF plays forward and then backward, so the end and the start always match. It works well for waves, jumps, nods and zoom effects. It looks odd with text, because mirrored motion shows reversed text moving backward, and with actions that obviously should not run in reverse, such as pouring a drink.
Trim for a better loop
If a boomerang is not what you want, look for a similar pose at both ends and cut the frames before and after it. A few frames removed at either end often hide the jump completely. For a quick loop out of video footage, choose a moment where the camera is steady and the subject returns to its starting position.
File size
A boomerang has about twice as many frames as the original, so the file gets bigger. If it grows past a platform limit, reduce the width, lower the number of colors or use the compressor. The size limits guide lists common numbers.
Related tools
To play the GIF backward only, use Reverse GIF, and to change the timing, use GIF speed. For a loop made from video, open Video to GIF.
Where the setting is respected
Browsers and most editing tools follow the number of plays stored in the file. Chat apps often convert a GIF into a looping video when you send it, and then the original count is lost. If a GIF must stop after one play, test it where it will be seen, and keep a final frame that looks right as a still picture in case an app shows only that frame.