# GIF — Graphics Interchange Format

> GIF (Graphics Interchange Format): Palette-based raster image format with lossless LZW compression, limited to 256 colours per image. Specs, software and free sample files; convert GIF to 50 formats online.

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



## What is a GIF file?

The Graphics Interchange Format (GIF) was introduced by CompuServe in 1987, and its widely used GIF89a revision followed in 1989. In geospatial work it is mainly used for simple cartographic outputs, thematic maps and web graphics. It is not suitable for analytical imagery because of its limited colour depth.

Images are stored with a colour table of up to 256 entries, and pixel indices are compressed losslessly with LZW. One palette index can be marked as transparent, and multiple frames can be combined into an animation, although animation has no meaning for GIS rasters. Image width and height are limited to 65,535 pixels. GIF supports neither multiband nor high-bit-depth data, so continuous data such as elevation or photographs lose information when converted to it. The format has no internal georeferencing. Location and coordinate reference system are supplied by a world file (.gfw or .wld) together with a .prj or .aux.xml sidecar.

GIF files in GIS workflows usually come from web mapping exports, report figures or legacy cartographic archives. The image itself carries no location, so it is only usable as a map layer when a world file and a projection sidecar travel with it. Keep these files together, and check the palette and transparent index, because converting continuous data to 256 colors discards values.

### Technical details

| | |
|---|---|
| Full name | Graphics Interchange Format |
| Data type | Raster · Image & imagery |
| File extension | .gif |
| Files | Single file |
| Media type | — |
| Bands | Indexed color (palette) with optional single transparent index. |
| Pixel types | 8-bit indexed |
| Compression | LZW (lossless) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read & write |
| Typical software | QGIS, GDAL/OGR, ArcGIS Pro, Global Mapper, GIMP, Adobe Photoshop |
| Specification | https://www.w3.org/Graphics/GIF/spec-gif89a.txt |

### Specifications & references

- https://www.w3.org/Graphics/GIF/spec-gif89a.txt
- https://gdal.org/en/stable/drivers/raster/gif.html

### Sample GIF files — free download

- [Land cover (8-bit palette)](https://beta.mygeodata.cloud/static/landing/samples/v1/gif/st-helena-landcover-gif.zip) — 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). (19.3 kB, EPSG:32730)

### Convert GIF to other formats

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

## Frequently asked questions

### Why does my GIF appear in the wrong place or without a coordinate system in GIS software?

GIF has no internal georeferencing. Software needs a world file (.gfw or .wld) with the same base name, plus a .prj or .aux.xml sidecar for the coordinate reference system. If these files are missing or renamed, the image is shown in pixel coordinates.

### Can I use a GIF for elevation or satellite imagery analysis?

No. GIF stores only 8-bit indexed color with up to 256 palette entries and no multiband or high-bit-depth support. Converting elevation or multispectral data to GIF loses original values, so keep the source raster for analysis.

### How does GIF differ from PNG for maps?

Both use lossless compression and support palette images with transparency. PNG also supports 24-bit and 16-bit data and partial transparency, while GIF is limited to 256 colors and one transparent index. GIF can hold animation frames, which has no meaning for GIS rasters.

### What is a GIF file?

The Graphics Interchange Format (GIF) was introduced by CompuServe in 1987, and its widely used GIF89a revision followed in 1989. In geospatial work it is mainly used for simple cartographic outputs, thematic maps and web graphics. It is not suitable for analytical imagery because of its limited colour depth.

Images are stored with a colour table of up to 256 entries, and pixel indices are compressed losslessly with LZW. One palette index can be marked as transparent, and multiple frames can be combined into an animation, although animation has no meaning for GIS rasters. Image width and height are limited to 65,535 pixels. GIF supports neither multiband nor high-bit-depth data, so continuous data such as elevation or photographs lose information when converted to it. The format has no internal georeferencing. Location and coordinate reference system are supplied by a world file (.gfw or .wld) together with a .prj or .aux.xml sidecar.

### How do I open a GIF file?

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

### What can I convert GIF to?

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

### How do I create a GIF file?

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

