Free online converter

Lottie to TGS Converter

Turn a Lottie JSON animation into a .tgs file — the format Telegram uses for animated stickers.

Drop your animation, see it checked against Telegram's sticker limits, and download the packed .tgs. Everything runs in your browser.

  • 512 × 512
  • ≤ 3 s · 60 fps
  • ≤ 64 KB gzipped
  • No upload
lottie → tgs pipelineclient-side
  1. animation.jsonlottie · vector
  2. spec checks512px · 3s · 60fps
  3. gzipCompressionStream
  4. sticker.tgs≤64 KB · telegram
source

Loading the lottie-web preview library…

telegram spec check

checks idle · awaiting animation.json

Passing every check does not guarantee acceptance. Telegram’s importer also refuses expressions, embedded images, and some mask and merge-path features that this page cannot inspect reliably. Always test the finished file with @Stickers before publishing a pack.

stage

stage empty · awaiting lottie json

Packing happens locally — the gzip step uses your browser’s CompressionStream API, so neither the JSON nor the .tgs file leaves this tab.

output

output empty · drop a lottie json to build sticker.tgs

Generate the sticker animation with AI

Describe the motion you want, get a Lottie animation back, then pack it here as a Telegram-ready .tgs sticker.

01format

How Telegram sticker files work

A .tgs file is not a separate animation format. It is a Lottie animation — the vector JSON that After Effects exports through Bodymovin, or that a Lottie generator produces — compressed with gzip and saved with a .tgs extension. Telegram's apps unpack that JSON and render the vector frames natively, which is why animated stickers stay sharp on any screen while weighing only a few dozen kilobytes.

Because the container is plain gzip, converting Lottie to TGS is packaging rather than re-encoding: no frame is rasterized and nothing is redrawn. What decides whether the sticker works is the animation inside it. Telegram's sticker requirements cap the canvas at 512 × 512 pixels, the duration at three seconds, the frame rate at 60 fps (30 fps is the other common choice), and the finished file at 64 KB after compression. This page measures all four and reports them before you download anything.

Canvas size
512 × 512 px exactly
Max duration
3 seconds
Frame rate
Up to 60 fps
Max file size
64 KB gzipped
02process

How to convert Lottie JSON to a TGS sticker

  1. 01

    Get the Lottie JSON

    Render a 512 × 512 composition with the Bodymovin plugin in After Effects, or generate a Lottie animation with an AI tool and download the JSON file.

  2. 02

    Drop the file into this page

    The animation is parsed, previewed, and packed straight away. Already-packed .tgs files work too — they are unpacked, validated, and repacked.

  3. 03

    Review the spec checks

    Canvas size, duration, frame rate, gzipped size, and embedded raster images are all reported. Fix anything flagged in amber back in your animation editor.

  4. 04

    Download the .tgs and send it to @Stickers

    Save the file, open @Stickers in Telegram, and send the .tgs as a file — not as a photo — to add it to a new or existing sticker pack.

Checked against the sticker spec

Canvas size, duration, frame rate, and the gzipped file size are each measured against Telegram's published limits and marked pass or warning.

Gzip runs in your browser

The .tgs is built with the native CompressionStream API — no upload, no queue, no account, and no watermark.

Repacks existing .tgs files

Drop a .tgs and the tool unpacks it, validates the Lottie inside, and packs it again — useful after hand-editing a sticker's JSON.

Warnings never block the export

If a check fails you still get the download. Telegram is the final judge, and testing a borderline file is usually faster than guessing.

03faq

Lottie to TGS — frequently asked questions

What is a .tgs file?

A .tgs file is Telegram's animated sticker format: a Lottie JSON animation compressed with gzip. The packaging really is that simple — the work is in meeting Telegram's limits on canvas size, duration, frame rate, file size, and which Lottie features the animation uses.

Why does Telegram reject my sticker even though every check passes?

The four numeric limits are only part of Telegram's requirements. Its importer also refuses expressions, embedded raster images, and certain mask, track-matte, and merge-path features, and it expects the animation to loop cleanly. Those restrictions cannot all be detected reliably from the JSON, so this page flags raster image assets and is upfront about the rest. The definitive test is sending the file to @Stickers.

How do I add the .tgs file to Telegram?

Open a chat with @Stickers, send /newanimated to start an animated pack (or /addsticker to extend one you already own), give it a name, then send the .tgs as a file rather than as a photo and reply with the emoji it should match. The bot returns a share link once the pack is published.

How do I get my animation under 64 KB?

The 64 KB limit applies after gzip, so the goal is less JSON. Delete hidden and unused layers, reduce the number of shapes and keyframes, simplify paths, shorten the animation, and avoid gradient-heavy artwork and long trim-path or merge-path stacks. Reusing one precomp instead of duplicating layers and rounding coordinates to fewer decimals both compress noticeably better.

Can I convert a GIF or a video to TGS?

No. TGS carries vector Lottie data, and recorded pixels cannot be turned back into clean vector shapes. Telegram supports a separate video sticker format (WebM with VP9 and alpha) for footage — use our GIF to Telegram sticker converter for that, and keep .tgs for animations authored as vectors.

Is my animation uploaded anywhere?

No. The file is read locally, previewed with lottie-web, and compressed with the browser's built-in CompressionStream('gzip') API. The animation JSON and the resulting .tgs never leave the tab — the only network request the page makes is loading the preview library from a CDN.

Found This Tool Helpful?

Share it with others in one click.

Share This Tool
Help others discover Lottie To Tgs.

Copy Link

Share on Social Media

Share via Email

Suggested hashtags: #VizGPT #DataTools #AITools