The BMP Format: Simple, Uncompressed and Still Useful
iLoveConverter Team 4 min read
On this page
BMP — bitmap — is the image format that refuses to be clever. No perceptual compression, no colour subsampling, no complex chunk structure: just a header describing the image and the pixels laid out in order. That simplicity made it the native format of early Windows and keeps it alive in firmware, industrial software and screenshots.
The structure of a BMP file
Every BMP starts with a 14-byte file header: the letters “BM”, the file size and the offset where pixel data begins. Then comes a DIB header, which is the part that changed over the years:
- BITMAPCOREHEADER — the OS/2 era, 12 bytes, 1/4/8/24 bits per pixel.
- BITMAPINFOHEADER — the common 40-byte version, adding compression and resolution fields.
- V4 and V5 headers — 108 and 124 bytes, adding colour profiles and alpha masks.
After the header comes the palette (for 1, 4 and 8-bit images) and then the pixel array. Rows are stored bottom-up by default, padded to a 4-byte boundary — a detail that explains many “why does my image have a stripe” bugs in home-grown decoders.
Bit depths and transparency
| Depth | What it means | Typical use |
|---|---|---|
| 1-bit | Two colours from a palette | Faxes, monochrome icons |
| 4-bit | 16 palette colours | Legacy UI assets |
| 8-bit | 256 palette colours | Older screenshots, maps |
| 24-bit | RGB, 8 bits each | The default BMP most people meet |
| 32-bit | RGBA with an alpha mask | Modern screenshots with transparency |
Transparency is the awkward part. Classic 24-bit BMP has no alpha channel. 32-bit BMP can carry one, but whether an application reads it depends on the header version and the alpha mask — some tools ignore it and render a black background. This is why transparent graphics are usually stored as PNG instead.
Why BMP files are so large
A 24-bit BMP stores three bytes for every pixel, uncompressed. The arithmetic is unforgiving:
- 1920 × 1080 × 3 = 6.2 MB
- 3840 × 2160 × 3 = 24.9 MB
- 6000 × 4000 (24 MP) × 3 = 72 MB
A photo that is 4 MB as JPG can be 70 MB as BMP. The file does not contain more information; it simply refuses to remove redundancy. Runs of identical pixels, flat skies and repeated rows are all stored in full.
When BMP is the right format
- Maximum decoder simplicity. Embedded systems, boot screens and machine-vision tools often implement BMP because it takes very little code.
- No-generation-loss intermediate. For pixel-level work where you do not want a lossy codec in the loop, BMP is a safe temporary container — though PNG is usually better.
- Legacy interchange. Some older Windows software and scanners export BMP by default, and some industrial devices only accept it.
When to convert away
- To PNG — the closest match: lossless, supports transparency properly, and often a fraction of the size. See BMP to PNG.
- To JPG — for photographs where a small file matters more than perfect pixels. See BMP to JPG.
- To PDF — when the image needs to become a document for printing or sending. See BMP to PDF.
PNG is the conversion with no quality question at all: the pixels are preserved exactly, and compression is lossless. JPG is the one to think about, because it is irreversible.
What BMP does not support
BMP has no animation, no layers, no embedded colour management in the classic header, and no standard metadata block comparable to EXIF. Anything that needs those features belongs in PNG, TIFF or a modern container. It also lacks efficient interlacing, so progressive display of a large BMP is not possible.
FAQ
Is BMP lossless?
Yes, in the sense that the pixel values are stored exactly. BMP is either uncompressed or uses a simple lossless RLE scheme. Nothing is discarded during encoding.
Why is my BMP bigger than the same image as PNG?
Both are lossless, but PNG applies real compression: it finds repeated patterns and predicts pixel values. BMP stores raw values, so a flat area that PNG can describe in a few bytes takes the full width × height × 3 bytes in BMP.
Can BMP have transparency?
Only 32-bit BMP with a valid alpha mask, and application support is inconsistent. For anything that must display correctly with transparency, convert to PNG.
Does converting BMP to JPG lose quality?
Yes. JPG is lossy, so the conversion discards some detail permanently. At high quality settings the difference is hard to see, but for screenshots with text or sharp edges, PNG is the better choice.
Try it yourself — free, right in your browser
Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.
Format deep-dives: BMP (.bmp.dib) , PNG (.png)