# GPKG — GeoPackage (vector)

> GPKG (GeoPackage (vector)): OGC standard SQLite-based container storing vector feature layers with geometries, attributes and spatial indexes in one file. Specs, software and free sample files; convert GPKG to 39 formats online.

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

> GPKG files can also contain raster data. [Read about GPKG raster](https://beta.mygeodata.cloud/formats/gpkg-raster) — Raster tile pyramids stored in an OGC GeoPackage SQLite file for basemaps, imagery and offline mapping. [Convert GPKG raster](https://beta.mygeodata.cloud/converter/gpkg-raster)



## What is a GPKG file?

GeoPackage is an open, platform-independent format standardised by the Open Geospatial Consortium (OGC) and built on the SQLite database engine. A single .gpkg file can hold several vector feature tables alongside raster tiles and metadata; this entry covers the vector side. Feature tables are registered in core metadata tables such as gpkg_contents, gpkg_geometry_columns and gpkg_spatial_ref_sys. Geometries are stored as binary blobs consisting of a GeoPackage header followed by standard Well-Known Binary.

The format is widely used for data exchange, desktop GIS work, mobile field data collection and offline applications. Each layer can use its own coordinate reference system, field names are UTF-8 with no short length limit, and spatial indexing is provided through SQLite R-tree tables. Limitations follow from SQLite: concurrent writing is restricted, and temporary -wal, -shm or -journal files may appear next to the database while it is open.

GPKG files are usually exchanged between GIS analysts, field data collection teams and web map publishers who want one self-contained file instead of a shapefile set. Because a GeoPackage is a SQLite database, it may contain several layers with different coordinate systems, so check the layer list and CRS after opening. Keep any -wal and -shm files together with the .gpkg while it is in use.

### Technical details

| | |
|---|---|
| Full name | GeoPackage (vector) |
| Data type | Vector · Database & container |
| File extension | .gpkg |
| Files | Single file |
| Media type | application/octet-stream |
| Geometry types | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection |
| Multiple layers | Yes |
| Mixed geometry in a layer | Yes |
| Attribute names | No length limit (UTF8) |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, GeoServer |
| Specification | https://www.geopackage.org/ |

### Specifications & references

- https://www.geopackage.org/
- https://www.ogc.org/standard/geopackage/
- https://gdal.org/en/stable/drivers/vector/gpkg.html

### Sample GPKG files — free download

- [Basemap (7 layers)](https://beta.mygeodata.cloud/static/landing/samples/v1/gpkg/st-helena-basemap.gpkg) — Multi-layer basemap of Saint Helena: island outline, land cover, waterways, 100 m contours, roads, Jamestown buildings and places. GeoPackage with spatial indexes and layer descriptions. (796 kB, EPSG:4326)
- [Places (points)](https://beta.mygeodata.cloud/static/landing/samples/v1/gpkg/st-helena-places.gpkg) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. GeoPackage. (112 kB, EPSG:4326)
- [Hike (waypoints, track, track points)](https://beta.mygeodata.cloud/static/landing/samples/v1/gpkg/st-helena-hike.gpkg) — Hike from Jamestown up Jacob's Ladder to High Knoll Fort: 3.0 km, 513 track points (10 s) with elevation and time, 4 waypoints. GeoPackage with layers hike_waypoints, hike_track and hike_track_points. (244 kB, EPSG:4326)

### Convert GPKG to other formats

- [GPKG to SHP](https://beta.mygeodata.cloud/converter/gpkg-to-shp)
- [GPKG to KML](https://beta.mygeodata.cloud/converter/gpkg-to-kml)
- [GPKG to DXF](https://beta.mygeodata.cloud/converter/gpkg-to-dxf)
- [GPKG to GeoJSON](https://beta.mygeodata.cloud/converter/gpkg-to-geojson)
- [GPKG to GeoPDF](https://beta.mygeodata.cloud/converter/gpkg-to-geopdf)
- [GPKG to KMZ](https://beta.mygeodata.cloud/converter/gpkg-to-kmz)
- [GPKG to CSV](https://beta.mygeodata.cloud/converter/gpkg-to-csv)
- [GPKG to XLSX](https://beta.mygeodata.cloud/converter/gpkg-to-xlsx)
- [GPKG to GPX](https://beta.mygeodata.cloud/converter/gpkg-to-gpx)
- [GPKG to SVG](https://beta.mygeodata.cloud/converter/gpkg-to-svg)
- [GPKG to MapInfo](https://beta.mygeodata.cloud/converter/gpkg-to-mapinfo)
- [GPKG to TopoJSON](https://beta.mygeodata.cloud/converter/gpkg-to-topojson)
- [GPKG to MBTiles](https://beta.mygeodata.cloud/converter/gpkg-to-mbtiles)
- [GPKG to GML](https://beta.mygeodata.cloud/converter/gpkg-to-gml)
- [GPKG to DGN](https://beta.mygeodata.cloud/converter/gpkg-to-dgn)
- [GPKG to SQLite](https://beta.mygeodata.cloud/converter/gpkg-to-sqlite)
- [GPKG to MIF](https://beta.mygeodata.cloud/converter/gpkg-to-mif)
- [GPKG to Parquet](https://beta.mygeodata.cloud/converter/gpkg-to-parquet)

## Frequently asked questions

### Why are there -wal and -shm files next to my GPKG?

They are temporary SQLite files created while the database is open, mainly for write-ahead logging. They are normally merged and removed when the file is closed properly. If you copy the file while it is open, copy these files too or close the application first.

### How is GPKG different from a shapefile?

A GeoPackage is one file that can hold many layers, each with its own CRS, and its field names are UTF-8 with no short length limit. A shapefile is a set of several files, holds one layer and limits field names to 10 characters.

### Can a GPKG file contain more than one layer?

Yes. A single .gpkg can hold several vector feature tables, and the format can also store raster tiles and metadata. When converting, you may need to choose which layer to export, since many target formats hold only one.

### What is a GPKG file?

GeoPackage is an open, platform-independent format standardised by the Open Geospatial Consortium (OGC) and built on the SQLite database engine. A single .gpkg file can hold several vector feature tables alongside raster tiles and metadata; this entry covers the vector side. Feature tables are registered in core metadata tables such as gpkg_contents, gpkg_geometry_columns and gpkg_spatial_ref_sys. Geometries are stored as binary blobs consisting of a GeoPackage header followed by standard Well-Known Binary.

The format is widely used for data exchange, desktop GIS work, mobile field data collection and offline applications. Each layer can use its own coordinate reference system, field names are UTF-8 with no short length limit, and spatial indexing is provided through SQLite R-tree tables. Limitations follow from SQLite: concurrent writing is restricted, and temporary -wal, -shm or -journal files may appear next to the database while it is open.

### How do I open a GPKG file?

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

### What can I convert GPKG to?

Popular conversions are SHP, KML, DXF, GeoJSON, GeoPDF and KMZ. In total the Converter writes GPKG data to 39 formats.

### How do I create a GPKG file?

Convert existing data to GPKG — for example from DWG, KML, SHP, DXF and GeoPDF. Upload the file, choose GPKG as output and download the result.

### Is a GPKG file vector or raster?

A GPKG file can store vector data or raster data, depending on how it was created. This page describes the vector variant; the other variant has separate specifications and conversion options.

