What Is a .BMP File? (.bmp, .dib)

A .bmp file is a Windows bitmap image that stores pixels in a simple, usually uncompressed grid. BMP is one of the oldest image formats on Windows, opens almost anywhere and preserves every pixel exactly, but files are very large compared with PNG or JPG, so it is rarely used for sharing.

Extension
.bmp, .dib
Full name
Bitmap Image File (Device Independent Bitmap)
Type
Image file
MIME type
image/bmp
Developed by
Microsoft

About BMP files

A BMP file is little more than a header followed by rows of pixel values, normally stored bottom-to-top and uncompressed. Common bit depths are 24-bit (16.7 million colors), 8-bit with a 256-color palette, and 1-bit monochrome. Because nothing is compressed, size is predictable: width times height times bytes per pixel. A 1920 x 1080 image at 24-bit is about 6 MB, where the same screenshot as PNG might be a few hundred kilobytes.

The format supports optional run-length encoding (RLE) for 4-bit and 8-bit images, and newer header versions (V4 and V5) allow an alpha channel and color profiles. Support for those extras is inconsistent: many programs ignore BMP transparency entirely, so use PNG when you need it. The .dib extension refers to the same Device Independent Bitmap structure.

BMP survives because it is trivial to read and write. Legacy Windows software, industrial equipment, embedded displays, some scanners and programming tutorials still produce or require BMP. For everyday use, converting to PNG gives the same lossless quality at a fraction of the size.

What BMP files are used for

  • Output from legacy Windows programs and older Paint versions
  • Images for embedded devices, firmware splash screens and microcontroller displays
  • Exports from scientific instruments, industrial cameras and some scanners
  • Simple image I/O in programming exercises

How to open a .bmp file

Windows

Double-click to open in the Photos app, or open it in Paint, which has handled BMP since the earliest versions of Windows.

Mac

Preview opens BMP files, and Quick Look previews them in Finder.

iPhone and iPad

The Files app can preview most BMP files.

Android

Google Photos and most gallery apps display BMP.

Online / any browser

Chrome, Edge, Firefox and Safari display BMP images.

How to convert a .bmp file

To shrink a BMP without losing quality, convert it to PNG: in Paint choose File > Save as > PNG picture; on a Mac open it in Preview and choose File > Export > PNG.

For photographs where small size matters most, export as JPEG instead.

If a device requires BMP, Paint's Save as menu offers 24-bit, 256-color, 16-color and monochrome bitmap options; pick the one the device documentation specifies.

Convert it here, free and without uploading: BMP to JPG, BMP to PNG, BMP to PDF

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming BMP files

  • Embedded devices and firmware tools often expect exact file names and 8.3-style limits (for example LOGO.BMP); check the documentation before renaming.
  • When converting a folder of BMPs to PNG, keep the base names identical so any software or documentation that references them only needs the extension changed.

Renaming lots of .bmp files? See how to rename bmp files with ai, use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

Why is a BMP file so big?

BMP is usually uncompressed, so every pixel is stored in full. A Full HD image at 24-bit color is about 6 MB, while a PNG of the same image is often ten times smaller with identical quality.

Is BMP better quality than JPG?

BMP is lossless, so it has no compression artifacts, but PNG offers the same lossless quality at a much smaller size. There is rarely a reason to choose BMP today unless software requires it.

Does BMP support transparency?

Newer BMP versions can store an alpha channel, but many programs ignore it. Use PNG for reliable transparency.

What is a .dib file?

A .dib file is a Device Independent Bitmap, the same structure as a BMP. Renaming .dib to .bmp generally lets apps that only recognise .bmp open it.

More image file extensions · all file extensions