᠎᠎᠎          
51K

Bitmap Color Replacer

World's simplest bitmap tool
This is a free browser-based utility that changes one color into another in BMP images. You can use the options to choose the original color, set the replacement color, and adjust how closely nearby tones should be matched. You can also preserve light and dark details, smooth recolored edges, and preview the matched pixels before saving the result. Created by graphics designers from team Browserling.
We put a browser in your browser! Browserling
Check out our project Browserling – get a browser in your browser and browse while you browse.
Colors to Replace
Bitmap color that should be replaced. You can also click a pixel in the input BMP preview.
New color that should replace the selected bitmap color.
Include nearby tones of the old color. Higher values match more shadows and highlights.
Color Detail
Preserve each matched pixel's brightness so texture and shading remain visible after recoloring.
Pixel Boundary
Blend pixels along the border between replaced and unchanged bitmap areas.
Boundary smoothing radius in pixels.
Match Preview
Preview the pixels selected for replacement. Black means matched and white means unchanged.

What is a Bitmap Color Replacer?

learn more about this tool
This online program changes colors in BMP (bitmap) images. It looks through every pixel in the bitmap, finds the color you want to replace, and paints those pixels with the new color you choose. The old and new colors can be entered as simple color names, hex values, or RGB values, and you can also click directly on a pixel in the input bitmap to copy its color into the settings. If the color in your BMP is not perfectly flat, use the similarity percentage to include nearby tones as well. For example, replacing blue with green can also catch dusty blue, pale blue, navy shadows, and other bluish pixels when the percentage is increased. If light and dark areas define the shape, depth, or texture of the object, the option that keeps color details can preserve this visual information during recoloring. It keeps the original brightness of each matched pixel, so shadows, highlights, rounded edges, and surface details are carried into the new color. If small old-color specks remain around the border of the recolored region, enable boundary smoothing and set a small radius to blend the edge pixels. The preview mask option shows the matched pixels in black and the unchanged pixels in white, which makes it easy to tune the color and similarity before saving the final BMP. Bmp-abulous!

Bitmap Color Replacer examples

Click to use
Change a Bouquet Background
In this example, we give a yellow flower bouquet a new bitmap background. We click the pale background in the input image to pick rgba(251, 244, 238, 255) as the color to replace, set the color sensitivity to 15%, and enter rgb(210, 177, 233) as the replacement color. We also smooth the boundary with a 1-pixel radius, which gently blends the tiny edge pixels into the new lavender background. (Source: Pexels.)
In this example, we give a yellow flower bouquet a new bitmap background. We click the pale background in the input image to pick rgba(251, 244, 238, 255) as the color to replace, set the color sensitivity to 15%, and enter rgb(210, 177, 233) as the replacement color. We also smooth the boundary with a 1-pixel radius, which gently blends the tiny edge pixels into the new lavender background. (Source: Pexels.)
In this example, we give a yellow flower bouquet a new bitmap background. We click the pale background in the input image to pick rgba(251, 244, 238, 255) as the color to replace, set the color sensitivity to 15%, and enter rgb(210, 177, 233) as the replacement color. We also smooth the boundary with a 1-pixel radius, which gently blends the tiny edge pixels into the new lavender background. (Source: Pexels.)
Required options
These options will be used automatically if you select this example.
Bitmap color that should be replaced. You can also click a pixel in the input BMP preview.
New color that should replace the selected bitmap color.
Include nearby tones of the old color. Higher values match more shadows and highlights.
Preserve each matched pixel's brightness so texture and shading remain visible after recoloring.
Blend pixels along the border between replaced and unchanged bitmap areas.
Boundary smoothing radius in pixels.
Preview the pixels selected for replacement. Black means matched and white means unchanged.
Turn a Red Card Suit Black
In this example, we recolor the red suit on a bitmap playing card. The input image contains a red ace of hearts, and the tool replaces its bright heart color with black. A 50% sensitivity value also catches the nearby red antialiasing pixels, so the heart symbol and the letter A become black while the white card faces stay unchanged. (Source: Vecteezy.com.)
In this example, we recolor the red suit on a bitmap playing card. The input image contains a red ace of hearts, and the tool replaces its bright heart color with black. A 50% sensitivity value also catches the nearby red antialiasing pixels, so the heart symbol and the letter A become black while the white card faces stay unchanged. (Source: Vecteezy.com.)
In this example, we recolor the red suit on a bitmap playing card. The input image contains a red ace of hearts, and the tool replaces its bright heart color with black. A 50% sensitivity value also catches the nearby red antialiasing pixels, so the heart symbol and the letter A become black while the white card faces stay unchanged. (Source: Vecteezy.com.)
Required options
These options will be used automatically if you select this example.
Bitmap color that should be replaced. You can also click a pixel in the input BMP preview.
New color that should replace the selected bitmap color.
Include nearby tones of the old color. Higher values match more shadows and highlights.
Preserve each matched pixel's brightness so texture and shading remain visible after recoloring.
Blend pixels along the border between replaced and unchanged bitmap areas.
Boundary smoothing radius in pixels.
Preview the pixels selected for replacement. Black means matched and white means unchanged.
Make a 3D Smiley Magenta
In this example, the bitmap contains two glossy smiley balls, one blue and one yellow. We choose the yellow smiley's base color rgba(164, 173, 18, 255), and change it to magenta with 40% sensitivity. To keep the smiley looking round and three-dimensional, we enable the option that preserves light and dark color details. (Source: Pexels.)
In this example, the bitmap contains two glossy smiley balls, one blue and one yellow. We choose the yellow smiley's base color rgba(164, 173, 18, 255), and change it to magenta with 40% sensitivity. To keep the smiley looking round and three-dimensional, we enable the option that preserves light and dark color details. (Source: Pexels.)
In this example, the bitmap contains two glossy smiley balls, one blue and one yellow. We choose the yellow smiley's base color rgba(164, 173, 18, 255), and change it to magenta with 40% sensitivity. To keep the smiley looking round and three-dimensional, we enable the option that preserves light and dark color details. (Source: Pexels.)
Required options
These options will be used automatically if you select this example.
Bitmap color that should be replaced. You can also click a pixel in the input BMP preview.
New color that should replace the selected bitmap color.
Include nearby tones of the old color. Higher values match more shadows and highlights.
Preserve each matched pixel's brightness so texture and shading remain visible after recoloring.
Blend pixels along the border between replaced and unchanged bitmap areas.
Boundary smoothing radius in pixels.
Preview the pixels selected for replacement. Black means matched and white means unchanged.
All bitmap tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert a BMP file to the base-64 encoding.
Quickly convert base-64 encoding to a BMP file.
Quickly convert an opaque bitmap to a transparent bitmap.
Quickly substitute one color for another in a bitmap.
Quickly create a bitmap file from random colorful pixels.
Quickly change the width/height of a bitmap.
Quickly animate a bitmap sprite sheet.
Coming soon These bitmap tools are on the way
Edit and Draw Bitmaps
Create and edit bitmaps in your browser.
Compress a Bitmap
Make a bitmap smaller in size.
Uncompress a Bitmap
Convert a compressed bitmap to a raw RGB pixel bitmap.
Convert RGB Bitmap to BGR Bitmap
Convert BMP colors in RGB order to BGR order
Convert BGR Bitmap to RGB Bitmap
Convert BMP colors in BGR order to RGB order
Change Bitmap Depth
Change the number of bits per pixel of a bitmap.
Blur a Bitmap
Blur areas of a bitmap.
Sharpen a Bitmap
Sharpen any bitmap area.
Pixelate a Bitmap
Increase pixel size in any bitmap area.
Swirl a Bitmap
Create a swirl of any radius in a bitmap.
Convert a Bitmap to Grayscale
Leave only grayscale tones in a bitmap.
Make Bitmap Black and White
Reduce all bitmap colors to just black and white.
Merge Bitmaps
Join two or more bitmaps together.
Overlay Bitmaps
Place two or more bitmaps on top of each other.
Split a Bitmap
Split a bitmap into multiple independent bitmaps.
Extract a Bitmap Fragment
Extract one or more selected areas from a bitmap.
Duplicate a Bitmap
Make copies of bitmaps and paste them together.
Rotate a Bitmap
Rotate a bitmap by any angle.
Crop a Bitmap
Select a region from a bitmap.
Skew a Bitmap
Skew a bitmap by an arbitrary angle.
Shift a Bitmap
Shift a bitmap to the left or right.
Add a Border to a Bitmap
Add a border around or inside of a bitmap.
Remove a Border from a Bitmap
Delete a border that surrounds a bitmap.
Flip a Bitmap Vertically
Turn a bitmap upside-down.
Flip a Bitmap Horizontally
Make a mirror copy of a bitmap.
Extract Bitmap Color Palette
Find all colors in a bitmap and extract them.
Convert Bitmap to Byte Array
Create a byte array from a BMP image.
Convert Byte Array to Bitmap
Create a BMP from a byte array.
Convert Bitmap to Webp
Convert a BMP to a Webp.
Convert Webp to Bitmap
Convert a Webp to a BMP.
Convert Bitmap to PNG
Convert a BMP to a PNG.
Convert PNG to Bitmap
Convert a PNG to a BMP
Convert Bitmap to JPEG
Convert a BMP to a JPG.
Convert JPEG to Bitmap
Convert a JPG to a BMP.
Convert Bitmap to BPG
Convert a BMP to a BPG.
Convert BPG to Bitmap
Convert a BPG to a BMP.
Convert GIF to Bitmap
Save GIF frames as BMP images.
Convert BMP to GIF
Convert a bitmap to a single-frame GIF.
Convert Bitmap to Data URI
Create a Data URL scheme of a bitmap.
Convert Data URI to Bitmap
Convert a Data URL scheme back to a bitmap image.
BitBlt Bitmaps
Bit Blit two or more BMPs.
Replace Bitmap Color Index
Put a new color table in a BMP.
Print Bitmap Color Index
Extract the color table of a BMP.
Print Raw Bitmap Pixels
Extract raw RGB pixels from a BMP and print them out as text.
Convert Raw RGB to BMP
Create a bitmap image from raw RGB pixels.
Randomize Bitmap Color Index
Randomly rearrange colors in the BMP color table.
Optimize a Bitmap
Reduce a BMP's memory footprint.
Destroy a BMP
Destroy parts of a bitmap and make it glitchy.