.BMP

BMP File

Windows Bitmap Image
Ask a question
QUICK ANSWER

A BMP file is a Windows Bitmap - a simple, usually uncompressed raster image developed by Microsoft. Every major OS and image viewer opens it with no extra software (double-click works). Because BMP stores pixels without compression, files are large; convert to PNG for lossless results or JPG for photos before sharing.

Developer: Microsoft (with IBM, for OS/2) Category: Raster Image Files Open standard MIME: image/bmp
OPENS ON Windows macOS Linux Web
Related: .JPG · .PNG · .TIF · .ECW

On this page

19k+ extensions indexed
Last reviewed Jul 3, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the BMP file format?

.bmp is an image file that stores raster graphics, developed by Microsoft (with IBM, for OS/2). BMP format is almost always uncompressed, so high-resolution images saved as .bmp files are larger than files saved in comparable formats such as PNG or JPEG. Optional run-length encoding (RLE) compression exists but is rarely used.

BMP is capable of storing images in various color depths:

  • 1-bit monochrome (black and white only),
  • 4-bit (16 distinct colors),
  • 8-bit (256 distinct colors),
  • 16-bit, 24-bit, or 32-bit color (the latter adds an alpha channel for transparency).

File structure

Each .bmp file has a header section which contains information about the color depth, file size, and pixel data offset, followed by an array representing bitmap pixels. Rows are stored bottom-up and padded to 4-byte boundaries. Four DIB header versions exist - BITMAPCOREHEADER, BITMAPINFOHEADER, BITMAPV4HEADER, and BITMAPV5HEADER - the last of which adds embedded ICC color profiles.

Security & safety

RISK: LOW

BMP is plain pixel data with no scripts or macros, so the format itself is low-risk. The only caveats: historically a few image-library bugs allowed malformed BMP headers (huge claimed dimensions, bad RLE runs) to crash or overflow parsers, so keep your viewer updated; and avoid ad-laden "free BMP converter" sites - use IrfanView, GIMP, ImageMagick or Squoosh instead.

Format details

in a nutshell
FULL NAMEWindows Bitmap Imageaka Device Independent Bitmap (DIB), BMP file
DEVELOPERMicrosoft (with IBM, for OS/2)since 1985-1990 (Windows 1.0/2.0; OS/2 1.x); BITMAPINFOHEADER form with Windows 3.0 (1990)
MIME TYPEimage/bmp
TYPEUncompressed (or lightly RLE-compressed) raster image, binary
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
424D
ASCII
BM
Standard files start with 'BM' (42 4D). Rare OS/2 variants use BA, CI, CP, IC or PT. Bytes 0x0A-0x0D give the pixel-data offset; the DWORD at 0x0E is the DIB header size, which identifies the header version (12=CORE, 40=INFO, 108=V4, 124=V5).

Programs that open BMP files

Windows5 apps
Adobe Photoshop Paid Open and edit the BMP; Save As to convert.
GIMP Open-source File > Open to edit; File > Export As to save as PNG/JPG.
IrfanView Free Open the .bmp; use File > Batch Conversion to convert many BMPs to PNG/JPG.
Photos (built-in) / Paint Built-in Double-click to view in Photos, or open in Paint to edit and re-save.
XnView MP Free Browse and view; right-click > Convert for batch export to other formats.
macOS2 apps
GIMP Open-source Open to edit, Export As to convert.
Preview (built-in) Built-in Double-click to open; File > Export to convert to PNG/JPEG.
Linux2 apps
GIMP Open-source File > Open; File > Export As for conversion.
ImageMagick (convert) Open-source Run: magick image.bmp image.png to convert from the command line.
Web1 app
Squoosh Free Drag the .bmp in; export as PNG/JPEG/WebP. Runs locally in the browser.

Technical details

deep spec
MIME typeimage/bmp (also image/x-bmp, image/x-ms-bmp)
Magic bytes42 4D ("BM") at byte offset 0
Byte orderLittle-endian
CompressionTypically none (BI_RGB); optional BI_RLE8 and BI_RLE4 run-length encoding; rare BI_BITFIELDS, BI_JPEG, BI_PNG
Supported color depths1, 4, 8, 16, 24, or 32 bits per pixel
Pixel row storageBottom-up by default (last row first); negative height value signals top-down; each row padded to a 4-byte boundary
File headerBITMAPFILEHEADER - 14 bytes; contains BM signature, total file size, and pixel-data offset
DIB header versionsBITMAPCOREHEADER (12 bytes), BITMAPINFOHEADER (40 bytes), BITMAPV4HEADER (108 bytes), BITMAPV5HEADER (124 bytes); version identified by DWORD at offset 0x0E
Alpha channelSupported in 32-bit mode via BITMAPV4HEADER and BITMAPV5HEADER; not available in 24-bit or earlier header versions
Maximum image dimensionsUp to ~2.1 billion pixels per side (32-bit signed int in BITMAPINFOHEADER); BITMAPCOREHEADER limits to 65,535 px per side
Color paletteOptional; up to 256 RGBQUAD entries used for indexed modes (1, 4, 8 bpp)
ICC color profileEmbedded ICC profile support added in BITMAPV5HEADER (Windows 98/2000); earlier headers carry no color-space metadata
Alternative extension.dib (Device Independent Bitmap) - identical format, used interchangeably on Windows
OS/2 variantsOS/2 Bitmap Array files use alternative magic signatures: BA, CI, CP, IC, PT
Released1985-1990 (Windows 1.0/2.0; OS/2 1.x); BITMAPINFOHEADER form with Windows 3.0 (1990)
Latest versionBITMAPV5HEADER (Windows 98/2000, 1998) - adds ICC color profiles
Open standardYes · royalty-free
Specificationlearn.microsoft.com

BMP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with BMP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about BMP files.

Frequently asked questions

How do I open a .bmp file?
Just double-click it - Windows Photos/Paint, macOS Preview, and tools like IrfanView, XnView, GIMP and Photoshop all open BMP natively. No special software is needed.
Why is my .bmp file so large?
BMP is normally uncompressed, storing every pixel directly, so files are big. Convert to PNG (lossless) or JPG (photos) to shrink them dramatically.
How do I convert BMP to PNG or JPG?
Open it in IrfanView, GIMP or Preview and 'Export/Save As' the new format, or use a local web tool like Squoosh. For many files, use IrfanView's or ImageMagick's batch mode.
Is BMP lossless?
Yes - standard uncompressed BMP keeps exact pixel values with no quality loss. That's why it's large; PNG gives the same losslessness with much smaller files.
Can a BMP have transparency?
Only 32-bit BMPs (with a V4/V5 header) carry an alpha channel, and support is inconsistent across apps. For reliable transparency, use PNG instead.
Can I convert a BMP to a vector (SVG/AI/DWG)?
Not directly - BMP is pixels, not shapes. You must trace it: Illustrator's Image Trace or Inkscape's Trace Bitmap turns the raster into editable vector paths.

References

1Microsoft Learn - Bitmap Storage (BMP file format)learn.microsoft.com
2Microsoft Learn - BITMAPINFOHEADER structurelearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.EXEWindows Executable (Portable Executable)
8.NOMEDIAAndroid No-Media Marker File
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.JPGJPEG Image
.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z