File handoff · Checked November 16, 2026
MP4 to TGS? Choose the right Telegram sticker format
To use an MP4 clip as a moving Telegram sticker, prepare a VP9 WebM. TGS is for compatible vector animation. Renaming a video, or wrapping its frames in Lottie JSON, does not turn it into that vector artwork.
Start with the destination
A Telegram sticker from video
Keep the rendered frames and encode them as WebM with VP9. This is the video-sticker path. A MOV or an existing WebM also needs its codec, dimensions, duration and audio checked.
Animation JSON for a website or app
Use video to Lottie JSON when your destination actually needs a Lottie player. Its output stores image frames, can be larger than the video, and is not a Telegram TGS export.
One original animation, three different files
We used our two-second coral-bar animation. The source is an opaque H.264 MP4. The Lottie file was produced by our existing importer; the WebM below was encoded with the command in this guide. Download the files to inspect the difference yourself.
Image-backed Lottie JSON
143,065 bytes720 × 720 · 15 fps · 30 embedded images · 2 seconds
Download Image-backed Lottie JSONVideo-sticker WebM example
21,850 bytes512 × 512 · VP9 · 30 fps · 2 seconds · no audio
Download Video-sticker WebM exampleThese measurements describe this simple sample, not a typical compression ratio. We decoded all 60 WebM frames and checked playback and file properties. We have not submitted this example to Telegram; its upload acceptance has not been tested.
Why the JSON is not a TGS shortcut
In the downloadable JSON, the 30 assets contain WebP data URLs and the 30 layers use image type ty: 2. The timeline has fr: 15, ip: 0 and op: 30: two seconds of sampled pictures. A successful Lottie preview verifies playback in that viewer, not compatibility with Telegram.
Telegram excludes images from its animated-sticker format. Gzipping this JSON at level 9 produces 67,563 bytes, but compression leaves the image layers intact. Even a smaller compressed file would still have that incompatibility. Changing the suffix to .tgs does not fix it. See Telegram’s animated-sticker requirements.
Prepare the MP4 as a video sticker
With FFmpeg installed and VP9 encoding available, download the source MP4 above. Run this single-line command in its folder. We tested it with FFmpeg 9.0; byte counts can vary with the encoder version.
ffmpeg -i coral-bar-video.mp4 -t 3 -an -vf "scale=512:512:force_original_aspect_ratio=decrease:force_divisible_by=2,fps=30" -c:v libvpx-vp9 -b:v 0 -crf 38 -pix_fmt yuv420p sticker.webmThe command keeps at most the first three seconds, removes audio, fits the picture inside 512 × 512 without cropping, and uses 30 fps with VP9. It is an opaque-output recipe. It neither creates transparency from an MP4 nor preserves an alpha channel. The quality setting is a starting point, not a guarantee that any input fits Telegram’s size limit.
Check the result before uploading
Run the inspection command below. Look for Video: vp9, the frame dimensions, duration and frame rate. There must be no Audio: stream. Check the file’s byte size in your file manager and play the whole clip, including the loop boundary.
ffmpeg -hide_banner -i sticker.webm -f null -| Property | Required output | This example |
|---|---|---|
| Format | WebM / VP9 | WebM / VP9 |
| Dimensions | One side 512 px; other at most 512 px | 512 × 512 |
| Duration / frame rate | At most 3 seconds / 30 fps | 2 seconds / 30 fps |
| File size | At most 256 KB | 21,850 bytes |
| Audio | No audio stream | None |
Requirements: Telegram’s VP9 encoding guide. If your file is too large, shorten the excerpt or increase -crf to reduce quality, then re-encode and recheck. Do not rename an oversized or VP8 file. For publishing, follow the current prompts in Telegram’s official @Stickers interface.
If you specifically need TGS
Return to vector artwork and animate supported shapes. Telegram documents a Bodymovin-TG export workflow with a 512 × 512 canvas, a looping animation of at most three seconds, 60 fps and a 64 KB file limit. Review its full feature restrictions before authoring. Rebuilding motion as vectors is a separate creative task; this video-to-Lottie importer does not perform it.
If the original vector project still exists, start there instead of tracing the rendered video. If your goal is simply to keep a video’s appearance in a moving Telegram sticker, use the WebM path above.