# GRIB — WMO GRIdded Binary (GRIB/GRIB2)

> GRIB (WMO GRIdded Binary (GRIB/GRIB2)): WMO-standard binary format for gridded meteorological and oceanographic data such as weather forecasts and analyses. Specs, software and free sample files; convert GRIB to 51 formats online.

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



## What is a GRIB file?

GRIB (GRIdded Binary) is a binary format standardised by the World Meteorological Organization for storing and exchanging gridded meteorological and oceanographic data. Two editions are in common use: GRIB edition 1 and the more flexible GRIB edition 2. Weather services and forecasting centres use it to distribute numerical weather prediction output, analyses and reanalyses of fields such as temperature, wind, pressure and precipitation.

A GRIB file is a sequence of self-contained messages. Each message holds one two-dimensional field for a single parameter, level and time. It is divided into sections describing the originating centre, the grid and its projection (for example regular latitude/longitude, Gaussian, Lambert conformal or polar stereographic), the product and the packed values. Simple and complex packing, and in GRIB2 also JPEG 2000 and PNG compression, keep files compact. Parameters are identified through code tables, including centre-specific local tables, so correct interpretation depends on the decoder having matching tables.

GRIB files are mostly exchanged by national weather services, forecasting centres and researchers who work with model output, analyses and reanalyses. A single file often holds hundreds of messages for many parameters, levels and forecast times, so check which fields you actually need. Grids may be non-regular, and parameter names depend on the code tables used, including centre-specific local tables.

### Technical details

| | |
|---|---|
| Full name | WMO GRIdded Binary (GRIB/GRIB2) |
| Data type | Raster · Scientific & multidimensional |
| File extension | .grb, .grib, .grb2, .grib2 |
| Files | Single file |
| Media type | — |
| Bands | Many variables/bands across time/levels; treated as multiple bands or subdatasets. |
| Pixel types | Typically decoded to 16/32-bit integers or 32-bit float (packed internally) |
| Compression | GRIB1 packing, GRIB2 packing (including JPEG2000/PNG) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read only |
| Typical software | wgrib2, ecCodes, GDAL/OGR, QGIS, ArcGIS Pro, Panoply |
| Specification | https://gdal.org/en/stable/drivers/raster/grib.html |

### Specifications & references

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

### Sample GRIB files — free download

- [Elevation (GRIB2)](https://beta.mygeodata.cloud/static/landing/samples/v1/grib/st-helena-dem.grib2) — 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. GRIB2 message, discipline 2 (land surface), parameter 0.7 model terrain height. (505.9 kB, EPSG:4326)

### Convert GRIB to other formats

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

## Frequently asked questions

### Why does one GRIB file open as many bands or subdatasets?

Each message stores one field for a single parameter, level and time. Software that reads the file as a raster therefore shows every message as a separate band or subdataset, so a forecast file can contain hundreds of them.

### What is the difference between GRIB1 and GRIB2?

GRIB2 is the newer, more flexible edition. It has an extended section structure, more grid and product definitions, and additional compression such as JPEG 2000 and PNG. GRIB1 files are still common in older archives, and the two editions use different code tables.

### Why are some parameters shown as unknown or with wrong names?

Parameters are identified by numeric codes from standard and centre-specific local tables. If the software lacks the matching table, a field may appear as unknown or be labelled incorrectly. Using an up-to-date decoder with the originating centre's tables usually fixes this.

### What is a GRIB file?

GRIB (GRIdded Binary) is a binary format standardised by the World Meteorological Organization for storing and exchanging gridded meteorological and oceanographic data. Two editions are in common use: GRIB edition 1 and the more flexible GRIB edition 2. Weather services and forecasting centres use it to distribute numerical weather prediction output, analyses and reanalyses of fields such as temperature, wind, pressure and precipitation.

A GRIB file is a sequence of self-contained messages. Each message holds one two-dimensional field for a single parameter, level and time. It is divided into sections describing the originating centre, the grid and its projection (for example regular latitude/longitude, Gaussian, Lambert conformal or polar stereographic), the product and the packed values. Simple and complex packing, and in GRIB2 also JPEG 2000 and PNG compression, keep files compact. Parameters are identified through code tables, including centre-specific local tables, so correct interpretation depends on the decoder having matching tables.

### How do I open a GRIB file?

GRIB files can be opened in wgrib2, ecCodes, GDAL/OGR, QGIS and ArcGIS Pro. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert GRIB to?

Popular conversions are netCDF raster, TIF, XYZ, JPG, HFA and BIL. In total the Converter writes GRIB data to 51 formats.

