.GRB

GRB File

GRIB (GRIdded Binary / General Regularly-distributed Information in Binary form)
Ask a question
QUICK ANSWER

A GRB file contains GRIB meteorological data - a binary format the World Meteorological Organization defined for distributing weather model output (temperature, wind, precipitation on a global grid). To open one, use XyGrib or Panoply for a visual map, or wgrib2 and eccodes on the command line. Python users can read it with cfgrib or pygrib.

Developer: World Meteorological Organization (WMO) Category: GIS Files Open standard MIME: application/x-grib
OPENS ON Windows macOS Linux Web
Related: .GPX · .GML · .KML · .SHP

On this page

19k+ extensions indexed
Last reviewed Jul 29, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the GRB file format?

.grb is a binary gridded data file used almost exclusively in meteorology and numerical weather prediction (NWP). GRIB stands for GRIdded Binary - or more formally General Regularly-distributed Information in Binary form - a standard defined and maintained by the World Meteorological Organization (WMO).

Each .grb file consists of one or more concatenated GRIB messages. Every message begins with the 4-byte ASCII signature GRIB and ends with 7777, and encodes a single atmospheric field - for example, temperature at 850 hPa at forecast hour T+24. A complete model run from systems such as GFS, ECMWF, or ICON produces hundreds of concatenated messages covering multiple variables, pressure levels, and forecast times.

Two editions exist. GRIB Edition 1 (1990) is a legacy format still found in older archives. GRIB Edition 2 (2001) is the current WMO standard, identified by edition byte 0x02 at octet 8 of the Indicator Section; it adds richer parameter tables, improved ensemble and probability support, and optional JPEG 2000 or PNG field compression. GRIB2 data is more commonly given the .GRB2 or .grib2 extension, though many tools also use .grb for both editions. The edition must be determined by inspecting the binary content, not the filename.

Decoding .grb files requires specialist software: wgrib2 (NOAA/CPC), ecCodes (ECMWF), and Panoply (NASA GISS) are standard options. Marine navigation and aviation weather apps such as XyGrib and LuckGrib also read .grb files directly.

Security & safety

RISK: LOW

GRIB is a passive binary data format (gridded numbers) - it cannot execute code and poses no malware risk. Practical risk is data quality: malformed or truncated GRIB files are common from partial downloads; always validate with 'grib_ls' or 'wgrib2 -V'. Some third-party GRIB "viewer" download sites bundle adware - get tools from official project sites (GDAL, eccodes, XyGrib).

Format details

in a nutshell
FULL NAMEGRIB (GRIdded Binary / General Regularly-distributed Information in Binary form)aka GRIB1, GRIB2
DEVELOPERWorld Meteorological Organization (WMO)since 1985 (GRIB Ed.0); GRIB1 1990; GRIB2 2001
CATEGORYGIS Files
MIME TYPEapplication/x-grib
TYPEBinary gridded meteorological/atmospheric data file
STANDARDOpen · royalty-free
This extension is also used by…
  • Gerber RS-274X / PCB artwork file - Some PCB EDA tools use .grb for Gerber format (printed circuit board artwork layers); completely unrelated to meteorology.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
47524942
ASCII
GRIB
Both GRIB1 and GRIB2 start with the 4-byte ASCII string "GRIB" and end with "7777". Octet 8 of the Indicator Section contains the edition number: 0x01 = GRIB1, 0x02 = GRIB2. A single .grb file can contain multiple concatenated GRIB messages, each starting with "GRIB".

Programs that open GRB files

Windows4 apps
XyGrib Open-source Open the .grb file in XyGrib; displays weather fields on a map with animated time steps.
GDAL (gdal_translate / gdalinfo) Open-source Command line: 'gdalinfo file.grb' lists bands; 'gdal_translate' exports to GeoTIFF/NetCDF. Handles both GRIB1 and GRIB2.
Panoply (NASA GISS) Free Java-based viewer: open the .grb file, select a variable/time step, render as a georeferenced map.
PredictWind (web/app) Freemium Upload or download GRIB forecasts via the web interface or mobile app for sailing routing.
macOS3 apps
LuckGrib Paid Native macOS GRIB reader; download and visualize GFS/ICON/CMC forecasts.
XyGrib Open-source Cross-platform GRIB viewer - open .grb or .grb2 files for animated weather map display.
Panoply (NASA GISS) Free Open the .grb file, browse parameters and render maps.
Linux4 apps
GDAL Open-source gdalinfo/gdal_translate for GRIB1/2; available in all distro repos. Widely used in GIS/Python stacks.
eccodes (ECMWF) Open-source grib_ls, grib_dump, grib_get: inspect and decode any GRIB1/2 message. The professional tool for meteorological GRIB.
wgrib2 (NOAA/CPC) Open-source wgrib2 file.grb -var -lev lists contents; wgrib2 file.grb -netcdf out.nc exports fields. The dominant NWP operations tool.
XyGrib Open-source Desktop GRIB viewer for Linux (AppImage available); good for marine/sailing GRIB files.
Web1 app
PredictWind GRIB Viewer Freemium Upload a GRIB file in-browser to view animated weather maps.

Technical details

deep spec
Magic bytesASCII 'GRIB' (47 52 49 42) at offset 0; each message ends with ASCII '7777' (37 37 37 37)
Edition byteOctet 8 of Indicator Section: 0x01 = GRIB Edition 1 (1990); 0x02 = GRIB Edition 2 (2001)
Byte orderBig-endian throughout (all numeric fields)
Multi-message filesA single .grb file may contain hundreds of concatenated GRIB messages, each bounded by 'GRIB'...'7777'
GRIB1 message sectionsIndicator → Product Definition → Grid Definition → optional Bitmap → Binary Data → End ('7777')
GRIB2 message sectionsNumbered Sections 0-8, replacing GRIB1's fixed layout; allows multiple data fields per message
Field packing (GRIB1)Simple grid-point packing: reference value + bit-scale factor + scaled integer values
Field compression (GRIB2)Optional JPEG 2000 or PNG encoding per Data Representation Section; simple packing also available
Parameter identification (GRIB2)WMO discipline + category + parameter number triplet; official tables published by WMO
Missing-value handlingOptional Bitmap Section in each message flags grid points with no valid data
Grid types supportedLat/lon (equidistant cylindrical), Gaussian, Lambert conformal, polar stereographic, and others
Typical file size100 KB - 2 GB (single field to full global NWP model run)
MIME typeapplication/x-grib (common); application/x-grib2 (GRIB2 specific); no IANA-registered type
Released1985 (GRIB Ed.0); GRIB1 1990; GRIB2 2001
Latest versionGRIB2 (Edition 2, WMO FM 92-XII); GRIB3 in development
Open standardYes · royalty-free
Specificationwww.wmo.int

GRB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GRB files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about GRB files.

Frequently asked questions

How do I open a GRB file?
Use XyGrib (free desktop app, all platforms) for sailing/weather maps, or Panoply (NASA, free, all platforms) for scientific visualization. On the command line use wgrib2 (NOAA) or grib_ls from the eccodes package. Python users can read with cfgrib or pygrib.
What is a GRB/GRIB file used for?
GRIB is the standard format for distributing numerical weather prediction model output (GFS, ECMWF, ICON etc.). It stores gridded fields like temperature, wind, and precipitation over a geographic grid at specific forecast times.
What's the difference between GRIB1 and GRIB2?
GRIB1 (1990) is the legacy edition; GRIB2 (2001) is the current WMO standard with more flexible parameter tables, improved projections, ensemble probability data and optional compression (JPEG2000, PNG). Both start with 'GRIB'; the edition is in byte 8 of the Indicator Section.
Can I open a GRB file in Excel or Python?
Not in Excel directly. In Python, use cfgrib (opens GRIB via xarray) or pygrib. From the command line, convert to CSV with wgrib2 or to NetCDF with GDAL/CDO first.
Why won't XyGrib (or another viewer) open my GRB file?
Common causes: the file is truncated (incomplete download - check file size), it's a GRIB2 file named .grb (the viewer may expect .grb2), or it uses a JPEG2000-compressed data section your build of the tool doesn't support. Try eccodes 'grib_ls' to diagnose.
What replaced Ugrib?
Ugrib's server appears offline. Use XyGrib (opengribs.org, free, cross-platform, open-source) as a direct replacement for sailing/weather GRIB viewing.

References

1WMO Manual on Codes - FM 92 GRIBwww.wmo.int
2ECMWF Confluence - What are GRIB files and how can I read themconfluence.ecmwf.int

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.GPXGPS Exchange Format
.GMLGeography Markup Language
.KMLKeyhole Markup Language
.SHPEsri Shapefile (geospatial vector data)
.RTMAPCompeGPS / TwoNav Tiled Raster Map
.KMZKeyhole Markup Language Zipped (Google Earth)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z