How to Add Subtitles to a GIF (Auto Captions from the Video)
To add subtitles to a GIF, start from the video it came from: a GIF has no sound, so there is nothing left to transcribe once it's made. Drop the video into Video to GIF with Subtitles, let the speech model write the captions, fix any words, and convert. The captions are drawn into the frames, so they show up in every chat app, email and slide deck the GIF goes to.
Why subtitles have to be burned in
A video file can carry a separate subtitle track that players switch on and off. A GIF can't: it is only a series of pictures. Subtitles on a GIF are part of the picture, which has two consequences.
- They always show. Nobody can turn them off, and nothing can translate them later.
- They are fixed at the size you make them. A GIF shown small in a chat shrinks the text with it, so pick a larger caption size for narrow GIFs.
Step by step
- Drop the video (MP4, MOV or WebM) and set where the clip starts and how long it runs. Clips go up to 30 seconds.
- Download the speech model once. The card shows its size first: about 45 MB, or about 65 MB on browsers that can run it on the GPU, plus a 27 MB runtime the first time you use any AI tool on the site. Nothing is downloaded until you click.
- Click Transcribe clip. Whisper Tiny, OpenAI's speech recognition model, runs inside your browser and returns each phrase with its start and end time. Long sentences are split into short phrases of up to seven words.
- Fix the words. Small models mishear names and some words ("GIF" can come back as "gift"). Each phrase is an editable line.
- Choose the look: bottom or top, three sizes, and white with an outline, white on a dark box, or yellow.
- Convert to GIF and download.
If you change the clip after transcribing, the times no longer match the picture, and the page tells you to transcribe again.
What runs where
Everything happens on your device. The video is decoded in the browser, only the clip's sound is passed to the model, and the GIF is encoded locally. The model's weights come from Hugging Face the first time and are kept in the browser's cache, so the next visit starts in a second or two. The model card has a Delete model button that removes them.
On a browser with WebGPU (recent Chrome and Edge on most computers) the model runs on the graphics card. Elsewhere it runs on the CPU with WebAssembly, which is slower; the page warns you before the download when that's the case. A short clip still takes only a few seconds either way.
Languages
Whisper recognizes 99 languages and picks the language by itself. Accuracy is best in widely spoken languages such as English, Spanish, French, German, Portuguese and Japanese. The captions are a transcript in the spoken language; there is no translation.
The same idea for backgrounds
The GIF background remover has an AI cutout mode built the same way: an opt-in download (MODNet, 26 MB), kept in the browser, run on your device. It finds the person or object in each frame and makes the rest transparent, which works on photos where a single background color can't be keyed out.
When to type captions yourself
Use Add Text to GIF when the GIF has no source video, when the words aren't spoken (a reaction, a label, a joke), or when you want one caption over the whole loop.