BMP converters
BMP (bitmap) is the image format built into Windows since the first versions. Most BMP files store every pixel uncompressed, so they are exact but very large: a 12-megapixel photo is about 36 MB as a BMP and a few MB as a JPG.
Convert BMP
What to know about BMP
- Usually uncompressed, so files are many times larger than PNG or JPG.
- Opens in Windows and most image editors, but many websites and upload forms do not accept it.
- Often comes from older scanners, Paint and other Windows programs.
File extensions: .bmp, .dib
Where you meet BMP files
BMP is the native bitmap of Windows: the clipboard passes images between programs as DIB data, and older versions of Paint saved BMP by default. Today BMP files mostly come from older scanners and their software, machine-vision and lab equipment, legacy business programs and embedded devices such as small displays and microcontrollers, where an uncompressed format is trivial to read. Game modders and boot-logo tools also often require BMP.
BMP compared with other formats
- BMP or PNG
- PNG is lossless too, but compresses, so a screenshot or a scan of a drawing is often ten times smaller. PNG also has reliable transparency and opens in browsers and upload forms. Keep BMP only when a device or old program requires it.
- BMP or JPG
- For photos and scanned pages, JPG at 90 % quality is a small fraction of the BMP size with no visible difference. It is lossy, so convert to PNG instead when every pixel must stay exact, such as for measurements or pixel art.
Common problems with BMP files
The file is too large to email or upload
An uncompressed 24-bit BMP needs three bytes per pixel, so a 300 dpi A4 scan is about 25 MB. Convert photos and scans to JPG. Screenshots and line drawings are better as PNG: the resize, crop and rotate tools on this site save BMP as PNG. Tool: Convert BMP to JPG, Resize images.
The image is upside down in a self-written program
A BMP stores its rows from the bottom up unless the height in the header is negative, which marks a top-down image. Code that reads the rows in file order without checking the sign shows the picture upside down. Ordinary viewers handle both.
The transparent background is black or ignored
32-bit BMPs can carry an alpha channel, but many programs ignore the fourth byte or treat it as padding. Whether the background shows as black, white or transparent depends on the program. Icons and graphics with transparency should be stored as PNG instead, which every program reads the same way.
The BMP does not open
Rare variants, such as OS/2 bitmaps, bitfield formats some programs read wrongly, or BMPs with JPEG or PNG data inside, fail in many viewers and browsers. Open the file in the program that made it, or in GIMP or IrfanView, and save it as PNG.
Questions about BMP
Is BMP lossless?
Yes. Pixels are stored exactly, either uncompressed or, for 4-bit and 8-bit palette images, with simple run-length encoding (RLE). Converting BMP to PNG therefore loses nothing, while converting to JPG does.
What is the difference between .bmp and .dib?
Both hold a device-independent bitmap. A .bmp file starts with a 14-byte file header; DIB data on the clipboard or inside other files leaves it out. Most programs open a .dib file the same way as a .bmp.