Image Size Reducer
PNG color replacer

Change Colors in a PNG

This canvas tool replaces a color you pick in a PNG with one you choose, and the alpha channel stays exactly as it was. It handles a logo, an icon, or a product mockup without a layer stack, a selection tool, or an export dialog.

  • Click the color that has to go
  • Enter the replacement as a hex value
  • Threshold decides how many shades match
  • Transparent pixels stay transparent
  • Preview updates while you adjust
Open the color replacer

What Is a PNG Color Replacer

A canvas tool that swaps one color in a PNG for another while leaving the alpha channel untouched.

You load a PNG, click a point on the canvas to select the color that should change, then choose the replacement in the picker. Every pixel close enough to the selected shade takes on the new value, including the softer pixels along an edge, and the transparent regions keep their transparency instead of being flattened to a solid fill. The result arrives as a PNG at the same dimensions as the file you loaded. Repainting a single color used to mean opening an editor, building a selection, adding an adjustment layer, and then matching the export settings to the original. When the task is to change colors in a PNG that carries one shade worth fixing, that setup is longer than the edit itself. Clicking the problem color on the canvas and typing the replacement gets the same result in a couple of steps, and nothing has to be installed first.

Why Change Colors in a PNG in the Browser

Three choices decide the result: which color goes, what replaces it, and how many neighboring shades travel along with it.

Pick the target by clicking the canvas

Clicking a point selects that exact color as the one to replace, which is faster and more accurate than typing values until something lines up with the picture.

Enter the replacement as a value

The new color can be chosen visually or typed as a hex value, so a fill specified in a brand guide comes out as that fill rather than an approximation of it.

A threshold that sets the scope

Low values swap only near-exact matches; high values pull in neighboring shades as well. It is the difference between touching one fill and flattening a whole region.

Alpha stays where it was

Transparent pixels are not painted over, so a cut-out keeps its outline and still drops onto a dark header or a photograph without dragging a box along.

The canvas shows the result first

The preview redraws as the color and threshold change, so a swap that reached too far is caught before the file leaves the browser.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

A partner logo arrives in the wrong accent color

Co-branded material usually means the same mark in someone else's palette, and the file sitting in the shared folder still carries the original accent. Redrawing the logo risks changing the shape, the spacing, and the proportions that were signed off months ago. Replacing the accent leaves every other part of the artwork untouched. The mark keeps its geometry, the fill becomes the shade the partner asked for, and nobody has to rebuild a path that was already correct.
Recolor this PNG
Logo with its accent color swapped for a different shade
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Two versions of every icon, one for dark mode

A pale icon that works on a white toolbar turns invisible the moment the interface switches to a dark theme. The usual answer is a second exported file, which means two assets to keep in step every time the drawing changes. Recoloring the existing PNG gives you that second state without a second source file. Load the light version, swap the stroke color for something that survives a dark background, and the pair stays in step because only one drawing sits behind both of them.
Recolor this PNG
Same icon shown against a light toolbar and a dark toolbar
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

One print design has to appear in five colorways

A seller offering the same graphic on several shirt colors needs a preview for each one, and the artwork is identical every time — a single fill is the only thing that moves. Redrawing each variant is slow and invites small differences between them. When you change colors in a PNG mockup, the shape, the texture, and the cut line all stay where they are. Only the selected fill changes, so five variants take five passes and each one lines up with the last.
Recolor this PNG
Rows of the same design in several different colorways
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The shade is close, but it is not the brand value

Eyeballing a color wheel rarely lands on the value printed in a brand guide, and a near-miss fill is obvious once it sits next to the approved asset. Two copies of the same logo that differ slightly read as a mistake rather than a variation. The picker takes the hex value directly, so the replacement is the exact shade rather than an approximation of it. Once that value is in place, the same number can be reused on every other file in the set.
Recolor this PNG
Hex value typed into a color picker beside a logo
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The fill leaked into the transparent area

Some editors treat a cut-out as a picture with a background painted underneath, and a color change can end up filling the space that was supposed to stay empty. It looks fine on the editing canvas and turns into a visible block on a dark page. The alpha channel is left alone here. Pixels that were transparent remain transparent after the swap, so a cut-out keeps its outline and can still sit on any background once the file is downloaded.
Recolor this PNG
Cut-out graphic with empty transparent space around it
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The icon set drifted apart over a year

Icons get added by different people at different times, and the accent slowly wanders — a touch warmer here, a little darker there. Individually none of them looks wrong; together they stop reading as one family. Replacing each outlier with the same hex value restores the set without opening a single source file. Working through the folder one icon at a time keeps that number fixed, so the last file matches the first.
Recolor this PNG
Icon grid where the accent colors gradually fall out of step
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

One click removed far more than intended

When the subject shares a tone with what sits behind it, a wide match sweeps up both — a white shirt on a white backdrop, a gray machine against a gray wall. The region flattens into a single fill that has nothing to do with the original. The threshold slider is the control for exactly that situation. Narrowing it restricts the swap to near-exact matches, so the intended shade changes and its neighbors are left alone. Widening it again is a slider move, not a re-upload.
Recolor this PNG
Threshold slider open next to a partially recolored region
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

An old graphic still carries the retired color

Marketing decks, printed handouts, and archived product pages keep the language of whatever palette was current when they were made. Finding every asset by hand is the slow part; the fill itself is a two-second fix. Going through the files that still matter and swapping the old fill for the current one brings them back in line without a redesign. Slides and diagrams signed off years ago can be updated without reopening the layout around them.
Recolor this PNG
Old slide graphic updated with the current brand color

How to Use the Color Replacer

Four steps, and the only setting that usually needs a second pass is the threshold.

Step 1

Load the PNG onto the canvas

Drop the file into the input area. It appears at full size with its transparent regions already showing as empty.

Step 2

Click the color you want replaced

Click a point inside that shade. Everything close enough to it is marked for the swap, and the canvas updates on the spot.

Step 3

Choose the new color and set the threshold

Pick the replacement in the picker or type its hex value, then widen the threshold until the old shade is gone and the surrounding artwork is untouched.

Step 4

Review the canvas and download

Check the result against the transparent areas, then save. The PNG keeps the dimensions and the alpha channel of the file you loaded.

Who Recolors a PNG

Four kinds of work where one wrong shade costs more than the swap itself.

FD

Front-end developers

icon sets that need a second state for dark mode

Keeping one drawing behind both themes means the icon never drifts, and adding a new one takes a single recolor pass instead of a second export.

PO

Print-on-demand sellers

mockups showing one graphic on several shirt colors

Each preview is the same artwork with one fill moved. Working through the list takes minutes, and the variants stay consistent with each other.

BD

Brand designers

logo files that have to appear in a client palette

Typing the client's hex value is the part that matters. A fill that matches the brand sheet exactly means the asset can be handed over without another round of review.

LS

Lesson slide builders

diagrams that must sit inside a school color scheme

A diagram copied into a deck usually drags an old accent along with it. Swapping the fill first keeps the deck looking like one set instead of a folder of borrowed images.

Frequently Asked Questions

What comes up while replacing a color for the first time.

Put the right color in that file

Load the PNG, click the shade that has to go, and download the result with its transparency and dimensions unchanged.

Recolor this PNG
Check Before You Publish

A swap reads differently on a different background

A replacement fill that looks right on the editing canvas can sit oddly once the file lands on a page with a similar tone. Download the result, place it where it will actually be used, and check that the new color still separates from what is behind it. On artwork with soft edges, zoom in before publishing rather than after.

Smaller files, same picture.