Convert LOTTIE to TGS

Turn LOTTIE images into TGS. A Telegram animated sticker: the Lottie JSON without its whitespace, compressed with gzip, with every layer, shape, keyframe and embedded picture kept.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop LOTTIE files on the dialor turn it to pick what to do

A Telegram sticker from your Lottie animation.Your animation becomes a TGS file on a 512 by 512 canvas, with every layer and keyframe kept.

  1. What you get

    A TGS file, which is a gzipped Lottie animation made for Telegram animated stickers. The Lottie JSON is stripped of its whitespace and then compressed with gzip. Every layer, shape, keyframe and embedded picture is kept.

    The conversion gives you one file.

  2. What changes

    Telegram stickers use a 512 by 512 canvas. If your animation has another size, it is scaled to fit that canvas and centered. Where it does not fill the square, clear margins are left around it.

  3. When it stops

    Telegram takes stickers of at most 3 seconds, at up to 60 frames per second, that pack to 64 KB or less. An animation that is longer, faster or bigger than that stops with unsupported_elements.

    The same code appears when a picture in the animation is linked rather than embedded. Embed the picture in the animation file so it can be kept.

    For other conversions, see every LOTTIE conversion or every TGS conversion.

LOTTIE and TGS.What each format is.

The formats

From · LOTTIE

Lottie Animation

A vector animation exported from After Effects with Bodymovin or made in LottieFiles, saved as JSON with its layers, shapes and keyframes.

Extensions
.lottie.json
MIME type
video/lottie+json
Kind
Images
To · TGS

Telegram Animated Sticker

A Telegram animated sticker: a gzipped Lottie animation, 512 pixels square at up to 60 frames per second.

Extensions
.tgs
MIME type
application/x-tgsticker
Kind
Images

In your code.The same LOTTIE to TGS conversion through the API, for your app or your agent.

terminal
$ cv convert photo.lottie.json photo.tgs
$ cv convert photo.lottie.json photo.tgs

Questions.What people ask about LOTTIE to TGS.

01OF 04

Yes. Every layer, shape, keyframe and embedded picture is kept. Only the whitespace in the JSON is removed before it is compressed.

It is 512 by 512, the canvas Telegram uses. An animation of another size is scaled to fit and centered, with clear margins where it does not fill the square.

It is longer than 3 seconds, runs above 60 frames per second, packs to more than 64 KB, or uses pictures that are linked rather than embedded.

No. This conversion has no options. The canvas is always 512 by 512.

More conversions.Other ways in and out of LOTTIE and TGS.