What is BMP?
BMP (Bitmap) is an uncompressed raster image format developed by Microsoft that stores each pixel's color data directly, resulting in large files but perfect quality with no compression artifacts.
Last updated:
What is BMP?
BMP (Bitmap) is an uncompressed raster image format developed by Microsoft that stores each pixel's color data directly, resulting in large files but perfect quality with no compression artifacts.
Understanding BMP helps you choose the right format for your specific needs and workflow.
How BMP Works
A BMP file begins with a BITMAPFILEHEADER identified by the ASCII signature BM, followed by a DIB information header describing width, height, bit depth, and compression, and then the pixel array itself.[2] Pixel rows are conventionally stored bottom-to-top and each row is padded to a multiple of four bytes, a structural detail that explains the format's predictable but space-inefficient layout.[3] Color can be stored directly per pixel or indexed through a color table for lower bit depths.[2]
History and Variants
BMP originated with Microsoft Windows and OS/2 in the late 1980s, and the device-independent bitmap (DIB) header has gone through several versions that added support for higher bit depths, color masks, and an alpha channel.[1] While usually uncompressed, the format does define optional run-length encoding (RLE) modes for 4-bit and 8-bit images.[3]
Practical Limitations
Because pixel data is typically stored without compression, BMP files are far larger than JPEG or PNG equivalents, which makes the format poorly suited to web delivery despite its simplicity and lossless fidelity.[1] Its straightforward structure nonetheless keeps it useful as an intermediate or debugging format where exact pixel values and easy parsing matter more than file size.[3]
BMP Technical Specifications
BMP vs Other Image Formats
| Feature | BMP | PNG | JPG | TIFF |
|---|---|---|---|---|
| Compression | Usually none[1] | Lossless | Lossy | Optional |
| File size | Very large | Moderate | Small | Large |
| Transparency | Limited[3] | Yes | No | Yes |
| Color depth | Up to 32-bit[2] | Up to 48-bit | 24-bit | Up to 64-bit |
| Best for | Raw bitmaps | Web graphics | Photos | Print & archival |
| Origin | Microsoft[1] | PNG Group | JPEG | Adobe |
BMP guarantees uncompressed pixel-perfect storage but at far larger file sizes than the compressed alternatives.
Advantages & Disadvantages
Advantages
No compression means no quality loss - every pixel is stored exactly as captured.
BMP has a straightforward, well-documented structure making it easy to read and write programmatically.
Works out-of-the-box on all Windows versions without any additional codecs or software.
Uncompressed data can be read directly into memory without decompression overhead.
Disadvantages
A 1920x1080 BMP at 24-bit is over 6MB compared to under 1MB for equivalent JPG.
Browsers technically support BMP but it is never used on the web due to its size.
BMP has very limited support for metadata like EXIF, GPS, or color profiles.
PNG and TIFF provide lossless quality with far better compression and feature sets.
Common Use Cases
Here are the most common scenarios where BMP is the right choice:
Windows System Graphics
Used internally by Windows for icons, cursors, and system interface elements.
Image Processing Pipelines
Intermediate format in processing workflows where speed matters more than file size.
Legacy Software
Older applications that predate modern formats often require BMP input or output.
Simple Painting Tools
Microsoft Paint and similar basic tools use BMP as their default format.
Convert BMP Files Online - Free
Compress, convert, or optimize your BMP files instantly. No software to install, no registration required.
Try Image Converter FreeFrequently Asked Questions
Why are BMP files so large?
BMP stores raw pixel data without compression. A single pixel takes 3 bytes (24-bit color), so images have massive file sizes.
Is BMP lossless?
Yes, BMP is lossless - no quality is lost. But PNG is also lossless and produces much smaller files.
Should I use BMP or PNG?
Almost always PNG. PNG is lossless like BMP but compresses files significantly, supports transparency better, and has broader compatibility.
Can BMP files have transparency?
Only 32-bit BMP files support an alpha channel for transparency, but support is inconsistent across applications.
Do websites support BMP?
Technically yes, but BMP should never be used on websites due to its massive file sizes impacting load times.