Loading Base64 to Image Converter...
How to Convert Base64 to a BMP Image
BMP is the plain Windows bitmap format. It still turns up in old Windows software, label printers, small embedded displays and test fixtures, usually tucked inside a JSON field or a log as Base64. This page turns that text back into the original file.
Paste the Base64 string
Paste the Base64 into the input panel. The data:image/bmp;base64, prefix, line breaks and URL-safe Base64 are all fine. You can also upload a .txt file that holds the string.
Qk, because the file itself begins with the letters BM.data:image/bmp;base64, in front of the string is removed for you.Check the preview and the format
The string is decoded a moment after you paste it. Browsers can draw ordinary BMP files, so the image appears in the preview, and the Format line shows what the header says the file is.
What is inside a BMP
A 14-byte file header (starting with BM and the file size), an info header with the width, height and colour depth, an optional colour palette, and then the pixel rows, usually stored bottom to top and padded to a multiple of 4 bytes. Base64 itself is defined in RFC 4648; the BMP file format article covers the header versions in detail.
Download the file
Click Download to save the decoded bytes. A BMP is saved as .bmp; anything else keeps the extension of its real format. On larger screens you can type a file name first.
Frequently Asked Questions
How can I tell that a Base64 string really is a BMP?
A Windows BMP file starts with the two letters BM, and in Base64 that always comes out as Qk at the very start of the string. The page checks the decoded header for you and shows the format it found, so you do not have to guess.
Is the downloaded BMP the same file that was encoded?
Yes. Base64 is only a text wrapper, so decoding gives back the exact bytes that went in. The page does not redraw or re-save the bitmap: the palette, colour depth, row order and any extra header fields stay as they were.
What if the string is a PNG or JPEG, not a BMP?
Then it is labelled with its real format and downloads with that extension, for example .png. The page never converts one image format into another, so a PNG does not become a BMP here. To change formats, open the file in an image editor and save it as BMP.
Why is a BMP so much bigger than the same picture as a PNG?
Most BMPs store every pixel without compression. A 64 by 40 picture in 24-bit colour is 64 x 40 x 3 bytes of pixels plus a 54-byte header, which is 7,734 bytes, and Base64 adds about a third on top of that. A PNG of a simple image can be a small fraction of that size.
Can a BMP have transparency?
Most BMPs are 24-bit or use a colour palette and have no transparency at all. A 32-bit BMP can carry an alpha channel, but plenty of programs ignore it and show those pixels as solid. If you need dependable transparency, PNG is the safer choice.
Is my Base64 sent anywhere?
No. The string is decoded by JavaScript in your own browser and the preview and download are built on your machine. Nothing is uploaded to our server and nothing is kept, so a reload starts with an empty editor.
How do I turn a BMP file into Base64?
Use the Image to Base64 page: pick your .bmp file there and it gives you the Base64 string, which decodes back to the identical file on this page.
Related pages: Image to Base64 · Base64 to PNG · Base64 to File
Related Tools
Image to Base64
Convert images to Base64 encoded strings for embedding in HTML, CSS, and APIs
Base64 to Image
Decode Base64 encoded strings to view and download images (PNG, JPG, GIF, SVG)
PNG to Base64
Convert PNG images to Base64 encoded strings for embedding
Base64 to PNG
Decode Base64 strings to PNG images, see the picture and save the exact file
BMP to Base64
Convert BMP/Bitmap images to Base64 encoded strings
Base64 to WebP
Decode Base64 strings to WebP images with transparency