Lottie Optimizer

Cut a Lottie's file size without changing what it looks like. Most of the weight is decimal places nobody can see — After Effects writes bezier handles at full double precision, so a point arrives as 1.2345678912345678 where 1.235 renders identically. Rounding those, dropping editor-only names, removing hidden layers and deleting assets nothing references typically takes a third to two-thirds off. The original and the result play side by side so you can check the parity rather than take it on trust, and the two cases where a naive optimiser breaks an animation — a hidden layer other layers are parented to, and an asset referenced only from inside a precomp — are handled and reported. Nothing is uploaded.

Where the savings come from

PassTypical savingRisk
Round to 3 decimalsLargeNone at 3+
Remove editor namesSmall to mediumNone without expressions
Remove hidden layersVariesNone — parents are kept
Remove unused assetsVariesNone — precomps are followed
Pack as .lottieVery largeNone

When to use it

  1. Get a hero animation under a performance budget.
  2. Shrink a Lottie before committing it to a repository.
  3. Clean an After Effects export before handing it to developers.
  4. Reduce the payload of an animation used in an email or ad.
  5. Strip editor names from a file going to a client.

How to Use

  1. Drop in your Lottie JSON or .lottie file.
  2. Choose a precision and which passes to run.
  3. Compare the two previews, then download.

Features

  1. Precision rounding with a live size readout
  2. Editor name removal, skipped when expressions need them
  3. Hidden layer removal that respects parenting
  4. Transitive unused-asset detection through precomps
  5. Side-by-side original and optimised preview
  6. Download as JSON or as a compressed .lottie
  7. Reports what it did and what it deliberately did not
  8. Runs entirely in your browser

FAQs

Will it change how the animation looks?

At the default three decimal places, no — that is finer than a pixel at any size anyone views these at. Below two it starts to show on large, slow movements. The side-by-side preview is there so you check rather than assume, and the tool warns when you drop into the range where it matters.

How much smaller will my file get?

Usually a third to two-thirds, occasionally more. It depends entirely on what is in the file: a shape-heavy export with long bezier paths has enormous precision waste, while a file that is mostly an embedded image has almost none, because the image is base64 and rounding does not touch it.

Is it safe to remove hidden layers?

Usually, and this tool checks the case where it is not. A visible layer can be parented to a hidden one and inherit its transform, so deleting the hidden parent drops the children to the origin. Hidden layers something is parented to are kept, and you are told how many.

Why are my layer names still there?

Because your file has expressions in it. An expression can look up a layer by name, so removing names would break it. Files with no expressions get their names stripped.

Should I remove expressions?

Only if you know the animation does not depend on them, and that option is off by default for that reason. Expressions are behaviour, not size — removing them can stop an animation moving at all, which is a different thing from making it smaller.

Is my animation uploaded?

No. It is parsed, transformed and previewed in your browser.

Should I also convert to .lottie?

Almost certainly. A .lottie container is a zip, and Lottie JSON is repetitive text that deflates to roughly a fifth of its size — usually a much bigger win than the optimisation itself. Do both: optimise, then pack.

Can it undo the optimisation?

No. Rounding throws information away permanently, so keep your original export. The download is a new file; nothing on your disk is changed.

Technical Details

Most of a Lottie's weight is decimal places nobody can see. After Effects exports bezier handles and transform values at full double precision, so a single control point arrives as 1.2345678912345678 when 1.235 renders identically at any size anyone will view it — and a file with ten thousand of those numbers is carrying tens of kilobytes of noise. Rounding every number to three decimal places is therefore the single largest win, and it is applied by a deep walk that also normalises negative zero, which serialises as "-0" for one byte more than "0" and exactly the same value. Three further passes matter, and two of them have a trap that a naive optimiser falls into. Hidden layers never render, so removing them is free — unless a visible layer is parented to one. Parenting points at a layer's index, and a child inherits its parent's transform whether or not the parent draws anything, so deleting a hidden parent drops every child back to the origin. Hidden layers that something is parented to are kept, and the tool says how many and why. Unused assets are likewise free to remove, but the reference walk has to be transitive: a precomp asset is itself a list of layers that can reference further assets, so a single pass over the top-level layers marks a nested image as unused and deletes a frame of the animation. The walk follows precomps and guards against an asset that references itself, because malformed exports exist and an infinite loop inside a size optimiser is a hung tab. Editor names are the third: `nm` and `mn` are After Effects bookkeeping that no player reads — except that an expression can look a layer up by name, so if the file contains any expression the names are kept rather than risked, and that is reported rather than done quietly. Expressions themselves are only removed when explicitly asked, because that changes behaviour rather than size. The original and the optimised file are rendered side by side with lottie-web so the result is checked rather than assumed. Everything happens in the page.

Lottie & Animation Tools

Lottie & Animation Tools

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