Stuck on png vs bmp for an image you need to save? Choose PNG for sharing and storage, since BMP is usually uncompressed and bulky. Keep BMP for tools that specifically ask for it.
This page sits inside our guide to the png file format, so it concentrates on what makes BMP different.
| Item | Value |
|---|---|
| BMP file header added around the DIB | 14-byte file header |
| Info header introduced with Windows 3.0 | 40-byte BITMAPINFOHEADER (1990) |
| Bit depths standard BMP files allow | 1, 4, 8, 16, 24 and 32 bits per pixel |
| Colors at 32 bits per pixel versus 24 bits per pixel | Ordinarily regarded as the same number |
| Outside compression that helps uncompressed BMP | General-purpose lossless tools such as ZIP or RAR |
These figures come from Wikipedia’s BMP file format article and Accusoft’s BITMAPINFOHEADER reference. They can change, so check the source before you rely on them.
What BMP actually is
The BMP file format is a raster graphics format that stores bitmap images independently of the display device, such as a graphics adapter, as Wikipedia’s BMP article describes it. It is also called the Windows Bitmap format, or simply bitmap.
Under the hood, a BMP is a device-independent bitmap (DIB) with a little packaging around it. The same article says a BMP file wraps a DIB in an additional 14-byte file header.
A DIB is made of these parts:
- A DIB header that describes the image.
- Optional color information.
- The pixel data itself.
One note on scope: the technical sources behind this page document BMP in depth and mention PNG only where Windows bitmap headers refer to it. PNG-side statements below are therefore kept general, and you should test your own images before you make a size-based decision.
How BMP stores pixels
Per Accusoft’s reference, standard BMP files allow 1, 4, 8, 16, 24 and 32 bits per pixel. Lower depths use a color table, while higher depths describe each pixel’s color directly.
The 32-bit layout reserves part of each pixel for other purposes. The same reference notes that 32 bits per pixel is ordinarily regarded as having the same number of colors as 24 bits per pixel.
Rows can carry extra bytes too. Accusoft explains that each pixel line may be padded out to some boundary, frequently a DWORD boundary, so you cannot always work out the image size by simple multiplication.
Row order is another quirk. Microsoft’s BITMAPINFOHEADER documentation says a positive height means a bottom-up bitmap whose origin is the lower-left corner.

Does BMP compress at all?
Mostly it does not. The header’s plain BI_RGB mode is an uncompressed format, according to Microsoft’s documentation.
There is an exception for low color depths. An archived Windows graphics guide says the API supports compressing bitmaps that define colors with 8 or 4 bits per pixel, and that compression reduces the disk and memory storage required.
That scheme is run-length encoding, which helps most with flat areas of repeated color. Photos and gradients gain little from it.
Top-down bitmaps are excluded as well. Microsoft states that top-down DIBs cannot be compressed, so the option depends on how the file was written.
If you are stuck with a BMP, an outside tool can still shrink it. Wikipedia notes that uncompressed BMP files hold a great deal of redundant data and can often be reduced substantially by ZIP or RAR, as the BMP file format article puts it. That gives you a smaller archive, but not an image you can open directly.
Where PNG and BMP meet
The two formats are not strangers. A Windows bitmap header can declare that the image data is a BI_PNG payload, and in that case the width field holds the width of the decompressed PNG image file, per Microsoft.
The size field then indicates the size of the PNG image buffer. In other words, the header borrows BMP’s vocabulary while a PNG decoder does the real work.
The bitmap structure turns up in other places too. Wikipedia notes that ICO and CUR files contain images that begin with a BITMAPINFOHEADER, as covered in the BMP file format article.
If you want to see how PNG organizes its own data, the png file structure page walks through it. If animation is your real question, what is apng is the better next read.
Which one should you pick?
BMP’s strength is reach. Wikipedia says its simplicity, its familiarity on Windows, and its relatively well-documented, open nature have made it very widely supported across many operating systems, as the BMP file format article explains.
Use this as a rule of thumb:
- Pick PNG for web pages, uploads, email and long-term storage, where a compact file matters.
- Pick BMP when a Windows program, older tool or embedded system names it as the required input.
- Convert early when you receive a BMP: keep the original only if a workflow demands it, and share a PNG copy.
Whatever you choose, compare file sizes on your own sample images. Flat graphics and photographs behave very differently, and no single number covers both.
Frequently asked questions
Is a BMP file bigger than a PNG?
Show answer
Usually, because BMP files are typically stored without compression and carry plenty of repeated data. The sources used here do not measure PNG sizes, so convert one of your own images and compare the results.
Can a BMP be compressed?
Show answer
Only in limited cases. Run-length encoding exists for bitmaps at 8 or 4 bits per pixel, and top-down bitmaps are not allowed to use it at all.
Will every program open a BMP?
Show answer
Most will. Image-processing programs on many operating systems can read and write the format, according to Wikipedia, though individual tools differ in which header variants they accept.
Can BMP hold transparency or color profiles?
Show answer
The format can optionally carry alpha channels and color profiles, Wikipedia reports. Whether a given program writes or honors them varies, so check with a test file.



