TGS JSON
File conversion

Convert TGS to JSON

QUICK ANSWER
Is it possible to convert TGS to JSON?
Yes - TGS converts to JSON.

A .tgs file is a standard Lottie JSON animation wrapped in gzip compression. Extracting the JSON is pure decompression with no data loss. The quickest method on Windows is to rename the file and extract with 7-Zip; on macOS or Linux, gunzip works in one command.

Also to JSON: BDOB · EXPRESS · REPLIT

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert TGS to JSON?

Sticker creators and developers extract the Lottie .json to inspect or edit the animation - adjusting timing, layers, or colours - or to re-package the sticker for a different platform or Lottie player.

How to convert TGS to JSON

7-Zip OPEN-SOURCE

Rename the .tgs file to .json.gz, right-click and choose 7-Zip > Extract here; the extracted file is the Lottie JSON.

gunzip FREE

Run cp sticker.tgs sticker.json.gz && gunzip sticker.json.gz in a terminal to decompress and produce sticker.json.

python-lottie OPEN-SOURCE

Install with pip install lottie and run lottie_convert.py sticker.tgs sticker.json; python-lottie handles the gzip step automatically.

About these formats

Quality & what to watch

  • This is lossless decompression - every vector shape, keyframe, and timing value is preserved exactly; nothing is re-encoded.
  • The output is Lottie-format JSON (keys such as v, fr, ip, op, layers); a Lottie player or editor is needed to render the animation, not just a text editor.
  • The decompressed JSON is typically 100-300 KB compared to the 20-30 KB .tgs - the increase is expected from removing gzip compression.

Frequently asked questions

Is anything lost when converting TGS to JSON?
No - it is lossless decompression; every vector shape, keyframe, and timing value is preserved exactly.
Can I open the resulting JSON in a text editor?
Yes, but you will see raw Lottie animation data; to preview the animation you need a Lottie player such as LottieFiles.
What do Telegram's sticker constraints look like in the JSON?
The 512x512 canvas and frame rate appear as the w, h, and fr fields; the duration is encoded in ip and op.