The short answer
- BMP is a binary raster image format developed by Microsoft that stores monochrome or color pixels at various bit depths, often without compression and therefore in large files.
- Open a BMP with a compatible image viewer, web browser, office application, desktop-publishing program or image editor. On Windows, double-click the file and choose an installed image application if prompted. On macOS or a phone, use an image viewer or browser that recognizes BMP; support for uncommon bit depths, compression methods, alpha or color profiles may vary.
- BMP contains no executable active content, so its direct execution risk is low, but that does not make every file safe. A BMP may encapsulate JPEG or PNG data through BI_JPEG or BI_PNG, and malformed untrusted files can expose weaknesses in the underlying decoder. The format provides no privacy or integrity protection. Check the source, keep the viewing software current and do not trust the extension alone.
BMP (Windows Bitmap) file
BMP means Windows Bitmap. A standard file contains a BITMAPFILEHEADER, an information header, an optional color table and pixel data; the file header records the size and pixel-data offset. DIB means Device-Independent Bitmap and commonly describes the in-memory structure used when Windows software loads a BMP. BMP may support indexed color, lossless compression, alpha and ICC profiles.
PNG is the preferable target when fidelity matters because it supports lossless compression. After BMP-to-PNG conversion, verify bit depth, transparency and ICC profile handling. Converting BMP to a lossy target such as JPEG can discard pixel information, so retain the original when exact preservation matters.
How to open it
Open a BMP with a compatible image viewer, web browser, office application, desktop-publishing program or image editor. On Windows, double-click the file and choose an installed image application if prompted. On macOS or a phone, use an image viewer or browser that recognizes BMP; support for uncommon bit depths, compression methods, alpha or color profiles may vary.
Open a BMP with a compatible image viewer, web browser, office application, desktop-publishing program or image editor. On Windows, double-click the file and choose an installed image application if prompted. On macOS or a phone, use an image viewer or browser that recognizes BMP; support for uncommon bit depths, compression methods, alpha or color profiles may vary.
PNG is the preferable target when fidelity matters because it supports lossless compression. After BMP-to-PNG conversion, verify bit depth, transparency and ICC profile handling. Converting BMP to a lossy target such as JPEG can discard pixel information, so retain the original when exact preservation matters.
File safety
BMP contains no executable active content, so its direct execution risk is low, but that does not make every file safe. A BMP may encapsulate JPEG or PNG data through BI_JPEG or BI_PNG, and malformed untrusted files can expose weaknesses in the underlying decoder. The format provides no privacy or integrity protection. Check the source, keep the viewing software current and do not trust the extension alone.
An unknown sender, a name ending in two extensions, or contents that do not match the extension — check before you open it.
Converting it
PNG is the preferable target when fidelity matters because it supports lossless compression. After BMP-to-PNG conversion, verify bit depth, transparency and ICC profile handling. Converting BMP to a lossy target such as JPEG can discard pixel information, so retain the original when exact preservation matters.
Convert a copy, never the original, then compare quality, metadata, and layout against what you started with.
Common questions
What is a BMP file and what is it used for?
A BMP, or Windows Bitmap, is Microsoft's binary raster-image format for monochrome or color pixel data. It is widely supported by Windows, office, publishing, browser and image-processing applications, but files are often large because they are commonly uncompressed.
How do I open a BMP file?
Use an image viewer, browser, office application, desktop-publishing program or image editor that supports BMP. If the file fails to display, the application may not support its particular bit depth, compression, alpha channel or color profile.
How do I open a BMP file on Windows?
Double-click the BMP and select an installed image application if Windows asks which program to use. Windows is the format's primary platform, although support for a particular BMP variant still depends on the application.
How do I open a BMP file on a Mac?
Open the BMP with a compatible macOS image viewer, browser or image editor. If one application rejects it, try another that supports the file's bit depth, compression method and color information.
How do I open a BMP file on a phone?
Use a mobile browser, image viewer or image-editing app that states BMP support. Very large, usually uncompressed BMP images may require more storage and memory than compressed alternatives.
Why will my BMP file not open or appear corrupted?
The extension may be wrong, the file may be truncated, or header fields may disagree with the file size or pixel-data offset. A BMP normally begins with hexadecimal 42 4D, but that marker alone does not prove the remaining structure is valid.
What is the difference between BMP and DIB?
BMP is the file format, while DIB means Device-Independent Bitmap and commonly refers to the related in-memory bitmap structure used by Windows software. They are closely related, but the terms describe different storage contexts.
Can I convert BMP to PNG without losing quality?
PNG uses lossless compression and is the preferable target for fidelity, but conversion is not automatically identical. Verify that the workflow preserves the BMP's bit depth, transparency and ICC color profile.
Does converting BMP to JPEG reduce image quality?
It can. JPEG uses lossy encoding, so BMP-to-JPEG conversion may discard pixel information. Keep the BMP original if exact preservation is required.
Is a BMP file safe to open?
BMP has no executable active content, so direct execution risk is low, but malformed files can still target decoder flaws. BMP can also encapsulate JPEG or PNG data; open untrusted images with current software and remember that BMP supplies no privacy or integrity protection.
Does the 42 4D BMP signature prove the file is genuine and safe?
No. Hexadecimal 42 4D, the ASCII letters BM, is the usual opening signature for BMP/DIB files, but later fields must also agree with the file size, pixel offset and structure. A valid-looking signature neither proves the image is trustworthy nor guarantees safe decoding.
Related formats
Sources
Bitmap Storage — Win32 apps · Microsoft Learn(格式开发者官方文档)
RFC 7903: Windows Image Media Types · RFC Editor / IETF 发布的权威媒体类型注册文档
IANA Media Types Registry: image/bmp · IANA 官方媒体类型注册表
Bitmap Image File (BMP), Version 5 · 美国国会图书馆数字格式登记
Portable Network Graphics (PNG) · 美国国会图书馆数字格式登记