The BMP (Bitmap) Image Format: A Complete Guide
The simple, lossless Windows bitmap — uncompressed pixels, maximum compatibility.
Last updated: June 26, 2026
BMP (Bitmap) is one of computing's most straightforward image formats, storing pictures as raw, uncompressed pixel data. Born in the early days of Microsoft Windows, it trades small file sizes for utter simplicity: every pixel is recorded exactly, with no quality loss and almost no processing required to read or write it. That makes BMP large but dependable, ideal for legacy software and simple programmatic use. With Snap2Format you can convert BMP files to compact modern formats, or produce a clean bitmap whenever a tool specifically needs one.
What is BMP?
BMP, short for Bitmap and also known as the Device Independent Bitmap (DIB), is a raster format that stores an image as a literal grid of pixel values. Its defining characteristic is that it normally keeps that data uncompressed: each pixel's colour is written out in full, so the file size is roughly the image's width times height times the bytes per pixel.
This directness has clear consequences. BMP is completely lossless — no detail is ever discarded — and it is trivially simple for software to read and write, since there is little decoding to perform. The cost is size: a BMP can be many times larger than the same image saved as PNG or JPG.
The format does offer an optional simple run-length encoding for certain colour depths, but compression was never its priority. BMP also has little practical transparency support, which limits its use in modern graphic design.
The History of BMP
BMP emerged in the mid-1980s as part of Microsoft and IBM's work on Windows and OS/2. In that era, displays and memory were limited, and a format that mapped directly onto how graphics hardware stored pixels was genuinely useful — the bitmap could be moved between memory and screen with minimal translation.
The name Device Independent Bitmap reflected its goal of describing an image in a way that did not depend on any specific display's quirks, so the same file would render consistently across different hardware. As Windows grew into the dominant desktop platform, BMP became a familiar default for icons, wallpapers, and simple graphics tools. Over time, compressed formats like PNG and JPG eclipsed it for everyday use, but BMP endures as a simple, reliable interchange format and a common output of basic image and screen-capture utilities.
How BMP Works
A BMP file has a deliberately plain structure that mirrors how the image is laid out in memory:
- File header: Identifies the file as a bitmap and records its total size and where the pixel data begins.
- Info header: Stores the width, height, colour depth (such as 24-bit or 32-bit), and compression type.
- Optional palette: For low colour depths, a colour table maps pixel indices to actual colours.
- Pixel array: The raw pixel values, typically stored bottom-to-top, with each row padded to a fixed boundary.
In its usual form, the pixel array is written out verbatim with no compression, which is why reading a BMP is so fast and why the files are so large. BMP does define an optional run-length encoding (RLE) mode for some colour depths, which shrinks images with long stretches of identical colour, but it is simple and rarely used compared with the format's plain uncompressed default.
Key Features of BMP
BMP's appeal lies in its simplicity rather than its sophistication:
- Fully lossless: Every pixel is preserved exactly, with no compression artefacts.
- Extremely simple structure: Easy for even basic programs to parse and generate.
- Direct pixel access: The straightforward layout suits low-level and educational programming.
- Wide legacy support: Decades of Windows software read and write it reliably.
- Optional RLE: A simple compression mode exists for suitable images.
These features come with significant drawbacks. The lack of meaningful compression produces very large files, transparency support is minimal and inconsistently handled, and the format carries no rich metadata or modern colour management. As a result, BMP is rarely the right choice for the web or for distributing images, where its bulk is a liability — but it remains handy where simplicity and exact pixel fidelity matter more than size.
Common Use Cases
BMP still earns its keep in a few specific situations:
- Legacy Windows software: Older applications and tools that expect or output bitmaps.
- Raw, lossless storage: Holding an image with absolutely no compression for archival or intermediate steps.
- Simple programmatic handling: Reading and writing pixels directly in code without a decoding library.
- Education and prototyping: Teaching how raster images are structured at the byte level.
- Quick screen captures: Some basic capture tools default to BMP output.
For almost anything that will be shared, displayed online, or stored in quantity, BMP is the wrong choice. Its enormous file sizes make it impractical for the web, email, or large collections, where a converted PNG or JPG offers the same or better visual result in a fraction of the space.
BMP vs Other Image Formats
Against PNG, BMP loses decisively for general use: PNG is also lossless but applies real compression, so it produces far smaller files while adding full alpha transparency. BMP's only edge is its even simpler structure, which can matter for minimal or low-level code. Compared with JPG, BMP keeps perfect quality where JPG discards detail, but JPG's photographic files are a tiny fraction of BMP's size, making JPG vastly more practical for photos.
Modern formats like WebP and AVIF outclass BMP completely for distribution, combining lossless or lossy modes, transparency, and small sizes. In short, BMP is best understood as a simple, legacy, uncompressed container: valuable when you need raw pixel fidelity or compatibility with old software, but almost always worth converting to a compressed format before sharing or storing at scale.
Tips for Working with BMP
Handle BMP files sensibly with these guidelines:
- Convert before sharing: Turn BMP into PNG for graphics or JPG for photos to slash the file size with no visible loss.
- Use BMP only when required: Reach for it when a specific legacy tool or workflow demands an uncompressed bitmap.
- Mind storage and bandwidth: Large BMP collections consume disk space and transfer time quickly, so archive them compressed.
- Choose the right colour depth: 24-bit suits most images, while a palette mode can shrink simple low-colour graphics.
- Don't expect transparency: If you need a transparent background, save as PNG instead of relying on BMP.
BMP at a Glance
| Full name | Bitmap Image File (Device Independent Bitmap) |
| File extension | .bmp |
| Developed by / Year | Microsoft / IBM, mid-1980s |
| Compression | Usually none; optional simple RLE |
| Transparency | No (minimal, rarely used) |
| Color support | Indexed palette through 24-bit and 32-bit truecolour |
| Best for | Uncompressed storage, legacy Windows software, simple programmatic use |
Advantages of BMP
- Completely lossless with exact pixel preservation
- Extremely simple structure that is easy to read and write
- Reliably supported by decades of Windows software
- Fast to process thanks to its uncompressed layout
Limitations of BMP
- Very large files because pixels are normally stored uncompressed
- Little to no practical transparency support
- Impractical for the web, email, or large image collections
Convert BMP to Another Format
Use Snap2Format's free converter to turn your BMP files into any of these formats — no signup, no watermark:
Convert Other Formats to BMP
Need a BMP file? Convert from these formats instantly:
BMP — Frequently Asked Questions
BMP normally stores every pixel uncompressed, so the file size is roughly width times height times bytes per pixel. Converting to PNG or JPG shrinks it dramatically with no visible loss.
Yes. BMP preserves every pixel exactly with no compression artefacts, which is why it stays perfectly faithful but produces large files.
Not practically. Although some 32-bit variants include an alpha channel, transparency in BMP is minimal and inconsistently handled, so PNG is the better choice when you need it.
No. BMP's huge file sizes make it impractical online. Convert it to PNG for graphics or JPG for photos to get the same look in a fraction of the space.
BMP is handy for legacy Windows software, raw lossless storage, simple programmatic pixel handling, and teaching how raster images are structured at the byte level.
Explore Other Image Formats
Learn about the formats most often used alongside BMP: