About
A file you can open
Last updated 26 November 2026
A Lottie animation is not a video. It is a JSON document that says where a shape goes and when, so a player can draw it at any size and any frame rate. This page opens that document, plays it, changes it, and gives it back.
How the file is read
The JSON is read by the browser's own parser. When it is malformed the page names the line and the column, because the parser's message says what went wrong but not where. When it parses but has no layers, no width, no height, no out point or no frame rate, the page refuses it and names the field that is missing rather than drawing an empty box.
A file that parses is copied once, and that copy is what the page draws. The palette and the layer switches are applied to fresh copies of that same document, so pressing the original colours button always returns to the file as it arrived.
How the palette finds every colour
Six places hold a colour: a shape fill, a shape stroke, a gradient's stop list, a solid layer's hex string, and the fill and stroke colours of a text document. Each of those can be a still value or a list of keyframes with a start and an end value. The walk covers all six and both forms, in the main timeline and inside any precomposition.
The palette groups by red, green and blue, counts each occurrence, and keeps the alpha of each one separately. A replacement writes new numbers into every occurrence of the old colour and leaves the rest of the array alone, so a colour that fades does not become opaque.
The player
The player is lottie-web 5.13.0 under the MIT licence, in its canvas build without the expression engine, served from this domain as one file. It draws shape layers, paths, masks, gradients, images that are carried inside the file, and precompositions. It does not evaluate expressions and it does not have the SVG filter effects, which are not part of a canvas. A file that uses expressions is drawn without them and the page says so above the stage.
The optimiser
Every option removes a part a player does not read: the meta block, markers, name fields, assets no layer refers to, the font list when there is no text layer, and decimals below the place you choose. Each step is measured separately on the JSON as it stands, with your colours already in it, so the number on screen is the number you will download.
The original document is never edited. The lighter file is a copy, and the download starts from that copy.
The exports
A frame is drawn by a second player instance at one, two or three times the file's size, then painted on a canvas with the background you chose. A sprite sheet does the same for evenly spaced frames on a grid, with the columns you ask for. Both exports run from a hidden copy so the stage keeps its own frame and its own clock.
Where it stops
- It does not edit keyframes, paths or shapes. It reads them and changes colours.
- It cannot open a .lottie file, which is a zip. Unzip it and drop the animation JSON inside.
- Images that load from an address outside the file are not fetched, because the page sends no request. The warning above the stage counts them.
- A very large file is played but its text is not printed in the source box, to keep the page responsive.
- A sprite sheet lives in memory before it is saved. A sheet of sixty frames at three times the size of a large animation may be refused by the browser first.
Who made it
Pikkola Lab builds small tools that keep the work in the browser. This is tool No. 70. Write to hello@pikkola.com with a file that reads badly and say which part looks wrong.