Why convert TGS to LOTTIE?
Sticker creators want the editable Lottie source to tweak the animation in tools such as LottieFiles or re-export it for a non-Telegram platform. Developers building other apps need the raw Lottie JSON so their Lottie player can load it directly.
How to convert TGS to LOTTIE
7-Zip OPEN-SOURCE
Rename sticker.tgs to sticker.tgs.gz, right-click and choose 7-Zip > Extract here, then rename the output to sticker.lottie.
gunzip FREE
Run cp sticker.tgs sticker.json.gz && gunzip sticker.json.gz in a terminal; rename the result to .lottie if the target tool requires that extension.
python-lottie OPEN-SOURCE
Install with pip install lottie and run lottie_convert.py sticker.tgs sticker.json; rename to .lottie for tools that require that extension.
About these formats
A TGS file is a Telegram animated sticker - gzip-compressed Lottie vector animation, typically 20-30 KB. No desktop app opens it by double-click; it plays natively in Telegram. On a PC,…
Open .TGS details →A .LOTTIE file is a data file used by specific software.
Open .LOTTIE details →Quality & what to watch
- No quality loss occurs - this is lossless decompression; every vector shape, keyframe, and layer is preserved exactly.
- The only structural difference between a
.tgsand a plain Lottie JSON is the gzip wrapper; the GZIP magic bytes at offset 0 mark the compression. - Telegram's constraints (512x512 canvas, frame rate, duration) are reflected in the JSON fields
w,h,fr, andopand remain in the file after decompression.
Frequently asked questions
Is there a difference between a .lottie file and the JSON extracted from a .tgs?
.lottie extension is used by some modern tools and may imply a dotLottie package format; if a tool expects plain JSON, use the .json extension instead.Can I re-upload the extracted Lottie JSON as a Telegram sticker?
.tgs (gzip the JSON) before uploading.