Staaarter

GIF Color Changer

Uploads an animated GIF, decodes every frame, and recolors each one either by rotating its hue around the HSL color wheel or by swapping which RGB channel lands in which output channel, then re-encodes a new animated GIF, all in your browser. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-29
By Staaarter Team
editorcolorimageanimationgif

Overview

Introduction

This tool recolors an entire animated GIF, frame by frame, using one of two distinct techniques: a smooth HSL hue rotation or a blunt RGB channel remap, all processed locally in your browser.

It's built for quickly generating color variants of a GIF (a flat-color icon animation, a looping banner) without needing a full video editor.

What Is GIF Color Changer?

A client-side GIF recoloring tool that decodes every frame of an uploaded GIF into plain pixel buffers, applies a per-pixel color transform to each one, and re-encodes the result as a new animated GIF.

Hue-rotate mode converts each pixel to HSL, rotates the hue component, and converts back to RGB. Channel-remap mode instead permutes which byte (R, G, or B) ends up in which output position, with no color-space conversion at all.

How GIF Color Changer Works

The uploaded GIF is fully decoded (including its disposal methods) into a sequence of composited RGBA frames using this category's shared GIF codec.

Each frame's pixels are transformed independently with the chosen mode and parameters, then all frames are re-encoded into a single new GIF89a file sharing one 216-color palette and the Netscape looping extension.

When To Use GIF Color Changer

Use hue rotation to explore alternate color schemes for a flat-design animated icon or banner without redrawing it.

Use channel remap when you want a cheap, glitchy 'wrong colors' effect rather than a smooth, natural-looking recolor.

Features

Advantages

  • Applies consistently across every frame, so the whole animation stays visually coherent rather than each frame drifting differently.
  • Runs entirely client-side; your GIF is never uploaded to a server.
  • Offers two genuinely different recoloring techniques in one tool instead of forcing a choice between separate tools.

Limitations

  • Both modes apply the same fixed transform to every frame; you can't recolor one part of the animation differently from another.
  • Re-encoding always quantizes down to the shared 216-color palette, so extremely subtle gradients can show a little banding after processing.

Examples

Hue-rotate a red animated icon to blue

Input

A red pulsing icon GIF, hue rotation 240 degrees

Output

The same animation, now blue, with identical pulsing/shading timing

Rotating 240 degrees moves red to its blue neighbor on the HSL wheel while lightness and saturation stay put.

Best Practices & Notes

Best Practices

  • Use hue rotation for natural-looking recolors and channel remap only when you specifically want a glitchy, unnatural palette swap.
  • Preview the result before downloading, since near-grayscale frames barely change under hue rotation (there's little saturation to rotate).
  • If you need one exact color swapped rather than the whole palette shifted, use GIF Color Replacer instead.

Developer Notes

Both modes operate on a single decoded PixelBuffer per call, so the same pure function is simply mapped over every frame by the component; the HSL conversion math is copied verbatim from this codebase's PNG hue-changer for consistency, and the channel-remap permutations are represented as a fixed lookup table of [r,g,b] source-index triples rather than a switch statement.

GIF Color Changer Use Cases

  • Generating a handful of color variants of a looping icon animation from one source GIF
  • Producing a deliberately glitchy 'corrupted' recolor of a GIF for a retro or vaporwave aesthetic
  • Quickly previewing how a brand animation would look in a different primary color

Common Mistakes

  • Expecting channel remap to look like a natural hue shift; it produces a much harsher, unnatural result by design.
  • Applying a large hue rotation to an already near-grayscale GIF and expecting a visible change.

Tips

  • Try 180 degrees of hue rotation for a quick complementary-color preview of an animation.
  • Combine with GIF Brightness Changer for a recolor that also shifts overall exposure.

References

Frequently Asked Questions