Lottie Color ChangerEdit JSON Colors, No After Effects

Load a Lottie JSON file and the tool lists every color it uses. Replace them with a color picker or hex codes, check the result in the live preview, and download the edited JSON.

Your input is never sent anywhere.

Details

Load a Lottie JSON file and the preview appears here

Files are read in your browser and are not uploaded.

How to Change Colors in a Lottie JSON File Without After Effects

Lottie is a compact animation format, but swapping one color usually means reopening the project in After Effects and exporting again with Bodymovin, or editing the 0 to 1 RGB numbers in the JSON by hand. That is a lot of work for a brand color tweak.

This tool reads your Lottie JSON and lists every color it finds, so you can replace each one with a color picker or a hex code. It covers fills, strokes, gradient color stops, keyframed colors, solid layer backgrounds, and text colors, including colors inside precompositions. Changes show up in the preview as you make them.

Alpha values are left untouched, so semi-transparent shapes stay semi-transparent. You can switch the preview between transparent, white, and black backgrounds to check dark mode, or apply a brand color to every color at once. Files are processed in your browser and are not uploaded.

When You Need to Recolor a Lottie File

Matching a free animation to your brand

Download a Lottie animation from a library and change its palette to your app or site colors in a few clicks. The brand color option recolors every color in one step.

Making a dark mode version

Switch the preview to a black background, adjust colors that blend in, and download a second JSON file for your dark theme.

Working without After Effects

Developers and product managers can change colors in the browser without an After Effects license or a trip back to the designer.

Avoiding hand edits in the JSON

No searching for RGB arrays in a text editor, and no broken commas or brackets that make the animation stop rendering.

Trying color variations for a prototype

Tune the colors to match the surrounding UI, then export several versions of the JSON to compare side by side.

Recolor an Animation in 4 Steps

  1. Drop a Lottie JSON file onto the upload area, or tap it to choose a file. You can also click Try a sample.
  2. Find the color you want to change in the list and open its color picker, or type a hex code.
  3. Check the preview. Switch the background and playback speed to see how the colors hold up in dark mode or mid-animation.
  4. Click Download JSON to save the edited file, or Copy JSON to paste it straight into your project.

Note: The preview loops, and changing a color resumes from the current frame instead of restarting, so you can compare colors on the same moment of the animation.

What Gets Recolored and What Does Not

  • Supported colors: solid fills (fl) and strokes (st), gradient color stops (gf and gs), keyframed colors, solid layer backgrounds (ty 1), and text fill and stroke colors.
  • Alpha: only red, green, and blue are rewritten. The alpha value is kept as it is. To change opacity itself, edit the animation in After Effects or your design tool.
  • Matching colors change together: every part that uses the same color code is replaced at once, even across layers. To change them separately, give them different colors in the source file.
  • Colors set by expressions, colors inside embedded Base64 images, and gradient direction or position are not edited.
  • The file must have a .json extension and contain a layers array. .lottie (dotLottie) packages are rejected with a message.
  • The output is re-saved as compact JSON, so whitespace is removed. The size shown under the preview is the size of the edited output.

Which Lottie Color Properties Can Be Edited

What the tool reads and rewrites in your JSON file.

PropertySupportedNotes
Fill (fl)YesSolid shape fill colors
Stroke (st)YesOutline and line colors
Gradient fill and stroke (gf, gs)YesEach color stop is editable on its own
Animated colorsYesBoth start and end values of each keyframe
Solid layer (ty 1)YesBackground color stored as a hex string
Text fill and stroke (fc, sc)YesColors set on text layers
Precomposition layersYesColors inside assets are found too
Alpha (fourth value)KeptOnly RGB is rewritten
Gradient direction and positionNoEdit these in your animation source
ExpressionsNoColors set by expressions are not changed
Embedded images (Base64)NoPixel colors inside images cannot be edited
dotLottie (.lottie)NoExport as JSON first

Why not just re-export?
Re-exporting needs the original After Effects project and the Bodymovin plugin. Changing a color in code at runtime takes development work. This tool edits the JSON directly, so a color change takes a minute and nothing else in the animation is touched.

How colors are stored in Lottie JSON
A color is an RGBA array of values from 0 to 1 instead of 0 to 255, for example [0.145, 0.388, 0.922, 1] (that is #2563eb), stored under the c.k property. The fourth value is alpha. A gradient is stored in g.k.k as a flat list of offset, R, G, B, offset, R, G, B, .... One misplaced comma or bracket in a manual edit can break the file, so automatic replacement is safer.

Shipping Recolored Animations: Dark Mode, Theming, and Platforms

Notes on using the edited JSON in a real site or app.

Static recolor or runtime color control?

If colors must change while the user interacts, you need runtime control, for example through the lottie-web API or by driving an inline SVG with CSS variables.
If you only need a few fixed variants, such as light and dark themes or a hover state, it is simpler to export one static JSON per variant with this tool and swap the file. That keeps the animation code free of color logic.

Check line colors and contrast for dark mode

Thin lines and light gray shapes often vanish on a dark background.
Outline-style icon animations are the most affected. Use the black preview background and adjust the colors until every part is visible. WCAG asks for a contrast ratio of at least 3:1 for graphical objects that carry meaning. Export one file for light and one for dark, and load the right one for the active theme.

Give parts with the same role the same color code

If two parts look identical but use #2563eb and #2564eb, the tool lists them as separate colors and you have to change both.
When you build or choose an animation, give shapes with the same role (a button background, an icon accent) exactly the same color value. One edit then updates all of them, and a future brand color change is much cheaper.

Platform and file naming notes

The same JSON can render slightly differently in lottie-web, lottie-ios, and Lottie for Android, so test the edited file on each target.
For Android, raw resource names must use only lowercase letters, digits, and underscores, so rename a file like Brand-Loader.json to brand_loader.json before adding it to res/raw. Loading animations lazily keeps them out of your first render.

Editing gradients

A gradient is stored as repeating offset, R, G, B groups, and an opacity stop list can follow the colors.
The tool uses the stop count (g.p) to pick out the color groups. If a file does not include that count, the tool falls back to treating the array as groups of four numbers, so check the preview. Gradient direction and position (s and e) are not editable here. Change those in the animation source.

Common Recoloring Problems and Fixes

A re-export from After Effects breaks the animation or grows the file

You import a downloaded animation into After Effects just to change a color, then re-export with Bodymovin. Fonts and effects do not match, or the file comes back larger than the original.

💡 See the solution▼
Edit the color values directly in the JSON with this tool. Nothing else in the file is rebuilt, so the animation behaves as it did before.

A hand edit breaks the JSON and nothing plays

You search for the RGB arrays in a text editor and replace the 0 to 1 decimals. One missing comma or bracket later, the animation no longer renders, and the decimals make mistakes hard to spot.

💡 See the solution▼
Use the color picker or hex input instead. The tool changes only the color values and writes valid JSON back out.

Semi-transparent parts turn solid after recoloring

Some methods overwrite all four RGBA values. Shadows and glows that were see-through become flat color.

💡 See the solution▼
This tool rewrites red, green, and blue only and keeps alpha, so transparency in the colors is preserved.

Parts blend into the background in dark mode

You pick colors on a light background, then ship to a dark UI where thin lines and small parts disappear or fail contrast checks.

💡 See the solution▼
Switch the preview between white, black, and transparent while you edit. Export a separate JSON per theme and load the one that matches.

A .lottie file will not load

You drop in a .lottie file from LottieFiles and no colors appear.

💡 See the solution▼
A .lottie file is a ZIP-based package, and the tool reads JSON only. Export the animation as JSON and load that file.

Changing one color changes two parts

A background and an icon share the exact same color code, so editing one edits both.

💡 See the solution▼
The tool replaces colors by value. To change them separately, give the parts slightly different colors in the source file. If you want them to change together later, keep them identical.

Lottie Color Editing FAQ

Q.Can I change Lottie colors without After Effects?

Q.

A. Yes. Load the Lottie JSON file and the tool lists every color it finds. Pick a new color with the color picker or type a hex code, and the preview updates right away. You do not need After Effects or a Bodymovin re-export. When you are done, download the edited JSON.

Q.Does it change gradient colors too?

Q.

A. Yes. Besides solid fills and strokes, the tool reads the color stops of gradient fills (gf) and gradient strokes (gs) and lets you edit each one. It also handles colors that change over time (keyframed start and end values), solid layer background colors, and text fill and stroke colors.

Q.Is transparency (alpha) kept when I change a color?

Q.

A. Yes, for colors stored as RGBA. Lottie stores a color as four numbers, and the tool rewrites only the first three (red, green, blue). The fourth number, alpha, is left as it was, so semi-transparent shapes stay semi-transparent. Layer and shape opacity settings are not touched either.

Q.Can I recolor everything to match my brand color at once?

Q.

A. Yes. Enter a brand color in the "Match all colors to a brand color" box and click Apply brand color. Each color keeps its own lightness but takes on the hue and saturation of your brand color, so light and dark areas stay distinct. Colors with almost no saturation (white, black, and grays) are left alone. You can then adjust any single color by hand.

Q.Can I open .lottie (dotLottie) files?

Q.

A. No. A .lottie file is a ZIP-based package that bundles JSON and assets, and this tool reads plain JSON only. If you choose a .lottie file, the tool tells you so. Export the animation as JSON from LottieFiles or your design tool first. Colors inside embedded Base64 images cannot be changed either.

Q.Can I check how the animation looks in dark mode?

Q.

A. Yes. Switch the preview background between transparent (checkerboard), white, and black to see whether thin lines or icons disappear against the background. You can also pause the animation and change playback speed (0.5x, 1x, 1.5x, 2x) to inspect colors that change partway through.

Q.Is my animation file uploaded anywhere?

Q.

A. No. The file is read and edited in your browser, and the tool has no upload step. Recoloring, preview, and the JSON you download all come from your own device, so unreleased or confidential assets stay with you.

Q.Will the edited file still work in my app or website?

Q.

A. The tool changes color values only and keeps the rest of the animation data as it was. The result is saved as standard Lottie JSON with whitespace removed, so it should play wherever the original played, such as the web, iOS, and Android players. Test it in your own app before shipping.

Q.Does it work on a phone or tablet?

Q.

A. Yes. Tap the upload area to choose a JSON file, change colors with the color picker, preview the result, and download or copy the JSON, all from a mobile browser. Drag and drop is only available where your device supports it.

Q.What if I do not have a Lottie file to try?

Q.

A. Click Try a sample. It loads a small animation with a fill, a stroke, and moving shapes so you can see the whole flow: color list, edit, preview, and download.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback