# HFA — Erdas Imagine IMG

> HFA (Erdas Imagine IMG): Native raster format of ERDAS IMAGINE, based on the Hierarchical File Architecture, for multiband imagery and pyramids. Specs, software and free sample files; convert HFA to 50 formats online.

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



## What is a HFA file?

The ERDAS IMAGINE image format, usually seen as files with the .img extension, is the native raster format of the ERDAS IMAGINE remote sensing software. It was developed by ERDAS, and the product line is now part of Hexagon. The file is built on the Hierarchical File Architecture (HFA), a tree of typed nodes that holds raster bands, georeferencing, statistics, histograms, colour tables, attribute tables and other metadata in one binary file.

The format is widely used for satellite and aerial imagery, classified rasters and elevation data. It supports any number of bands and a range of integer and floating-point pixel types, with optional run-length compression. Very large rasters can be stored in an external spill file (.ige). Reduced-resolution pyramids may be kept internally or in a separate .rrd file, and auxiliary metadata may sit in .aux files. Projection information is stored inside the file, although some uncommon projections can translate imperfectly between applications.

Erdas Imagine IMG files usually come from remote sensing and photogrammetry workflows, where satellite scenes, classified land cover and elevation rasters are exchanged between analysts and agencies. Although the data sits in one .img file, it may depend on companion files such as .ige, .rrd or .aux. Keep these together when copying or sending data, and check the projection and band count after conversion.

### Technical details

| | |
|---|---|
| Full name | Erdas Imagine IMG |
| Data type | Raster · Image & imagery |
| File extension | .img |
| Files | Single file |
| Media type | — |
| Bands | 1–N (single/multi-band). |
| Pixel types | 8/16/32-bit int, 32-bit float |
| Compression | None, RLE/JPEG/LZW (driver/profile dependent) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read & write |
| Typical software | ERDAS IMAGINE, ArcGIS Pro, QGIS, GDAL/OGR, Global Mapper, ENVI |
| Specification | https://gdal.org/en/stable/drivers/raster/hfa.html |

### Specifications & references

- https://gdal.org/en/stable/drivers/raster/hfa.html

### Sample HFA files — free download

- [Elevation (Float32)](https://beta.mygeodata.cloud/static/landing/samples/v1/hfa/st-helena-dem.img) — 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. ERDAS Imagine, compressed. (569.9 kB, EPSG:4326)
- [Sentinel-2 multispectral (6 bands)](https://beta.mygeodata.cloud/static/landing/samples/v1/hfa/st-helena-sentinel2-bands.img) — 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. ERDAS Imagine, compressed. (4.4 MB, EPSG:32730)
- [Land cover (thematic, with class names)](https://beta.mygeodata.cloud/static/landing/samples/v1/hfa/st-helena-landcover.img) — Land-cover classes of Saint Helena rasterised from OpenStreetMap at 20 m (13 classes incl. sea, buildings and airport), Byte with a colour palette. ERDAS Imagine thematic layer with colour table and class names. (52.3 kB, EPSG:32730)

### Convert HFA to other formats

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

## Frequently asked questions

### Why is my IMG file missing data or very small when I copy it?

Large rasters can keep their pixel data in an external spill file with the .ige extension. Pyramids may be in a separate .rrd file. Copy all files with the same base name into one folder, or the image may fail to open or look incomplete.

### Is an Erdas IMG file the same as other files with the .img extension?

No. The .img extension is also used by other formats, such as ENVI or disk image files. Erdas Imagine IMG is identified by its HFA structure, which GDAL-based tools detect from the file content rather than from the extension.

### Will the projection survive conversion from HFA to another format?

Usually yes, because the coordinate system is stored inside the file. Some uncommon projections may translate imperfectly between applications, so compare the coordinate system and extent of the result with the original.

### What is a HFA file?

The ERDAS IMAGINE image format, usually seen as files with the .img extension, is the native raster format of the ERDAS IMAGINE remote sensing software. It was developed by ERDAS, and the product line is now part of Hexagon. The file is built on the Hierarchical File Architecture (HFA), a tree of typed nodes that holds raster bands, georeferencing, statistics, histograms, colour tables, attribute tables and other metadata in one binary file.

The format is widely used for satellite and aerial imagery, classified rasters and elevation data. It supports any number of bands and a range of integer and floating-point pixel types, with optional run-length compression. Very large rasters can be stored in an external spill file (.ige). Reduced-resolution pyramids may be kept internally or in a separate .rrd file, and auxiliary metadata may sit in .aux files. Projection information is stored inside the file, although some uncommon projections can translate imperfectly between applications.

### How do I open a HFA file?

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

### What can I convert HFA to?

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

### How do I create a HFA file?

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

