Upload your Lottie JSON files and Lottiemizer will make them smaller without changing how they look. Before you download anything, you can compare the original and optimized animation side by side.
Upload up to 20 files at once (20 MB limit per file), then download the optimized .json, the .lottie version, or everything as a zip.
Lottie Optimization
A Lottie file is an animation stored as JSON, usually exported from Adobe After Effects with the Bodymovin plugin or downloaded from an animation library. The player draws it as vector shapes in real time, so it stays sharp at any size. Exports are rarely as small as they could be, though.
What makes Lottie files large?
Much of an exported file isn't animation at all. Every layer, shape and property keeps its After Effects name, along with match names and indexes the player never reads. Numbers are written with far more decimal places than a screen can show. Hidden layers, unused assets and keyframes that never change the value add more, and embedded PNG images are often not compressed as well as they could be. Lottiemizer removes or shrinks all of this and leaves the animation itself alone.
Why does file size matter?
On a website, the JSON has to download and be parsed before the animation can play, so a heavy file delays it and adds to the page weight, especially on mobile connections. In an app, every animation adds to the download size. How much you save depends on the file: animations with many layers and detailed paths usually shrink the most, while files that are mostly embedded images shrink less, because PNGs are only recompressed without losing quality.
Should you use JSON or dotLottie?
That depends on where the animation is going, so Lottiemizer gives you both. The optimized .json is a good choice for the web. Served with gzip or Brotli compression, which most servers and CDNs support, it gets very small and plays in any Lottie player. The .lottie (dotLottie) file is a zipped version of the animation. It's smaller to store and ship because it doesn't rely on server compression, and it keeps images as separate files instead of embedding them as text. It's supported by the dotLottie players and newer Lottie players. If you're not sure, use the .json for websites and the .lottie for apps or anywhere the file is stored or sent as it is. Read more about converting Lottie JSON to .lottie.
How does the Lottie optimizer work?
The optimizer removes data that players don't need, such as names and metadata, and rounds numbers to a sensible precision. The rounding depends on context, so values that need more precision keep it and the animation doesn't break. Anything that expressions depend on is left in place, and embedded PNG images are recompressed losslessly. Every rule is tested against hundreds of real animations, rendered before and after, to make sure they look identical. The result is a smaller file that loads faster and looks the same. See what Lottiemizer changes and what it leaves alone for the full list.
Using the Lottie Optimizer
Click “Upload Files” or drop your Lottie files onto the page. You can upload up to 20 files at once, up to 20 MB each.
Your files are compressed in the browser, uploaded and optimized on our server. You can follow the progress of each file as it goes.
Each result shows the size before and after and what changed. Use “Preview” to compare the original and optimized animation side by side. To just play a file and check its size and frame rate without uploading it, open it in the Lottie viewer.
Download the optimized .json or the .lottie version of each file, or use “Download all” to get everything in one zip.
Ready to go again? Hit “Clear Queue” and start over. You can use the tool as many times as you like, for free.
Is it safe to optimize Lottie files?
Yes. Your original files stay untouched on your device. The copy you upload is used only to optimize it and is deleted as soon as processing finishes. Optimized results are kept for a short time so you can download them, and are deleted automatically after 24 hours. If you're not happy with a result, you can simply try again.