You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster conversion Free for small files

Convert BMP to HF2

Start here

Output: HF2
No file at hand? Try a sample BMP

No account needed — files are deleted automatically.

Convert Windows Bitmap (BMP) to HF2/HFZ Heightfield (HF2) right in your browser — layers, attributes and the coordinate system are handled for you.

  • No install, works on any device
  • 11,000+ coordinate systems
  • Batch files and ZIP archives
  • Secure, files deleted automatically

How to convert BMP to HF2

To convert BMP (Windows Bitmap) to HF2 (HF2/HFZ Heightfield), upload the BMP data to the MyGeodata Cloud Converter, select HF2 as the output format and download the result — online, without installing GIS software.

Output coordinate system
Any — your choice
Free credits
3 every 30 days
Input files
.bmp
Output files
.hf2

What happens when you convert BMP to HF2

Facts about both formats — so you know what the result will look like before you start.

Keep or change the coordinate system

The coordinate system of your BMP data is detected automatically. Keep it, or reproject the HF2 output to any of 11,000+ coordinate systems (EPSG, ESRI, IGNF).

Georeferencing inside the file

Unlike BMP, HF2 stores the coordinate system and position inside the file, so no sidecar files are needed.

Pixel types in HF2

HF2 supports 32-bit float (scaled). Values that do not fit the output type are reported before the conversion.

Bands

Single-band elevation.

Compression

HF2 uses: None, gzip (.hfz).

Reprojection with resampling

When you change the coordinate system, the raster is warped and resampled; the original pixels stay untouched if you keep it.

Convert BMP to HF2 in 4 steps

  1. 1

    Upload your BMP data

    Drag and drop your BMP file into the Converter — or several files at once.

  2. 2

    Check the input

    The Converter detects layers, attributes and the coordinate system and shows an overview. If the coordinate system is missing, you can assign it.

  3. 3

    Choose HF2 and options

    Select HF2 as the output format. Keep the coordinate system or pick another one. Optional settings let you pick layers, attributes and HF2-specific options.

  4. 4

    Download the result

    See the price in credits before you start, run the conversion and download the HF2 result.

BMP vs. HF2 — technical comparison

Property BMP · input HF2 · output
Full name Windows Bitmap HF2/HFZ Heightfield
Data type Raster · Image & imagery Raster · Elevation & grid
File extension .bmp .hf2, .hfz
Files Single file Single file
Media type — —
Bands Indexed (1/4/8-bit) or true color (24-bit). Single-band elevation.
Pixel types 1/4/8-bit indexed, 24-bit RGB 32-bit float (scaled)
Compression None, RLE (indexed variants) None, gzip (.hfz)
Coordinate system Sidecar file (world file / .aux.xml) Any (georeferenced)
Converter support Read & write Read & write
Typical software QGISGDAL/OGRArcGIS ProGlobal MapperGIMPAdobe Photoshop L3DTGDAL/OGRQGIS
Specification learn.microsoft.com/en-us/windows/win32/gdi/bit… gdal.org/en/stable/drivers/raster/hf2.html

Input format

What is BMP?

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.

Typical software

  • QGIS
  • GDAL/OGR
  • ArcGIS Pro
  • Global Mapper
  • GIMP
  • Adobe Photoshop
  • Microsoft Paint

Output format

What is HF2?

HF2 is a binary heightfield format designed by Bundysoft for terrain data exchange and is primarily associated with the L3DT terrain generation software. It stores digital elevation models for terrain modelling, game and simulation content, and visualisation. The .hfz extension denotes the same structure wrapped in gzip compression.

A file begins with a header containing the HF2 signature, grid dimensions, tile size, vertical precision and horizontal scale. Optional extended header blocks can carry georeferencing or projection information. The elevation grid is divided into square tiles. Each tile stores its own scale and offset, and heights are encoded as compact integer differences, so values are reconstructed as 32-bit floating point with quantisation limited to the declared vertical precision. This scheme makes files considerably smaller than raw floating-point grids. Only a single elevation band is supported, and coordinate reference system information is optional.

Typical software

  • L3DT
  • GDAL/OGR
  • QGIS

Free sample BMP files

Real OpenStreetMap, Copernicus and Sentinel data of Saint Helena — download a BMP sample or convert it to HF2 with one click.

All samples →
Preview of the sample data: Saint Helena land-cover raster st-helena-landcover-bmp.zip

Land cover (8-bit palette)

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).

  • 1 band · Byte
  • 906 × 762 px
  • 20 m
  • EPSG:32730
  • 20.6 kB

Inside: README.txt, st-helena-landcover.bmp, st-helena-landcover.bmp.aux.xml, st-helena-landcover.wld

© OpenStreetMap contributors, ODbL 1.0

Preview of the sample data: Saint Helena shaded relief st-helena-relief-bmp.zip

Shaded relief (24-bit RGB)

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).

  • 3 bands · Byte
  • 906 × 762 px
  • 20 m
  • EPSG:32730
  • 775.3 kB

Inside: README.txt, st-helena-relief.bmp, st-helena-relief.bmp.aux.xml, st-helena-relief.wld

Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA · © OpenStreetMap contributors, ODbL 1.0

Frequently asked questions

Open the Converter, drop your BMP files, check the detected layers and coordinate system, choose HF2 as the output and download the result. Everything runs in your browser — there is no software to install.

GeoCzech API

Automate BMP to HF2 conversions

The same engine is available as a REST API — convert files from scripts, ETL pipelines or your own application. Results are identical to the web Converter.

Read the Converter API docs →
cURL
curl -X POST "https://api.geoczech.dev/v2/tool/converter" \
  -H "X-API-Key: $GEOCZECH_API_KEY" \
  -F "files=@data.bmp" \
  --form-string 'params={"output": {"format": "hf2"}}' \
  -F "wait=true"

Ready to get your HF2 file?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.