Base-64 Bitmap Encoder
World's simplest bitmap tool
This is a free browser-based utility that encodes bitmaps to the base-64 encoding. The encoded output can also be split in lines of a certain length (for example, 80 characters). You also have an option to enable URL-encoding, that will append the URL scheme "data:" at the beginning of base-64 output data. Created by the graphics designers from team Browserling.
announcement
the ultimate collection of tools!
We're joining all our tools into OnlineTools.com that offers the ultimate collection of tools. Check it out!
A link to this tool, including input, options and all chained tools.
Click here to select an image from your device, press Ctrl+V to use an image from your clipboard, drag and drop a file from desktop, or load an image from any example below.
Release your mouse to import this file.
Your file is being imported...
Can't convert.
What is a Base-64 Bitmap Encoder?
learn more about this tool
This online program converts a bitmap (an image with extension .bmp) to base64 encoded data. Base64 uses 64 different ASCII characters to represent binary data and is used for sending binary data (such as images, files, or music) over plain-text protocols (such as email). As base64 text can get megabytes and megabytes in length, then to improve its readability, you can split it in pieces of a certain length (in the options above). If this option is enabled, then every base64 fragment will be put on a new line. Additionally, you can add a data URI scheme signature in front of the base64 data, which will make it a valid inline data URL.
Base-64 Bitmap Encoder examples
Click to useSolitaire Card
In this example, we convert a 24-bit BMP of the back of a card from the popular Solitaire game to base64 encoding.
Qk04NgAAAAAAADYAAAAoAAAARwAAAGAAAAABABAAAAAAAAI2AAASCwAAEgsAAAAAAAAAAAAA/3//f2AAQABAAGAAYABgAGAAYABgAGAAYABgAGAAQABAAEAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAoACAAIAA/3//fwAA [...]
Required options
If you enable this option, then
base64 output will be split in
fragments of a certain length.
If you enable this option, then
base64 output will have data:
prefix added in front of it that
will make it a valid Data URL.
Data URL of a Red Rose
This example encodes a 200x160 16-bit bitmap of a red rose to base64 with Data URL prefix.
data:image/x-ms-bmp;base64,Qk04+gAAAAAAADYAAAAoAAAAyAAAAKAAAAABABAAAAAAAAL6AAASCwAAEgsAAAAAAAAAAAAAKCUoJSglKCUoJSglKCUoJSglKCUoJSglKCUoJSglKCUoJSglKCUoJSglKCUoJSclJyUnJSclJyUnJSclJyUnJSclJyUnJUglRyVHJUclRyVHJUclRyVoJWglaCVoJWgliCmIKYgpiCmoKagtyR3qEesV6hXqFeoV6hXqFeoZ6hnqGQsaCxoa6 [...]
Required options
If you enable this option, then
base64 output will be split in
fragments of a certain length.
If you enable this option, then
base64 output will have data:
prefix added in front of it that
will make it a valid Data URL.
All bitmap tools
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 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 Colors
Substitute one color for another in a bitmap.
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.
Subscribe!
Never miss an update
Cool!
Notifications
We'll let you know when we add this tool
Cool!