.dib File Extension

Learn what a .dib file is, which apps can open device-independent bitmaps, how Poly supports them, and when to convert one.

File extension details for .dib

Partial Support
File typeDevice-independent bitmap image
MIME type
EncodingBinary raster image, commonly little-endian and uncompressed or RLE-compressed
Operating systemsWindows, macOS, Linux
Opens withAdobe Photoshop, GIMP, ImageMagick
Poly supportPartial. Poly supports DIB image data when the file is identified as image/bmp.
Indexed by PolyPartial. Recognized images receive dimensions, available metadata, and visual indexing; other DIB files remain searchable by name.
Preview in PolyPartial. Decodable DIB images identified as image/bmp open in Poly's image viewer.
Poly agentPartial. The Poly agent can understand a successfully generated image preview.

What kind of file is a .dib?

A .dib file is usually a Windows device-independent bitmap. It stores raster pixels together with information needed to reproduce their colors across different displays and printers. IANA registers .dib alongside .bmp for the image/bmp MIME type.1

DIB and BMP are closely related, but the names do not always imply identical bytes. A conventional bitmap file starts with a 14-byte BITMAPFILEHEADER; its first two bytes are 42 4D, or BM. The DIB information header, optional color table, and pixel data follow.2 DIB structures also occur without that file header in Windows memory, clipboard data, resources, icons, and metafiles. A .dib that lacks BM may therefore be raw DIB data rather than a damaged BMP.

Renaming a file between .dib and .bmp does not add or remove a header, and it does not convert the pixels. Inspect the structure when compatibility matters.

How do I open a .dib on my computer?

Try Adobe Photoshop, GIMP, or ImageMagick on Windows, macOS, or Linux. Conventional files with a complete BMP-style header have the best chance of opening. Windows graphics or development tools may also understand raw DIB structures used by a particular application.

If an app rejects the file, check the opening bytes. 42 4D suggests a standalone BMP-style file. A value such as 28 00 00 00 can instead be the little-endian size of a 40-byte BITMAPINFOHEADER, though other DIB header sizes exist.3 Use the program that created the file when its layout is uncertain.

Poly support for .dib

Poly can preview and visually index decodable DIB content when the file is identified as image/bmp. Successful files receive an image preview, dimensions, visual search, and agent understanding of the rendered image.

Poly does not currently infer image/bmp from the .dib suffix alone. Without a supplied media type, the file remains stored and searchable by name rather than receiving image-specific processing. Text drawn into the pixels is not indexed as document text.

History of .dib

Microsoft and IBM developed Windows Bitmap in the 1980s so applications could move raster graphics between devices with different color organization. A DIB carries pixel dimensions, color format, a palette when needed, and a compression identifier instead of depending on one display's native representation.4

The layout evolved from 16-bit to 32-bit structures and later gained additional color spaces, profiles, and compression choices. Microsoft had publicly documented it by the Windows 3.1 SDK in 1992. RFC 7903 registered image/bmp in 2016 and formally listed both .bmp and .dib extensions.15

Working with .dib and alternatives

Uncompressed DIB data can be large. A 1920 by 1080 image at 24 bits per pixel needs about 5.93 MiB for pixels alone, before headers and any row padding.

NeedPractical choice
Lossless screenshot, diagram, or transparencyPNG
Smaller photographic imageJPEG
Modern web deliveryWebP or AVIF
Legacy Windows API or resource workflowDIB or BMP in the exact required layout

Exporting an uncompressed DIB to PNG normally preserves its pixels while reducing size. JPEG is often smaller for photographs, but it discards detail. Before deleting the source, compare color, transparency, and orientation, especially when converting an unusual header or compression variant.

Footnotes

  1. Internet Assigned Numbers Authority. image/bmp Media Type Registration. 2
  2. Microsoft. BITMAPFILEHEADER Structure.
  3. Microsoft. BitmapInfoHeader Object.
  4. Microsoft. Device-Independent Bitmaps.
  5. Leonard, S. RFC 7903: Windows Image Media Types. Internet Engineering Task Force, September 2016.
© Poly Corp. 2026