This is a free and fast online utility that converts the color channels of every BMP pixel into a byte array. You can use the configuration options (below) to print the channels as decimal RGB bytes or two-digit hexadecimal bytes and arrange them in any RGB channel order. Extra options allow you to add a 0x prefix, change the hex letter case, choose the array dimensions and brackets, customize byte and pixel separators, and preserve the bitmap's row width. Created by graphics designers from team Browserling.
This is a free and fast online utility that converts the color channels of every BMP pixel into a byte array. You can use the configuration options (below) to print the channels as decimal RGB bytes or two-digit hexadecimal bytes and arrange them in any RGB channel order. Extra options allow you to add a 0x prefix, change the hex letter case, choose the array dimensions and brackets, customize byte and pixel separators, and preserve the bitmap's row width. Created by graphics designers from team Browserling.

This free online browser-based program converts a BMP image into a byte array representing its pixel colors. A byte array is an ordered sequence of 8-bit values. Each byte can be written as a decimal number from 0 to 255 or as a hexadecimal value from 00 to ff. In this conversion, every pixel contributes three such bytes: one for red, one for green, and one for blue. The tool reads the bitmap row by row, starting at the upper-left pixel and continuing to the lower-right pixel, and writes the three-channel values of each pixel in sequence. The "Print RGB Bytes" mode writes channel values as decimal numbers. For example, a white pixel becomes "255, 255, 255", a black pixel becomes "0, 0, 0", and a bright red pixel becomes "255, 0, 0". The "Print Hex Bytes" mode writes the same channel values in base 16. Each byte uses exactly two hex digits, from 00 to ff, so the same white, black, and red pixels become "ff, ff, ff", "00, 00, 00", and "ff, 00, 00". Although colors are commonly described in RGB order, standard 24-bit BMP files usually store the three-channel bytes in BGR order. You can select BGR in the byte-order options to reproduce this channel order, use RGB for a more conventional color representation, or choose one of the other supported orders: RBG, GRB, GBR, or BRG. Hexadecimal output can also be customized by adding the "0x" prefix and using uppercase letters A through F. You can output the bytes as a plain list such as "r, g, b, r, g, b", a one-dimensional array such as "[r, g, b, r, g, b]", a pixel-grouped array such as "[[r, g, b], [r, g, b]]", a row-grouped array such as "[[r, g, b, r, g, b], ...]", or a fully nested array such as "[[[r, g, b], [r, g, b]], ...]". The bracket type and the separators between channel values and complete pixels can be adjusted independently. You can also insert a line break between consecutive bitmap rows so that the text layout follows the width and row structure of the original bitmap. To perform the reverse conversion and build a BMP image from pixel byte values, use our Convert Byte Array to Bitmap tool. Bmp-abulous!
This free online browser-based program converts a BMP image into a byte array representing its pixel colors. A byte array is an ordered sequence of 8-bit values. Each byte can be written as a decimal number from 0 to 255 or as a hexadecimal value from 00 to ff. In this conversion, every pixel contributes three such bytes: one for red, one for green, and one for blue. The tool reads the bitmap row by row, starting at the upper-left pixel and continuing to the lower-right pixel, and writes the three-channel values of each pixel in sequence. The "Print RGB Bytes" mode writes channel values as decimal numbers. For example, a white pixel becomes "255, 255, 255", a black pixel becomes "0, 0, 0", and a bright red pixel becomes "255, 0, 0". The "Print Hex Bytes" mode writes the same channel values in base 16. Each byte uses exactly two hex digits, from 00 to ff, so the same white, black, and red pixels become "ff, ff, ff", "00, 00, 00", and "ff, 00, 00". Although colors are commonly described in RGB order, standard 24-bit BMP files usually store the three-channel bytes in BGR order. You can select BGR in the byte-order options to reproduce this channel order, use RGB for a more conventional color representation, or choose one of the other supported orders: RBG, GRB, GBR, or BRG. Hexadecimal output can also be customized by adding the "0x" prefix and using uppercase letters A through F. You can output the bytes as a plain list such as "r, g, b, r, g, b", a one-dimensional array such as "[r, g, b, r, g, b]", a pixel-grouped array such as "[[r, g, b], [r, g, b]]", a row-grouped array such as "[[r, g, b, r, g, b], ...]", or a fully nested array such as "[[[r, g, b], [r, g, b]], ...]". The bracket type and the separators between channel values and complete pixels can be adjusted independently. You can also insert a line break between consecutive bitmap rows so that the text layout follows the width and row structure of the original bitmap. To perform the reverse conversion and build a BMP image from pixel byte values, use our Convert Byte Array to Bitmap tool. Bmp-abulous!
In this example, we convert a 124×164 pixel-art BMP of Sonic the Hedgehog into decimal pixel bytes. We keep the channels in RGB order and place all their values into a single, one-dimensional array enclosed in square brackets. Both the channel and pixel separators are a comma followed by a space. (Source: Sega.)
In this example, we convert a BMP photo of an orange kitten to lowercase hex bytes in BGR order. Standard 24-bit BMP files commonly store blue before green and red, so this order follows the usual BMP channel layout. Each pixel is grouped in square brackets, with commas between channels and semicolons between pixels. (Source: Pexels.)
In this example, we convert an aerial BMP photo of a lagoon into uppercase hex bytes in BGR order – blue, green, and red. Each byte has a 0x prefix, which is commonly used in programming to identify hexadecimal values. We separate the three bytes of each pixel with dashes, separate neighboring pixels with spaces, and place each bitmap row in round brackets on a separate line. (Source: Pexels.)
Create and edit bitmaps in your browser.
Make a bitmap smaller in size.
Convert a compressed bitmap to a raw RGB pixel bitmap.
Create a swirl of any radius in a bitmap.
Reduce all bitmap colors to just black and white.
Join two or more bitmaps together.
Place two or more bitmaps on top of each other.
Split a bitmap into multiple independent bitmaps.
Extract one or more selected areas from a bitmap.
Make copies of bitmaps and paste them together.
Skew a bitmap by an arbitrary angle.
Shift a bitmap to the left or right.
Convert a BMP to a Webp.
Convert a Webp to a BMP.
Convert a BMP to a PNG.
Convert a PNG to a BMP
Convert a BMP to a JPG.
Convert a JPG to a BMP.
Convert a BMP to a BPG.
Convert a BPG to a BMP.
Save GIF frames as BMP images.
Convert a bitmap to a single-frame GIF.
Create a Data URL scheme of a bitmap.
Convert a Data URL scheme back to a bitmap image.
Bit Blit two or more BMPs.
Put a new color table in a BMP.
Extract the color table of a BMP.
Extract raw RGB pixels from a BMP and print them out as text.
Create a bitmap image from raw RGB pixels.
Randomly rearrange colors in the BMP color table.
Reduce a BMP's memory footprint.
Destroy parts of a bitmap and make it glitchy.
Subscribe to our updates. We'll let you know when we release new tools and features, and when we organize online workshops.
Enter your email here
We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling, we love to make people's lives easier, so we created this collection of online bitmap tools. Our BMP tools have the simplest possible user interface and work directly in your browser without downloads or installations. You can use them to edit bitmap images, change BMP bit depth and colors, resize bitmaps, create transparent BMPs, work with bitmap pixels and byte arrays, and much more. Behind the scenes, our bitmap tools are powered by our web developer tools that we've created over the years. Check them out!




