GIF to Lottie Converter
Turn an animated GIF into Lottie JSON in seconds. Choose size and quality, preview the result, download. Free, in your browser, nothing is uploaded.
- Price
- Free · no signup
- Output
- Lottie JSON
- Rating
- 4.9(18)
- Updated
Convert a GIF to Lottie
- 1Add GIF
- 2Settings
- 3Convert
- 4Download
Step 1 of 4 · Add GIF
On deviceRuns on your deviceTip: 320 to 480 px wide with WebP gives the best size to quality.
Your Lottie preview will appear here
It plays, loops and scrubs on this page. Then you download the JSON.
What is a GIF to Lottie converter?
A GIF to Lottie converter turns an animated GIF into a Lottie JSON file that plays in lottie-web, lottie-react, lottie-ios, lottie-android and dotLottie players. This one decodes every frame in your browser, stores each as a WebP or JPEG image inside the JSON, and keeps the original timing. Nothing is uploaded.
- 1Drop your GIF, then pick a max width and a format.
- 2Convert. Frames are rendered on your device.
- 3Preview the loop, then download the JSON.
What is Lottie JSON?
Lottie is an open animation format that stores an animation as JSON. One file plays natively on iOS, Android, React Native and the web through small player libraries, with control over speed, direction and looping.
Most Lottie files are vector. A file made from a GIF is different: each frame is an image embedded in the JSON, so it is a raster Lottie.
How the conversion works
- 01
Decode frames
Reads every GIF frame and its delay.
- 02
Scale
Resizes each frame to your max width.
- 03
Encode WebP or JPEG
Frames become compressed images. Identical frames are stored once.
- 04
Build Lottie
Stitches a 60 fps timeline with the original timing. It loops.
Privacy and client-side processing
Decoding, scaling, encoding and building all run in your browser tab. Your GIF is not sent to a server.
What it can and cannot do
Raster output, not editable vector. Up to 300 frames and 20 MB per GIF. Frame order and timing are preserved.
Last updated
Why convert GIF to Lottie?
Playback control
Play, pause, scrub, change speed and loop from code. A GIF only plays.
Caveat: you need a Lottie player library. A GIF works in a plain img tag.
Smaller than many GIFs when tuned
At 320 to 480 px with WebP, the JSON can beat a long, full colour GIF.
Caveat: it is often larger. Check the compare strip after you convert.
Crisp on retina
Each frame keeps full colour and, with WebP, real transparency. No 256 colour palette.
Caveat: pixels do not scale up. Pick a width for your largest display size.
One format across platforms
The same JSON plays on iOS, Android, React Native and the web.
Caveat: embedded image support varies by player version. Test on your target.
Free vs Pro
Free keeps everything you see on this page. Pro adds the things a professional hits a limit on. It is not live yet.
| Feature | Free · today | Pro · coming soon |
|---|---|---|
| Files per run | 1 | Many, batch |
| Max size | 20 MB | Above 20 MB |
| Max frames | 300 | Above 300 |
| Output formats | Lottie JSON | Lottie JSON and dotLottie (.lottie) |
| Batch + ZIP | Not included | Saved settings, one ZIP download |
| Processing location | Runs on your device | Optimised output: processed on our server, files deleted after processing |
| Price | Free, no signup | $6.99/mo or $69.99/yr |
Pro is coming soon. Join the waitlist from the card on the right. Billing is not live.
Tips for a smaller Lottie JSON
- 01
Use 320 to 480 px max width
Most embeds show the animation smaller than the source.
Why: JSON size grows with pixel count.
- 02
Use 80 to 85% WebP
WebP keeps transparency and shows little visible loss in this range.
Why: Above 90% the JSON grows fast for almost no visible gain.
- 03
JPEG only when there is no transparency
JPEG gives the smallest JSON.
Why: Transparent pixels turn white.
- 04
Trim and compress the GIF first
A tight crop and fewer idle frames mean fewer images to store.
Why: Open the GIF Compressor before you convert.
- 05
Fewer frames means smaller JSON
Each unique frame is one embedded image.
Why: Size follows the unique frame count.
Need a smaller source first? Open the GIF Compressor.
Frequently asked questions
Is this GIF to Lottie converter free?
Yes. It is free, needs no signup and adds no watermark. HuPNG Pro will add batch conversion and dotLottie export later. The single-file converter on this page stays free.
Is my GIF uploaded to a server?
No. Decoding, scaling, encoding and building the Lottie all run in your browser tab. You can confirm this in your browser’s network panel: nothing leaves the page.
Why is the Lottie JSON larger than my original GIF?
A GIF stores indexed colour pixels and only the parts that change. A Lottie from this tool stores each frame as a complete WebP or JPEG image inside the JSON. To close the gap, lower the max width, use 80 to 85% WebP and trim frames.
Which Lottie players work with this JSON?
lottie-web, lottie-react, lottie-ios, lottie-android, lottie-react-native and dotLottie players load it. Embedded image support varies by version, so test on the player version you ship.
What quality settings should I use?
WebP at 80 to 90% (default 85%) with a max width of 320 to 480 px. For JPEG, 60 to 75% is a good balance (default 60%).
Are there limits on file size or frame count?
Yes. One GIF per run, up to 20 MB and up to 300 frames. Above that you get an inline error with a link to trim or compress the GIF first.
Is GIF to JSON the same as GIF to Lottie?
Yes. A Lottie animation is a JSON file, so people search for both. The output is a .json file that Lottie players read.
How is this different from LottieFiles or After Effects?
After Effects with a Lottie exporter, and LottieFiles tools, work from design sources and produce vector animation. This converter works from a finished GIF and produces a raster Lottie. Use it when a GIF is all you have.
WebP vs JPEG and when to use each
The format decides two things: whether transparent pixels survive, and how big the JSON gets. WebP is the default because it keeps transparency and still compresses well. If the source has a busy background, cut it out first with the GIF Background Remover.
| Better quality (WebP) | Smaller file (JPEG) | |
|---|---|---|
| Transparency | Kept | Becomes white |
| JSON size | About 70% smaller than PNG | Smallest JSON |
| Quality slider | 50 to 99%, default 85% | 20 to 98%, default 60% |
| Sweet spot | 80 to 90% | 60 to 75% |
| Best for | Stickers, UI, logos, anything with alpha | Photo-like clips on a solid background |
| Default | Yes, recommended | No |
Where converted Lottie JSON is used
Mobile app animations
Onboarding and empty-state loops on iOS and Android, from a GIF you already have, with pause and loop control.
Web hero and loaders
Hero loops and loading states through lottie-web or lottie-react, scrubbed or paused from your own UI.
Marketing email and embeds
Use Lottie on landing pages and in-app embeds. Most email clients do not run Lottie, so keep the GIF for email.
Game and UI assets
Reaction stickers, button feedback and effect loops. WebP keeps the alpha channel.
Max width and frame count for manageable file size
JSON size follows pixels per frame times unique frames. Width is the lever with the biggest effect.
| Max width | Typical JSON size | Good for |
|---|---|---|
| 160 px | 0.1 to 0.3 MB | Icons, small stickers |
| 256 px | 0.2 to 0.6 MB | Buttons, avatars, loaders |
| 320 px | 0.3 to 1 MB | In-app illustrations |
| 480 px | 0.7 to 2.2 MB | Default. Cards and hero blocks |
| 640 px | 1.2 to 4 MB | Full-width mobile |
| 800 px | 2 to 6 MB | Large desktop embeds |
Illustrative ranges for a 60 frame GIF with WebP at 85%. Content and unique frame count change the result a lot. Your real size shows after you convert.
Raster vs vector: what GIF to Lottie output is
A GIF has no shapes to describe, only pixels. So the Lottie holds one image per unique frame and a timeline that shows them in order. It plays everywhere Lottie plays, but it is not editable vector.
Vector Lottie
Paths, fills and keyframes. Scales to any size, tiny files, editable in a design tool. Comes from After Effects or a vector source.
Raster Lottie, this tool
A WebP or JPEG per unique frame inside the JSON. Fixed pixel size, not editable, file size follows frames and pixels.
Privacy: your GIF never leaves your device
- Frames are decoded, scaled and encoded in your browser.
- The Lottie JSON is built in memory and handed to you as a download.
- Close the tab and it is gone. No account, no file history.
- The one planned exception is Pro Optimised output. It runs on our server, files are deleted after processing, and it is marked before you use it.
When to use Lottie vs a GIF or video
| GIF | Lottie, this tool | Video, MP4 or WebM | |
|---|---|---|---|
| Playback control | None | Play, pause, scrub, speed, loop | Player controls |
| Colour | 256 colours | Full colour per frame | Full colour |
| Transparency | 1 bit | Full alpha with WebP | WebM with alpha only |
| Typical size | Large | Often larger, smaller when tuned | Smallest |
| Plain img tag | Yes | No, needs a player | No, uses video tag |
| Best for | Email, chat, quick shares | Apps and pages that need control | Long or photographic clips |
GIF to JSON: same output, different search term
People search for GIF to JSON when they want Lottie. The file this tool downloads is a .json that Lottie players read, so the two searches lead to the same converter. It is not a generic JSON dump of pixel data.
- gif to lottie
- gif to json
- gif to lottie json
- gif to dotlottie
Using the JSON in React, iOS and Android
Add the player library for your platform, drop the file in, and point at it.
import Lottie from "lottie-react";
import loaderSpin from "./loader-spin.json";
export function Loader() {
return <Lottie animationData={loaderSpin} loop autoplay />;
}import Lottie
let view = LottieAnimationView(name: "loader-spin")
view.loopMode = .loop
view.play()val view = LottieAnimationView(context)
view.setAnimation("loader-spin.json")
view.repeatCount = LottieDrawable.INFINITE
view.playAnimation()import LottieView from "lottie-react-native";
<LottieView source={require("./loader-spin.json")} autoPlay loop />This converter vs LottieFiles and After Effects
| This converter | LottieFiles | After Effects | |
|---|---|---|---|
| Starts from | A finished animated GIF | Lottie files, design imports | Your own compositions |
| Output | Raster Lottie JSON | Hosted, edited Lottie | Vector Lottie via an exporter |
| Runs where | Your browser tab | Their web platform | Desktop app |
| Editable vector | No | Depends on the source | Yes |
| Cost | Free, no signup | Check their pricing | Adobe subscription |
Use this tool when a GIF is all you have. Use the others when you can rebuild the animation as vector.
Related workflows: convert, compress and prepare assets
- 3 · ConvertGIF to LottieYou are here.
Related tools
Support HuPNG
Rate GIF to Lottie — it helps others find a private, free tool.
Free forever for everything above. About HuPNG Pro