JSON to TGS

Compresses a Lottie animation into the .tgs format that the @Stickers bot accepts, and unpacks a sticker back into JSON.

Paste Lottie JSON into the form or drop a file there. The switch at the top sets the direction: build a .tgs sticker from an animation, or unpack an existing sticker back into JSON.

What Lottie is and where the JSON comes from

A TGS file is a Lottie animation compressed with gzip. The source is exported from Adobe After Effects with the Bodymovin plugin, or taken ready-made from sites that host animations. The conversion itself is quick; the real work is making the file pass review, because the @Stickers bot rejects files with no explanation.

What gets checked

Telegram requires a 512×512 canvas, a duration of up to 3 seconds, 60 frames per second, and a final file no larger than 64 KB. After Effects features that the sticker player cannot handle are also forbidden: expressions, masks, layer effects, images, fills, text, 3D layers, merged paths, stars, gradient strokes, repeaters, time stretching and remapping, and auto-orientation of layers. The page finds these in the file and names the layer where the bot will stumble.

What cannot be seen from the file

Whether objects go beyond the canvas and whether the animation loops is not written in the JSON. You can only see it with your own eyes, which is why there is a preview next to the form. Auto bezier curves also cannot be told apart from ordinary keyframes, because Bodymovin writes the same fields for both.

Rate this tool

Help us get better

Other tools