Why convert TGS to SVG?
The main reason to target .svg is when you need a static vector version of a Telegram sticker - for use in a design file, to scale it without quality loss, or to embed scalable artwork in a document.
How to convert TGS to SVG
python-lottie OPEN-SOURCE
Install with pip install lottie and run lottie_convert.py input.tgs output.svg to export the first frame as an SVG vector image.
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 →An SVG file is a Scalable Vector Graphics image - a W3C open standard that stores 2D graphics as XML text, so it scales to any size without losing quality. Any modern web browser opens it…
Open .SVG details →Quality & what to watch
- The animation is lost - TGS contains multiple keyframed frames, but only one still frame can be exported to SVG.
- python-lottie may not support every Lottie feature a given
.tgsuses; complex layer effects or masks may render incorrectly or be omitted. - If you need the motion rather than a still, convert to GIF, WebP, or MP4 instead.
Frequently asked questions
Can SVG preserve the Lottie animation from a TGS file?
Which frame does python-lottie export by default?
lottie_convert.py --help for options to specify a different frame.Do I need to decompress the TGS before using LottieFiles?
.tgs to .json.gz and extract it with 7-Zip or gunzip to get a plain Lottie .json that LottieFiles can open.