What is BMP?

Learn what BMP is, how bitmap image files work, and when to use them. Understand BMP file structure, compression options, and why it remains useful today.

The BMP image format explained: how it works, its specs, and when to use it.

BMP

What is BMP?

1988 Year CreatedUncompressed CompressionWindows System Primary Use

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

BMP (Bitmap) is Microsoft's original Windows image format, and it is about as simple as a raster image can get. A BMP file begins with a small file header marked by the ASCII signature "BM", followed by an information header describing the image's width, height, bit depth, and (rarely used) compression, and then the raw pixel array itself. In the most common form, every pixel is stored directly, in full, with no compression at all.

That uncompressed storage is BMP's whole story. Because it keeps every pixel as-is, BMP is lossless, the image never degrades, but the files are very large, often many times the size of the same picture as PNG or JPG. There is no clever encoding saving space; a BMP is essentially a direct memory dump of the image, which makes it trivially simple for software to read and write but wasteful to store or transmit.

A couple of technical quirks are worth knowing. BMP pixel rows are conventionally stored bottom-to-top rather than top-to-bottom, a legacy of early Windows graphics. Rows are also padded to 4-byte boundaries. These details matter only to programmers writing BMP code; to a user, a BMP is just a plain, heavy, perfectly preserved image.

Why BMP Is Rarely Used Today

BMP has been almost entirely superseded for everyday use, and the reason is straightforward: PNG does everything BMP does, losslessly, in a far smaller file, and adds transparency support that classic BMP lacks. For any situation where you want a lossless image, PNG is the better choice, so BMP's main historical advantage (perfect quality) is matched by formats that are also compact and web-friendly.

You still encounter BMP in a few places: as a temporary or intermediate format inside older Windows software, in some legacy or embedded systems where simplicity of decoding matters more than file size, and occasionally as the output of basic screenshot or scanning tools on Windows. In those niches its dead-simple structure is an asset. Everywhere else, it has been replaced.

When (and When Not) to Use BMP

Use BMP only when something specifically requires it, an old application that reads nothing else, an embedded system with a minimal image decoder, or a workflow where a guaranteed-uncompressed, trivially-parsed file is needed. In every other case, prefer PNG for lossless images (it is smaller and supports transparency) or JPG/WebP for photographs (far smaller still). If you have BMP files taking up space, converting them to PNG preserves the exact image quality while dramatically reducing their size.

Limitations

BMP's limitations are simply the cost of its simplicity: huge file sizes from the lack of compression, no transparency in the classic format, no animation, weak metadata support, and no web browser support in practice, so BMP cannot be used directly online. Its one virtue, an extremely simple structure that any program can read, is rarely worth those trade-offs now that compact lossless formats are universal.

BMP vs Other Image Formats

FeatureBMPPNGJPGTIFF
CompressionUsually none[1]LosslessLossyOptional
File sizeVery largeModerateSmallLarge
TransparencyLimited[3]YesNoYes
Color depthUp to 32-bit[2]Up to 48-bit24-bitUp to 64-bit
Best forRaw bitmapsWeb graphicsPhotosPrint & archival
OriginMicrosoft[1]PNG GroupJPEGAdobe

BMP guarantees uncompressed pixel-perfect storage but at far larger file sizes than the compressed alternatives.

Advantages & Disadvantages

Advantages

Perfect Quality | FileFormer, No compression means no quality loss - every pixel is stored exactly as captured.

Simple Structure | FileFormer, BMP has a straightforward, well-documented structure making it easy to read and write programmatically.

Windows Native | FileFormer, Works out-of-the-box on all Windows versions without any additional codecs or software.

Fast Processing | FileFormer, Uncompressed data can be read directly into memory without decompression overhead.

Disadvantages

Enormous File Sizes | FileFormer, A 1920x1080 BMP at 24-bit is over 6MB compared to under 1MB for equivalent JPG.

No Web Use | FileFormer, Browsers technically support BMP but it is never used on the web due to its size.

Poor Metadata Support | FileFormer, BMP has very limited support for metadata like EXIF, GPS, or color profiles.

Outdated Format | FileFormer, PNG and TIFF provide lossless quality with far better compression and feature sets.

BMP Technical Specifications

Developer
Microsoft[1]
File Extension
.bmp[1]
Compression
None (optional RLE)[1]
Color Depth
1 to 32-bit[1]
Transparency
Limited (32-bit only)[1]
Max Resolution
No hard limit[1]
OS Support
Windows native[1]
MIME Type
image/bmp[1]

Common Use Cases

Here are the most common scenarios where BMP is the right choice:

Windows System Graphics | FileFormer

Used internally by Windows for icons, cursors, and system interface elements.

Image Processing Pipelines | FileFormer

Intermediate format in processing workflows where speed matters more than file size.

Legacy Software | FileFormer

Older applications that predate modern formats often require BMP input or output.

Simple Painting Tools | FileFormer

Microsoft Paint and similar basic tools use BMP as their default format.

Frequently 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.

References

  1. BMP File Format - Library of Congress
  2. Bitmap Storage - Microsoft Learn
  3. BMP file format - Wikipedia