Skip to main content

MP4 to Lottie Converter

Convert MP4, WebM and MOV clips to Lottie JSON — in your browser, no upload.

Local0 bytes uploadedFree, no signup

Convert MP4 to Lottie

No video loadedOutput: Lottie v5 JSON

Tip: trim long clips after loading — 300 frames free.

Start from a preset

UI loader / icon8 fps · 320 px · WebP 80Hero loop15 fps · 480 px · WebP 85Smooth / HQ24 fps · 640 px · WebP 90
Quick answer

What is MP4 to Lottie?

MP4 to Lottie turns a short video clip into a Lottie JSON animation. The converter captures frames from your MP4, WebM or MOV file at the FPS you choose, encodes them as WebP or JPEG, removes duplicate frames and packs them into a Lottie v5 file that any Lottie player can run — all inside your browser.

  1. 1Drop your MP4, WebM or MOV into the converter.
  2. 2Pick a preset, or set FPS, width and quality.
  3. 3Convert, then download the Lottie JSON.

How it works

  1. 01

    Load

    The video loads into a browser video element. Nothing is uploaded.

  2. 02

    Frames

    Frames are captured by seeking on a canvas at your chosen FPS.

  3. 03

    Encode

    Frames are encoded as WebP or JPEG at your quality, and duplicate frames are removed to cut size.

  4. 04

    Lottie

    A Lottie v5 JSON is assembled with the frames embedded as assets.

Privacy and client-side processing

All frame extraction and encoding runs in your browser using the native HTML5 video and canvas APIs. The video file is never sent to a server, which makes the tool suitable for confidential or proprietary footage — internal product demos, unreleased features, corporate presentations — without any upload risk.

How this converter works

An HTML video element for decoding, Canvas for frame capture, the browser's WebP/JPEG encoders, hash-based duplicate removal, and a Lottie v5 writer with one image asset per unique frame.

Last updated

Free vs Pro for MP4 to Lottie

Everything in the Free column works today, with no account. Pro is coming soon and adds to it — nothing free is removed.

FeatureFree · todayPro · coming soon
InputMP4, WebM, MOV, OGG up to 200 MBSame, plus 4K sources
Clip lengthUp to 300 framesBeyond 300 frames
Frame rate5–30 fpsUp to 60 fps
Max width200 px to originalSame
EncodingWebP 50–99% · JPEG 40–98%Plus Vector trace mode
OutputLottie JSON (v5)Plus .lottie (dotLottie), typically 60–80% smaller
SizingManual settings with live size estimateSize target: “make it under N KB”
BatchOne file at a timeA whole folder at once
Presets3 built-in presetsSave your own
Processing100% in your browserIn your browser; Vector trace and Size target are processed on our servers, deleted within 60 minutes
PriceFree, no signup$6.99/mo or $49/yr

Tips for best results

  • 01

    Keep clips short

    Frame limits shrink as FPS rises.

    Why: 300 frames is 30 s at 10 fps, 10 s at 30.

  • 02

    8–10 fps for UI

    For loaders, transitions and icons.

    Why: Smooth enough, at a fraction of the frames.

  • 03

    Cap width at 320–480

    Most UI slots never need more.

    Why: Pixels per frame drive file size.

  • 04

    WebP at 80–85%

    Near-lossless frames.

    Why: Small size without visible artifacts.

  • 05

    Trim first

    Convert only the part you need.

    Why: Every extra second costs frames and KB.

Frequently asked questions

How do I convert MP4 to Lottie JSON?

Drop your MP4 (or WebM, MOV, OGG) into the converter, trim the clip with the start and end handles, choose FPS and output quality (WebP recommended), then click Convert to Lottie. The tool extracts frames at the selected FPS, compresses them as WebP or JPEG, and builds a standard Lottie v5 JSON file for download.

Is this MP4 to Lottie converter free?

Yes, completely free with no subscription, watermark, or account required.

What video formats are supported?

MP4 (H.264), WebM, MOV (QuickTime), and OGG video are supported, up to 200 MB. MP4 (H.264) has the widest browser support and is recommended.

Is my video uploaded to a server?

No. All processing runs entirely in your browser. Your video is never sent to any server, so it stays completely private.

Why is the Lottie JSON so large?

Video frames are captured as WebP or JPEG images embedded in the JSON. Use a smaller max width (320–480px), lower FPS (8–10), and WebP at 80–85% quality to significantly reduce output size. A 5-second clip at 10 fps, 480px, WebP 85% is typically under 2 MB.

Which Lottie players are compatible?

The output is standard Lottie v5 JSON, compatible with lottie-web, lottie-react, lottie-react-native, lottie-ios, lottie-android, @lottiefiles/dotlottie-web, and the LottieFiles web player.

What FPS should I use?

8–10 fps works well for UI animations, loaders, and icon animations. Use 15–24 fps for smoother motion or fast-moving content. Higher FPS means more frames and a larger Lottie JSON.

How long can my clip be?

Up to 300 frames. At 5 fps that is 60 seconds; at 10 fps it is 30 seconds; at 30 fps it is 10 seconds. The tool shows the maximum clip length for your selected FPS before you convert.

Is "MP4 to JSON" the same thing as "MP4 to Lottie"?

Yes — Lottie animations are stored as JSON files, so converting MP4 to JSON and MP4 to Lottie describe the same output. This tool produces a standard Lottie JSON file that any Lottie player can load.

How is this different from LottieFiles or After Effects?

LottieFiles and Bodymovin are built around vector Lottie authored in After Effects — they don't accept a raw video file as input. This tool decodes your MP4 directly in the browser and produces a working raster Lottie JSON in seconds, without importing or rotoscoping footage in After Effects.

Guide

Everything about converting video to Lottie — settings, size, code and fixes.

How to convert MP4 to Lottie JSON

  1. 1

    Load your clip

    Drop an MP4, WebM, MOV or OGG file (up to 200 MB) onto the workspace, or press Browse.

  2. 2

    Trim to the part you need

    Drag the start and end handles. The frame budget shows how close you are to 300 frames.

  3. 3

    Choose a preset or settings

    Pick FPS, max width, WebP or JPEG and quality. Watch the size estimate as you go.

  4. 4

    Convert

    Press Convert to Lottie. Progress is shown frame by frame, and you can cancel at any time.

  5. 5

    Download and use

    Compare the original and the Lottie side by side, download the JSON, and copy the snippet for your platform.

MP4 to Lottie conversion: use cases, FPS, and file size guide

When to convert MP4 to Lottie instead of using video

Video files (MP4, WebM) are optimal for long-form content, but for short UI animations — loaders, success states, empty-state illustrations, onboarding steps — Lottie JSON is the better choice. Lottie can be controlled programmatically (pause, reverse, set speed, seek to frame), scales without pixelation on high-DPI displays, and integrates cleanly into React, Vue, Swift, and Kotlin without a separate video player component. If you need to animate an existing video clip inside an app and the clip is under 10–15 seconds, converting to Lottie via this tool is a practical workflow. For anything longer, keep using video.

Choosing the right FPS for your animation

FPS determines how many frames are extracted per second, directly affecting both smoothness and output JSON size. For slow-moving transitions or icon animations, 8–10 fps is almost always sufficient. For product demos or motion graphics with fast movement, 15–24 fps keeps it smooth. 30 fps matches standard video but limits your clip to 10 seconds and produces the largest JSON. As a rule of thumb: start at 10 fps and only go higher if you see noticeable stuttering in the Lottie preview. You can always re-convert at a higher setting.

Best MP4 to Lottie settings by use case

Use caseFPSMax widthFormatWhy
UI loader / icon8320 pxWebP 80Small, loops cleanly
Transition / micro-interaction10400 pxWebP 80Short and frequent
Hero loop15480 pxWebP 85Large slot, smooth loop
Smooth / high quality24640 pxWebP 90Fast motion, demos

MP4 to Lottie file size guide

size ≈ seconds × fps × bytes per frame − duplicates

Controlling output file size

The output JSON size is mainly determined by three factors: number of frames (FPS × clip duration), frame dimensions (max width setting), and per-frame compression (WebP/JPEG quality). Halving the max width cuts per-frame data to roughly a quarter (area scales quadratically). Reducing FPS from 15 to 10 cuts frame count by 33%. WebP at 85% vs PNG is typically 50–70% smaller per frame. Combined, these levers can reduce a naive conversion from tens of megabytes to under 1 MB for a short loop. The frame deduplication step also helps for clips that have still or near-still sections — identical encoded frames share a single asset in the JSON. You can check the estimated size live in the converter before you convert.

Reference point: a 5-second clip at 10 fps and 480 px is typically under 2 MB. Still too big? Run it through the Lottie Optimizer — recompressing embedded frames and trimming precision typically cuts 20–60% off the size before shipping.

Use the Lottie JSON in React, iOS, Android and React Native

Using converted Lottie in React, iOS, and Android

Once you have the JSON, drop it into your project. In React use lottie-react; in React Native use lottie-react-native; for iOS (Swift) use the lottie-ios package; for Android (Kotlin/Java) use lottie-android. All of these accept a local JSON file — no internet required at runtime. The embedded WebP/JPEG frames are decoded by the Lottie renderer the same way it would handle any image asset.

Dropping the JSON into React, iOS, and Android

Once downloaded, the JSON works directly with the standard Lottie SDKs — no extra conversion step:

import Lottie from "lottie-react";
import converted from "./converted.json";

export function Loader() {
  return <Lottie animationData={converted} loop autoplay />;
}

If the JSON is too large for a mobile bundle, run it through the Lottie Optimizer first.

MP4 to JSON explained

MP4 to JSON: same output, different search term

If you searched "MP4 to JSON" instead of "MP4 to Lottie," you landed in the right place — a Lottie animation is a JSON file following a specific animation schema. Whichever term you use, this converter produces the same result: a standard .json file with your video's frames embedded, ready for any Lottie-compatible player.

MP4 to Lottie vs After Effects and LottieFiles

This converter vs. LottieFiles and After Effects

This converter

It decodes the MP4 directly in your browser and produces a working (raster) Lottie JSON in the time it takes to click Convert. It's the right tool for converting existing video into Lottie.

After Effects / LottieFiles

LottieFiles' tools and Bodymovin are built around vector Lottie authored in After Effects — they don't take an arbitrary video file as input. Turning footage into Lottie that way means rotoscoping or tracing every frame — hours of manual work for a ten-second clip. After Effects remains the standard for authoring new vector animation.

Troubleshooting

Common problems and fixes

Output JSON is too large
Lower FPS to 8–10 and max width to 320–480 px — both compound to cut size dramatically. Use WebP at 80%, then run the Lottie Optimizer.
Animation looks choppy
Raise FPS to 15–24 for smoother motion, accepting a larger file, and keep the clip within 300 frames.
Colors look off or banded
Raise WebP quality above 80% — low settings can introduce banding on gradients. JPEG is lossier than WebP.
Video won’t load at all
Confirm it’s MP4 (H.264), WebM, MOV, or OGG — other containers or codecs like ProRes aren’t decodable by browsers. Re-export as H.264 MP4.

Support HuPNG

Rate MP4 to Lottie — it helps others find a private, free converter.

Free forever for everything above. About HuPNG Pro