Convert Lottie JSON to .lottie

Upload Lottie JSON files and download each one as a .lottie (dotLottie) file. The animation is optimized first, so the .lottie is as small as it can be. Free, no sign-up.

Drop your files here

Lottie JSON files, up to 20 MB each

Preview

Original
Optimized
0 / 0

Space: play/pause · ← →: step frames · Esc: close

What is a .lottie file?

A .lottie file, also called dotLottie, is a zip archive that holds a Lottie animation together with a small manifest and any images it uses. The format was created by LottieFiles and is open for anyone to use. Because it's zipped, a .lottie is usually much smaller than the same animation as plain JSON, and images are stored as normal image files instead of long base64 text inside the JSON.

Should you use .lottie or JSON?

Use .lottie when:

  • the file is stored or sent as it is, for example bundled in a mobile app, uploaded to a CMS or attached to a message
  • your server or CDN doesn't compress JSON with gzip or Brotli
  • the animation has embedded images, which take up about a third more space as base64 text

Stick with JSON when:

  • your player only reads JSON, like lottie-web
  • you want to open and edit the file
  • your server already compresses JSON, in which case a .json and a .lottie download at about the same size

Lottiemizer gives you both from one upload, so you don't have to decide up front.

How the conversion works

  1. The JSON is optimized with the same rules as the Lottie optimizer: names and metadata players don't use are removed and numbers are rounded, without changing how the animation looks.
  2. Embedded images are taken out of the JSON and saved as files in an images folder. PNG images are recompressed losslessly first. Other images are kept as they are.
  3. The animation, the images and a manifest.json are zipped into a dotLottie 1.0 file. The manifest sets the animation to loop and play automatically. Most players let you change that when you embed it.

Playing .lottie files

You need a player that supports dotLottie. On the web, that's the LottieFiles dotlottie-web player and its React and Vue components. LottieFiles also has dotLottie players for Android and iOS, and lottie-ios 4 and later can open .lottie files too. lottie-web can't read .lottie files, so use the .json with it.

Turning a .lottie back into JSON

A .lottie is a normal zip file. Rename it to .zip and open it: the animation is in animations/animation.json and the images are in the images folder. If you need a single JSON file with the images embedded, download the optimized .json from Lottiemizer instead.

Limits and privacy

You can convert up to 20 files at a time, up to 20 MB each. Uploaded files are deleted right after processing, and the .json and .lottie results are deleted after 24 hours. Read more about what happens to your files.