BMP File Signature & Magic Bytes (.bmp — 42 4D)
Windows Bitmap (BMP) stores uncompressed (or lightly RLE-compressed) raster pixel arrays originating in OS/2 and Microsoft Windows. Standard BMP files begin at byte 0 with the 2-byte ASCII magic BM (42 4D) followed by a 12-byte file header and a Device-Independent Bitmap (DIB) header (minimum 26 bytes total).
Signature & identification summary
| Detected format name | BMP image |
|---|---|
| Hexadecimal magic bytes | 42 4D |
| ASCII / marker preview | BM |
| Byte offset | 0 |
| MIME type | image/bmp |
| Common extensions & aliases | .bmp, .dib |
Check whether your file really is BMP.
Drop any file into File Sniff’s free local browser checker to verify its 42 4D signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
Because 2 bytes (BM) alone could match ordinary English text starting with “BM…”, careful detectors verify file length and header bounds alongside the BM signature. Pixel rows in classic bottom-up BMPs are stored from the bottom scanline upward, padded to 4-byte multiples.
Extension mismatches & common pitfalls
Legacy Windows medical, industrial and CAD software occasionally writes uncompressed BM bitmaps with a .jpg or .raw suffix, resulting in multi-megabyte files.
Which apps open BMP files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Preview, Safari, Photos, Pixelmator Pro, Photoshop |
| iPhone & iPad | Photos, Files Quick Look, Safari |
| Windows | Paint, Photos, File Explorer, every Windows imaging tool |
Free local tools & related guides
- Check whether a file really is BMP
- Inspect raw bytes in the Hex Viewer
- Guide: File Signatures & Magic Bytes Guide
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.