JSON to TGS
Compresses a Lottie animation into the .tgs format that the @Stickers bot accepts, and unpacks a sticker back into JSON.
Drop .tgs stickers here or click to choose
Sticker
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
Tell us what was missing.
Other tools
Favicon Generator
A full set of site icons from an image, letter or emoji.
CSS Sprite Generator
Glues icons into one file with ready-made CSS.
Add Text to Image
A caption or watermark on photos, with batch processing.
Photo Watermark
A semi-transparent caption or tile across the whole image.
Photo Editor
An image editor in the browser, nothing to install
Image Color Palette
A palette from a picture, with color shares and a contrast check
Resize Image
Image size by width, height or percent, saved as JPEG, PNG or WebP
Crop Image
Frame by mouse or exact pixels, everything happens locally