# BIL — ESRI .hdr Labelled (BIL/BSQ/BIP)

> BIL (ESRI .hdr Labelled (BIL/BSQ/BIP)): Raw binary raster described by an Esri-style .hdr text header, stored in band interleaved by line, band or pixel order. Specs, software and free sample files; convert BIL to 50 formats online.

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



## What is a BIL file?

The Esri .hdr labelled format stores raster data as raw, uncompressed binary values accompanied by a small text header file. The data file uses the extension .bil, .bsq or .bip, matching its band layout. BIL means band interleaved by line, BSQ means band sequential and BIP means band interleaved by pixel. The .hdr header describes the layout with keywords such as NROWS, NCOLS, NBANDS, NBITS, BYTEORDER, LAYOUT and PIXELTYPE. It also gives the map position through ULXMAP, ULYMAP, XDIM and YDIM.

The format has been used to distribute elevation and climate datasets, including several USGS elevation products, and is common in remote sensing. Additional sidecars may include a .prj file for the coordinate reference system, a .stx file with band statistics, a .clr colour map, or a .blw world file. Because the data is raw, files are easy to read programmatically but offer no compression. The header must be present for the data to be interpreted.

BIL, BSQ and BIP files are usually exchanged by agencies and researchers who publish elevation, climate or satellite rasters as raw binary grids. The data file is meaningless without its .hdr header, so keep both together, along with any .prj file. Check byte order, pixel type and band layout in the header, because a wrong value produces garbled or shifted pixel values.

### Technical details

| | |
|---|---|
| Full name | ESRI .hdr Labelled (BIL/BSQ/BIP) |
| Data type | Raster · Elevation & grid |
| File extension | .bil, .bsq, .bip |
| Files | Several files: .bil and .hdr |
| Media type | — |
| Bands | 1–N (multiband). |
| Pixel types | 8/16/32-bit integer, 32-bit float |
| Compression | None (raw) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read & write |
| Typical software | QGIS, ArcGIS Pro, GDAL/OGR, ENVI, ERDAS IMAGINE, Global Mapper |
| Specification | https://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/bil-bip-and-bsq-raster-files.htm |

### Specifications & references

- https://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/bil-bip-and-bsq-raster-files.htm
- https://gdal.org/en/stable/drivers/raster/ehdr.html

### Sample BIL files — free download

- [Elevation (Int16 BIL)](https://beta.mygeodata.cloud/static/landing/samples/v1/ehdr_bil/st-helena-dem-bil.zip) — Copernicus DEM GLO-30 elevation model of Saint Helena (0–812 m), a surface model including trees and buildings; sea = 0 m. 631×505 px, 1 arc-second (≈30 m) grid, WGS 84. ESRI BIL + .hdr + .prj, Int16. (170.7 kB, EPSG:4326)
- [Sentinel-2 multispectral (BIL)](https://beta.mygeodata.cloud/static/landing/samples/v1/ehdr_bil/st-helena-sentinel2-bands-bil.zip) — Six Sentinel-2 L2A surface-reflectance bands of Saint Helena (B02 blue, B03 green, B04 red, B08 near infrared, B11 and B12 shortwave infrared) at 20 m, UInt16, reflectance = DN / 10000. ESRI BIL (band interleaved by line) + .hdr + .prj. (3.3 MB, EPSG:32730)

### Convert BIL to other formats

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

## Frequently asked questions

### What is the difference between BIL, BSQ and BIP?

All three store the same raw pixel values and differ only in how bands are ordered. BSQ stores one whole band after another, BIL stores one row of each band in turn, and BIP stores all band values for each pixel together. The LAYOUT keyword in the .hdr file tells software which one is used.

### Why does my BIL file look distorted or show wrong elevation values?

This usually means the header values do not match the data, most often BYTEORDER, NBITS, PIXELTYPE or the row and column counts. A missing or renamed .hdr file causes the same problem. Make sure the .hdr has the same base name as the .bil file and sits in the same folder.

### Is a BIL file compressed or georeferenced?

The data is raw and uncompressed, so files can be large. Georeferencing comes from ULXMAP, ULYMAP, XDIM and YDIM in the .hdr, and the coordinate reference system is normally stored in a separate .prj file.

### What is a BIL file?

The Esri .hdr labelled format stores raster data as raw, uncompressed binary values accompanied by a small text header file. The data file uses the extension .bil, .bsq or .bip, matching its band layout. BIL means band interleaved by line, BSQ means band sequential and BIP means band interleaved by pixel. The .hdr header describes the layout with keywords such as NROWS, NCOLS, NBANDS, NBITS, BYTEORDER, LAYOUT and PIXELTYPE. It also gives the map position through ULXMAP, ULYMAP, XDIM and YDIM.

The format has been used to distribute elevation and climate datasets, including several USGS elevation products, and is common in remote sensing. Additional sidecars may include a .prj file for the coordinate reference system, a .stx file with band statistics, a .clr colour map, or a .blw world file. Because the data is raw, files are easy to read programmatically but offer no compression. The header must be present for the data to be interpreted.

### How do I open a BIL file?

BIL files can be opened in QGIS, ArcGIS Pro, GDAL/OGR, ENVI and ERDAS IMAGINE. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert BIL to?

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

### How do I create a BIL file?

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

### Which files belong to a BIL dataset?

A BIL dataset needs .bil and .hdr. Binary data plus .hdr descriptor for layout, data type, dimensions; georeferencing via .hdr/.prj.

