Account

What new tool do you want?

Image Tools

Lottie / TGS to GIF Converter

Convert a Lottie animation (.json or .lottie) or a Telegram animated sticker (.tgs) to a GIF, an animated PNG or PNG frames. Choose the size, frame rate and background, preview it, and download. Nothing is uploaded.

How to use

  1. 1Drop a Lottie .json, a .lottie file or a Telegram .tgs sticker. Its size, length and frame rate are shown.
  2. 2Set the width, frame rate, output (GIF, animated PNG or PNG frames) and background. Press Preview to check it.
  3. 3Press Convert and download the file.

Frequently asked questions

How do I get a .tgs file from Telegram?

In Telegram Desktop, right-click an animated sticker and choose to save or export it, or forward the sticker to a bot that returns the file. A .tgs is a gzip-compressed Lottie animation, which this tool unpacks.

Why do the edges look rough on a transparent GIF?

GIF pixels are either fully see-through or fully solid, so the soft edges of a vector animation have to be cut one way or the other. Edge pixels are blended with the background colour you pick before the cut, so choose a colour close to where the GIF will be shown. For truly smooth edges, save as an animated PNG.

Some effects are missing. Why?

Rendering uses lottie-web's lightweight canvas player, which doesn't run expressions (small scripts some After Effects exports contain) and doesn't support a few effects. Telegram doesn't allow expressions in .tgs stickers, and most icon animations don't use them.

Which frame rate should I choose?

Telegram stickers are made at 60 fps, but a GIF can only time frames in hundredths of a second and many viewers slow very short delays down. 25–30 fps keeps the motion smooth with half the frames, so the file is smaller. Animated PNG has millisecond timing.

Is my file uploaded?

No. The animation is rendered and encoded in your browser.

Sources

What's inside a Lottie file

A Lottie animation is JSON describing vector shapes, their keyframes and timing (frame rate fr, in point ip, out point op, width w and height h). It's tiny and resolution-independent, but only apps with a Lottie player can show it. Converting to GIF or APNG turns it into ordinary pictures that any browser, chat app or slide deck can play, at the size and frame rate you choose.

Example: a Telegram sticker for a slide deck

Telegram's rules make a .tgs sticker a 512 × 512 animation of up to 3 seconds at 60 fps, so a 3-second sticker has 180 frames. For a presentation, set the width to 256, the frame rate to 30 and Animated PNG with a transparent background: 90 frames that keep the sticker's smooth edges on any slide colour. For a forum that only accepts GIF, choose GIF with the forum's background colour so the edges blend in.

How the timing is kept

Frames are rendered at exact moments (frame k at k ÷ fps seconds) and given delays that add up to the animation's real length. When a format can't store the exact delay (GIF rounds to 10 ms), delays alternate slightly, for example 30 and 40 ms at 30 fps, so the total doesn't drift.

Related tools

More: Image Tools