dotLottie to Lottie

Get plain Lottie JSON back out of a .lottie file. Drop the container in and every animation inside it is listed with a live preview, ready to download individually or all at once. Turn on re-inlining and any images the container carried are folded into the JSON as data URIs, so the result is a single self-contained file rather than a .json that renders with holes because the folder it expected is gone. It is deliberately tolerant: containers with a wrong or missing manifest still open, because plenty of files in circulation have one and play everywhere. Nothing is uploaded.

What comes out

OptionResult
Plain extractThe JSON exactly as it was packed
Re-inline imagesOne self-contained .json, larger
Download allA ZIP of every animation
No manifestStill opens, with a warning

When to use it

  1. Get JSON for a player or SDK that does not read .lottie.
  2. Extract an animation to edit its colours or optimise it.
  3. Recover the source JSON from a bundle you were sent.
  4. Pull one animation out of a multi-animation container.
  5. Produce a self-contained .json with its images inlined.

How to Use

  1. Drop in your .lottie file.
  2. Decide whether to re-inline images for a self-contained result.
  3. Preview each animation and download it, or download them all.

Features

  1. Reads every animation in the container
  2. Live preview of each one
  3. Image re-inlining as data URIs
  4. Manifest details, and tolerance when there is none
  5. Manifest ordering rather than zip ordering
  6. Individual or ZIP download
  7. Names anything it skipped and why
  8. Runs entirely in your browser

FAQs

Why would I want JSON instead of .lottie?

Because plenty of things still expect it: lottie-web on its own, older Android and iOS integrations, and most editing tools — including the colour editor and optimiser here. A .lottie is better for shipping; a .json is better for working on.

What does re-inlining images do?

Inside a container an image is a separate file the player resolves relative to the archive. A loose .json has no archive, so those references break. Re-inlining folds each image into the JSON as a base64 data URI, giving you one self-contained file. It makes the file larger — that is the trade.

My .lottie has no manifest. Will it still open?

Yes. The manifest is treated as a hint rather than a requirement: every JSON in the archive is read and checked regardless, and you are told the manifest was missing. Plenty of real files are like this and play fine everywhere.

What if there are several animations inside?

All of them are listed, each with its own preview and download, plus a download-all as a ZIP. They are shown in manifest order rather than the alphabetical order the zip enumerates in, so a two-animation bundle does not come out backwards.

Why was one of my files skipped?

Because it was valid JSON but not a Lottie — a settings file or a stray package.json, for instance. It is named in the warnings rather than handed to a renderer that would fail obscurely.

Is my file uploaded?

No. The zip is read in your browser.

Will the JSON be identical to the original?

Byte for byte, unless you turn on re-inlining, which by definition rewrites the asset entries. The animation data itself is untouched either way.

Technical Details

Unpacking is a zip read, and the interesting decisions are all about how strictly to trust what is inside. The manifest is treated as a hint rather than as truth: plenty of .lottie files in circulation were produced by tools that write an id the animation file is not actually named after, or that omit the manifest entirely, and those files play perfectly well in every dotLottie player. So every `*.json` in the archive other than the manifest is read regardless of what the manifest says, each is checked against the Lottie shape before being offered, and anything that is valid JSON but not an animation — a settings file, a stray package.json — is skipped with its name reported rather than handed to a renderer that would fail obscurely. The manifest is then used for the one thing it is reliable for: ordering. Zip entries enumerate alphabetically, which is not authoring order, so a two-animation bundle would otherwise come out backwards. The other half of the job is images. Inside a container an image asset is a relative path resolved against the archive; a plain `.json` handed to a player has no archive to resolve against, so extracting without doing anything about it produces an animation that renders with holes. Each entry under `images/` is read as base64, given the media type its extension implies, and folded back into the matching asset as a data URI with its `u` prefix cleared and `e` set to 1. The match is on the bare filename rather than the full path, because the folder inside the zip and the `u` prefix written in the JSON do not have to agree and frequently do not. Anything that cannot be matched is named rather than left as a silent gap. Everything runs in the page.

Lottie & Animation Tools

Lottie & Animation Tools

  • Lottie Player & Embed
  • Lottie Color Editor
  • Lottie JSON Editor
  • Lottie to MP4
  • Lottie to GIF
  • Animated SVG to Lottie
  • SVG to Lottie
  • Lottie to WebM