Skip to main content

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.

Local0 bytes uploadedFree, no signup

Convert a GIF to Lottie

Step 1 of 4 · Add GIF

On device

Tip: 320 to 480 px wide with WebP gives the best size to quality.

Free: 1 GIF per run · 20 MB · 300 frames
Quick answer

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.

  1. 1Drop your GIF, then pick a max width and a format.
  2. 2Convert. Frames are rendered on your device.
  3. 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

  1. 01

    Decode frames

    Reads every GIF frame and its delay.

  2. 02

    Scale

    Resizes each frame to your max width.

  3. 03

    Encode WebP or JPEG

    Frames become compressed images. Identical frames are stored once.

  4. 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.

FeatureFree · todayPro · coming soon
Files per run1Many, batch
Max size20 MBAbove 20 MB
Max frames300Above 300
Output formatsLottie JSONLottie JSON and dotLottie (.lottie)
Batch + ZIPNot includedSaved settings, one ZIP download
Processing locationRuns on your deviceOptimised output: processed on our server, files deleted after processing
PriceFree, 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)
TransparencyKeptBecomes white
JSON sizeAbout 70% smaller than PNGSmallest JSON
Quality slider50 to 99%, default 85%20 to 98%, default 60%
Sweet spot80 to 90%60 to 75%
Best forStickers, UI, logos, anything with alphaPhoto-like clips on a solid background
DefaultYes, recommendedNo

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 widthTypical JSON sizeGood for
160 px0.1 to 0.3 MBIcons, small stickers
256 px0.2 to 0.6 MBButtons, avatars, loaders
320 px0.3 to 1 MBIn-app illustrations
480 px0.7 to 2.2 MBDefault. Cards and hero blocks
640 px1.2 to 4 MBFull-width mobile
800 px2 to 6 MBLarge 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

GIFLottie, this toolVideo, MP4 or WebM
Playback controlNonePlay, pause, scrub, speed, loopPlayer controls
Colour256 coloursFull colour per frameFull colour
Transparency1 bitFull alpha with WebPWebM with alpha only
Typical sizeLargeOften larger, smaller when tunedSmallest
Plain img tagYesNo, needs a playerNo, uses video tag
Best forEmail, chat, quick sharesApps and pages that need controlLong 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 />;
}

This converter vs LottieFiles and After Effects

This converterLottieFilesAfter Effects
Starts fromA finished animated GIFLottie files, design importsYour own compositions
OutputRaster Lottie JSONHosted, edited LottieVector Lottie via an exporter
Runs whereYour browser tabTheir web platformDesktop app
Editable vectorNoDepends on the sourceYes
CostFree, no signupCheck their pricingAdobe subscription

Use this tool when a GIF is all you have. Use the others when you can rebuild the animation as vector.

Support HuPNG

Rate GIF to Lottie — it helps others find a private, free tool.

Free forever for everything above. About HuPNG Pro