gif to sticker
a small tool that turns a gif (or an x link) into a short video that whatsapp's own sticker maker turns into an animated sticker — the conversion happens in your browser, nothing is uploaded.
drop a gif and i’ll turn it into a short video that whatsapp can make an animated sticker from.
your file never leaves your device: the conversion runs entirely in your browser. paste a link and my server fetches that public gif and hands it to you; nothing is stored or logged. output: silent mp4 · up to 512 px · up to 10 s · .webp if you want it
someone drops a funny gif in a group chat and i want it as a sticker for every chat. sites that do this mostly upload your file to their server first, which felt like a lot for one gif. so i wrote a small tool that does it in the browser. the first version made the wrong file; why is below.
how it works
- you drop the gif in, or paste the link of a post on x; your browser splits it into frames.
- the frames become a silent mp4, its longer side at most 512 px. if you like, i crop it to a square from the centre; if it’s longer than ten seconds, you pick which ten stay. if the source already is a suitable mp4, i hand it over untouched.
- you save the video to your phone: “save video” from the share sheet on an iphone, a plain download on android. on a computer, the page shows an address and a qr code to open it on your phone.
- in whatsapp, you tap “create” in the sticker panel and pick the video; whatsapp makes the animated sticker itself.
- if you use a sticker app, you can also get a 512×512 animated .webp under 500 kb. i only make it when you ask, with libwebp compiled to webassembly, in a web worker.
the whatsapp part
the first version made exactly the file whatsapp lists for a sticker: 512×512, under 500 kb, an animated webp. right on paper. then i tried it with a real account: “create” in whatsapp web’s sticker panel turned it into a frozen sticker, and dragging it into a chat sent a plain image. so the .webp doesn’t become an animated sticker anywhere inside whatsapp itself; only sticker-pack apps can take it.
what works is the sticker maker on the phone: stickers → create → pick a video from the gallery, and the animated sticker is done. so the tool’s main job now is turning a gif or an x link into a short video ready for that step; the .webp stays, on request, for people who use sticker apps. i’m not affiliated with whatsapp, and button names can shift a little between versions.
with a link
saving a gif from x first is a chore, so you can paste the post’s link instead. that part needs my server: for security, a browser can’t fetch another site’s files on its own. my server takes the link, downloads the post’s public media and hands it to your browser as it is; the conversion still happens there. one surprise: x’s “gifs” aren’t gifs at all, they’re silent mp4 videos. good news, as it turns out: most of the time i can hand them over untouched.
what gets sacrificed
the video keeps its sharpness but can’t carry transparency: a gif’s transparent parts turn white, and the result says so. anything past ten seconds is cut to a ten-second piece, and whatsapp’s editor can shorten it further. the real squeeze is the .webp: 500 kb is a tight box for a few seconds of 512×512 animation. a long or very colourful gif gives up some sharpness and smoothness to fit, and when even the lowest settings aren’t enough, i say it didn’t fit instead of handing you a file that won’t work.
privacy
drop a file and it never leaves your device. the conversion runs entirely in your browser: nothing is uploaded, nothing is stored. close the tab and it’s gone.
paste a link and the link goes to my server, which downloads the public gif or video there and hands it to you, nothing more. neither the link nor the file is stored or logged. the address i show for opening the page on your phone holds the page itself and, if you gave one, the post’s public link; nothing else.
still in progress. if a gif comes out weird, tell me.