# BMP — Windows Bitmap

> BMP (Windows Bitmap): Microsoft Windows device-independent bitmap image format, georeferenced in GIS only through world file sidecars. Specs, software and free sample files; convert BMP to 50 formats online.

- Page: https://beta.mygeodata.cloud/formats/bmp



## What is a BMP file?

Windows Bitmap (BMP) is a raster image format defined by Microsoft for the Windows operating system. It is also known as the device-independent bitmap (DIB). In GIS work it appears occasionally as a simple map backdrop, a scanned map or an export from older software, but it is rarely used for serious geospatial storage.

A file consists of a file header, an information header describing dimensions and bit depth, an optional colour palette and the pixel array, which is usually stored bottom-up. Common variants include 1-, 4- and 8-bit indexed colour and 24-bit true colour, and some versions support 16- and 32-bit pixels. Data is usually uncompressed, although run-length encoding is available for 4- and 8-bit indexed images. This leads to large file sizes. BMP has no internal georeferencing, so GIS software relies on a world file and a .prj or .aux.xml sidecar for position and coordinate reference system.

BMP files usually reach GIS users as scanned maps, screenshots, legends or exports from older Windows software rather than as true geodata. Because the format stores no coordinates, the image is only a picture until it is paired with a world file and a projection definition. Check that the sidecar files share the base name and stay in the same folder, and expect large files because pixel data is mostly uncompressed.

### Technical details

| | |
|---|---|
| Full name | Windows Bitmap |
| Data type | Raster · Image & imagery |
| File extension | .bmp |
| Files | Single file |
| Media type | — |
| Bands | Indexed (1/4/8-bit) or true color (24-bit). |
| Pixel types | 1/4/8-bit indexed, 24-bit RGB |
| Compression | None, RLE (indexed variants) |
| Coordinate system | Sidecar file (world file / .aux.xml) |
| Converter support | Read & write |
| Typical software | QGIS, GDAL/OGR, ArcGIS Pro, Global Mapper, GIMP, Adobe Photoshop |
| Specification | https://learn.microsoft.com/en-us/windows/win32/gdi/bitmap-storage |

### Specifications & references

- https://learn.microsoft.com/en-us/windows/win32/gdi/bitmap-storage
- https://gdal.org/en/stable/drivers/raster/bmp.html

### Sample BMP files — free download

- [Land cover (8-bit palette)](https://beta.mygeodata.cloud/static/landing/samples/v1/bmp/st-helena-landcover-bmp.zip) — Land-cover classes of Saint Helena rasterised from OpenStreetMap at 20 m (13 classes incl. sea, buildings and airport), Byte with a colour palette. Georeferenced by a world file and .aux.xml (CRS). (20.6 kB, EPSG:32730)
- [Shaded relief (24-bit RGB)](https://beta.mygeodata.cloud/static/landing/samples/v1/bmp/st-helena-relief-bmp.zip) — Colour shaded relief of Saint Helena (hypsometric tint × multidirectional hillshade) from Copernicus DEM, 20 m, 8-bit RGB, UTM zone 30S. Georeferenced by a world file and .aux.xml (CRS). (775.3 kB, EPSG:32730)

### Convert BMP to other formats

- [BMP to HFA](https://beta.mygeodata.cloud/converter/bmp-to-hfa)
- [BMP to JPG](https://beta.mygeodata.cloud/converter/bmp-to-jpg)
- [BMP to TIF](https://beta.mygeodata.cloud/converter/bmp-to-tif)
- [BMP to KMZ raster](https://beta.mygeodata.cloud/converter/bmp-to-kmz-raster)
- [BMP to GeoPDF raster](https://beta.mygeodata.cloud/converter/bmp-to-geopdf-raster)
- [BMP to BIL](https://beta.mygeodata.cloud/converter/bmp-to-bil)
- [BMP to DEM](https://beta.mygeodata.cloud/converter/bmp-to-dem)
- [BMP to JP2](https://beta.mygeodata.cloud/converter/bmp-to-jp2)
- [BMP to XYZ](https://beta.mygeodata.cloud/converter/bmp-to-xyz)
- [BMP to MBTiles raster](https://beta.mygeodata.cloud/converter/bmp-to-mbtiles-raster)
- [BMP to GRD](https://beta.mygeodata.cloud/converter/bmp-to-grd)
- [BMP to PNG](https://beta.mygeodata.cloud/converter/bmp-to-png)
- [BMP to GIF](https://beta.mygeodata.cloud/converter/bmp-to-gif)
- [BMP to GPKG raster](https://beta.mygeodata.cloud/converter/bmp-to-gpkg-raster)
- [BMP to RST](https://beta.mygeodata.cloud/converter/bmp-to-rst)
- [BMP to ENVI](https://beta.mygeodata.cloud/converter/bmp-to-envi)
- [BMP to netCDF raster](https://beta.mygeodata.cloud/converter/bmp-to-netcdf-raster)
- [BMP to AAIGrid](https://beta.mygeodata.cloud/converter/bmp-to-aaigrid)

## Frequently asked questions

### Why does my BMP appear in the wrong place or without a position in GIS software?

BMP has no internal georeferencing, so the software has no coordinates to read. Add a world file (usually .bpw or .bmpw) with the same base name and a .prj or .aux.xml file for the coordinate system, or georeference the image manually.

### How does BMP differ from GeoTIFF?

Both store raster pixels, but GeoTIFF embeds coordinates and the coordinate reference system in the file and supports more pixel types and compression options. BMP is a plain image that needs sidecar files for location and is generally much larger.

### Why is my BMP file so large?

Most BMP files are uncompressed, so every pixel is stored in full, for example 3 bytes per pixel in 24-bit images. Only 4- and 8-bit indexed images can use run-length encoding. Converting to a compressed format such as PNG or GeoTIFF with compression greatly reduces the file size.

### What is a BMP file?

Windows Bitmap (BMP) is a raster image format defined by Microsoft for the Windows operating system. It is also known as the device-independent bitmap (DIB). In GIS work it appears occasionally as a simple map backdrop, a scanned map or an export from older software, but it is rarely used for serious geospatial storage.

A file consists of a file header, an information header describing dimensions and bit depth, an optional colour palette and the pixel array, which is usually stored bottom-up. Common variants include 1-, 4- and 8-bit indexed colour and 24-bit true colour, and some versions support 16- and 32-bit pixels. Data is usually uncompressed, although run-length encoding is available for 4- and 8-bit indexed images. This leads to large file sizes. BMP has no internal georeferencing, so GIS software relies on a world file and a .prj or .aux.xml sidecar for position and coordinate reference system.

### How do I open a BMP file?

BMP files can be opened in QGIS, GDAL/OGR, ArcGIS Pro, Global Mapper and GIMP. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert BMP to?

Popular conversions are HFA, JPG, TIF, KMZ raster, GeoPDF raster and BIL. In total the Converter writes BMP data to 50 formats.

### How do I create a BMP file?

Convert existing data to BMP — for example from HFA, TIF, JPG, JP2 and KMZ raster. Upload the file, choose BMP as output and download the result.

