GIF loop maker: loop forever, once, or any number of times
Changing the loop rewrites one small block in the file. The frames are copied byte for byte, so nothing is encoded again.
A GIF says how many times to play in a 19-byte block near the start of the file. This page writes that block for you: forever, once, or a number of plays. Boomerang plays the GIF forward and then backward, which needs new frames, so that one is encoded again. Nothing is uploaded.
Drop or click to choose
Drag and drop, or paste a GIF file
Animated GIF, up to 80 MB on a computer or 25 MB on a phone
Drop it, choose it or paste it. It is read on your device; nothing is uploaded.
2
Pick how it plays
Forever is set straight away. Choose Once, or a number of plays such as 3, and the file is rewritten as you choose.
3
Add a boomerang
Tick Boomerang to play it forward and then backward, for a loop with no jump back to the start.
4
Download
The result plays next to the original, with its loop shown in the facts. Download it.
How a GIF knows when to stop
The loop is set by a small block that browsers read near the start of a GIF, called the NETSCAPE2.0 block after the browser that introduced it. It holds one number:
0 means loop forever. This is what most GIFs use.
Any other number counts the repeats after the first play. A file that says 2 plays 3 times. So when you ask for 3 plays here, the page writes 2, and Chrome reports a repetition count of 2 for it.
No block at all means play once. That is how Once works here: the block is removed.
The number is two bytes, so the most is 65,535 repeats, which is 65,536 plays. Changing it never touches the frames: the page copies every other byte of your file as it is, so the colours, the timing and the size stay the same, give or take the 19 bytes of the block.
Make a GIF loop forever, or stop it looping
A GIF that stops after one play was saved without the loop block, or with a count. Choose Forever and the block is added or set to 0. To stop a GIF from looping, choose Once. Some apps and sites ignore the setting or turn GIFs into videos, so a GIF set to play once can still loop there; browsers follow it.
Make a boomerang GIF
Boomerang plays every frame forward and then the frames in between backward, without repeating the first and last frame, so the turn at each end does not stutter. A GIF with 10 frames becomes 18. Each frame keeps its own delay, and the page keeps every pixel when the frames use 256 colours or fewer between them, which most GIFs do.
Limits, in numbers
Changing the loop works on any GIF up to 80 MB on a computer and 25 MB on a phone, with no frame limit, because the frames are not decoded. Boomerang rebuilds every frame, so it has the same limits as the other GIF tools:
File size: up to 80 MB on a computer, 25 MB on a phone.
Frames: up to 1,000 on a computer, 500 on a phone.
Dimensions: up to 4,096 pixels on a side.
Memory: every frame is rebuilt as a full picture at 4 bytes a pixel, so width x height x frames can be up to 120 million pixels on a computer (about 458 MB) and 32 million on a phone (about 122 MB). A 480 x 270 GIF with 300 frames is 38.9 million. A GIF over a limit gets a message with its own numbers, never a frozen tab.
Questions, answered
How do I make a GIF loop forever?
Choose the GIF. Forever is already picked, so the result loops forever straight away: the page adds the loop block, or sets it to 0 if it was there. Download it. The frames are copied unchanged.
How do I make a GIF play only once?
Choose the GIF, then Once. The loop block is removed, which is how a GIF says to play once and stop on its last frame. Browsers follow that; some apps loop every GIF anyway.
How do I make a GIF loop 3 times?
Choose Number of times and type 3. The page writes 2 into the file, because the number in a GIF counts the repeats after the first play, so the GIF plays 3 times in all and stops on the last frame.
Why does my GIF stop after playing once?
It was saved without the loop block, or with a small count. Load it here and choose Forever.
Does changing the loop reduce quality?
No. Only the loop block changes; every frame is copied from your file byte for byte. Boomerang is different: it builds new frames, and keeps every pixel when the GIF uses 256 colours or fewer in all.
What is a boomerang GIF?
A GIF that plays forward and then backward, so it loops smoothly with no jump back to the start. Tick Boomerang and the page builds it from your frames.
Is my GIF uploaded?
No. Your browser reads the GIF, the loop block is rewritten on your device, and hands you the new file from memory. The line under the upload box counts the bytes that leave the page while you work, and it stays at 0. The first time colours have to be reduced to fit 256, the page downloads gifenc, an open-source colour picker of about 9 KB, from cdn.jsdelivr.net; nothing of yours is sent to it, and when that download fails the page uses its own simpler method.
Can I change the speed too?
Yes, with the GIF speed changer, which also rewrites only the timing bytes. Then bring the result back here for the loop.
What are the limits?
Files up to 80 MB on a computer and 25 MB on a phone, up to 4,096 pixels on a side, and up to 1,000 frames on a computer or 500 on a phone. Every frame is held in memory as a full picture at 4 bytes a pixel, so there is also a cap on width x height x frames: 120 million pixels on a computer (about 458 MB of memory) and 32 million on a phone (about 122 MB). A 480 x 270 GIF with 300 frames is 38.9 million. Changing the loop alone has no frame or pixel limit, because the frames are not decoded.
Is there a watermark?
No. Nothing is drawn on your GIF. The file name starts with ThumbCrafted- and you can rename it.
Continue crafting
Keep going: your GIF carries over to the next tool with no re-upload.