Make a GIF from a video
To turn a video into a GIF, drop it above, set the start and end, pick a width and download the GIF. A GIF loops on its own and plays everywhere, including places that don't play video, like many email programs and chat apps. In our test a 5-second GIF at 480 px and 15 fps came out at a median 4.6 MB.
The catch is size. GIF is a 1987 format with 256 colours and simple compression, so it's far less efficient than video: the same 5 seconds as an MP4 was a median 29.2 times smaller in our test. Keep GIFs short and small, and send an MP4 when the place you're posting plays video.
Our test: 5-second GIFs from 8 videos
File size grows with the picture area and the frame rate, and with how much changes from frame to frame: the tool writes only the pixels that changed since the last frame, so a still background costs almost nothing and a handheld shot costs the most.
Method: the page's own code in Chrome 157 on an Apple M2 Mac, on 5 seconds taken 30% into each of our test videos. The GIF encoder is gifenc, with one 256-colour palette per GIF.
| Setting | GIF size (median) | Smallest | Largest | Time (median) |
|---|---|---|---|---|
| 320 px, 15 fps | 2.0 MB | 47 KB | 4.1 MB | 0.6 s |
| 480 px, 15 fps | 4.6 MB | 78 KB | 8.8 MB | 0.8 s |
| 640 px, 15 fps | 8.0 MB | 109 KB | 15.0 MB | 1.1 s |
| 480 px, 10 fps | 3.3 MB | 62 KB | 6.1 MB | 0.7 s |
| 480 px, 20 fps | 6.0 MB | 99 KB | 11.9 MB | 1.0 s |
Last updated
GIF against MP4 for the same 5 seconds
Each 480 px GIF from the test, converted back to an MP4 with our GIF to MP4 tool: the MP4 was a median 29.2 times smaller, and that is starting from the GIF's 256 colours, not the original video.
| Video (5 seconds) | GIF, 480 px 15 fps | Same GIF as MP4 | GIF is larger by |
|---|---|---|---|
| Climate march, Brussels (handheld, crowd) | 5.1 MB | 158 KB | 32.0× |
| Snail on a leaf (close-up, 60 fps) | 4.7 MB | 159 KB | 29.5× |
| Airport tram ride (through a window) | 4.3 MB | 148 KB | 28.8× |
| Botanical garden (4K, shot on iPhone XR) | 8.8 MB | 183 KB | 47.9× |
| Interview (talking head, indoors) | 3.9 MB | 160 KB | 24.4× |
| App walkthrough (screen recording) | 78 KB | 36 KB | 2.1× |
| Folk dance performance (stage, people) | 4.4 MB | 155 KB | 28.6× |
| Berlin city scenes (4K, shot on iPhone 6S) | 6.7 MB | 209 KB | 31.9× |
Last updated
How it works, and what your browser needs
Pixohub's video tools use WebCodecs, the video encoder and decoder built into your browser (on most devices it uses the same hardware that records and plays your videos), driven by the open-source Mediabunny library. The file is read from your disk in pieces and the result is put together in the page, so nothing is uploaded and there is no limit on the original's size. The finished file is held in the page's memory until you download it, so a result of several gigabytes can be too much for a phone.
It needs a browser with WebCodecs: current Chrome, Edge and Samsung Internet on Android and computers, and Safari on Mac and on iPhone and iPad from iOS 16.4 (iOS 26 to make an MP3; on older iOS the video tools copy the sound as it is instead of re-encoding it). Firefox for Android has no WebCodecs yet, so there the page says so and suggests another browser instead of failing halfway.
Tips for a good GIF
- Short is everything: a 3-second loop at 480 px is a third of the size of a 9-second one.
- Pick a moment shot from a tripod or a still phone: unchanged pixels are almost free.
- 320 px is enough for a reaction GIF in chat; 640 or 800 px for a product demo in a document.
- 10 fps looks a little choppy for fast motion but halves the size against 20 fps.