πŸ”„

Make a GIF loop forever

Set a GIF to loop infinitely, play a fixed number of times, or play just once β€” by changing its loop setting, without touching the frames.

Updated 2026-10-26T00:00:00.000Z

A GIF that stops after one play (or loops when it shouldn’t) has the wrong loop setting. It is stored in a small block in the file (the NETSCAPE2.0 extension):

In the file Plays
no loop block once
loop count 0 forever
loop count n n + 1 times

The β€œ+1” confuses many tools. GIFmeta always talks about how many times the GIF plays, and writes the right value for you.

With the desktop app

  1. Open the GIF. The status bar shows the current setting: Loop: ∞ or Loop: 1Γ— (once).
  2. Go to βš™οΈ Settings β†’ Loop.
  3. Turn on ∞ Loop forever β€” or turn it off and set Plays to 1, 2, 3…
  4. πŸ’Ύ Save.

With the command line

# loop forever
gifmeta mod input.gif --infinite -o looping.gif

# play exactly 3 times
gifmeta mod input.gif --loop-count 3 -o three-times.gif

# play once (removes the loop block)
gifmeta mod input.gif --loop-count 1 -o once.gif

See the current setting with gifmeta info input.gif β€” it prints ∞ infinite, 1Γ— (plays once) or 3Γ—.

Lossless

Only the loop block changes. Frames, colours and timing stay byte-for-byte the same.

Why does my GIF still loop on some sites?

Some platforms ignore the loop setting and loop every GIF (or convert GIFs to videos). Messaging apps and browsers respect it; social networks often don’t.