.GPKG

GPKG File

OGC GeoPackage
Ask a question
QUICK ANSWER

A .gpkg file is an OGC GeoPackage - an open, standards-based container for map data (vectors, raster tiles, coordinate systems) stored in a single SQLite database. Open it with the free QGIS desktop app, which reads and edits it directly. The .gpkg extension is also used by Gramps genealogy software for a completely unrelated format; if your file came from Gramps, open it there.

Developer: Open Geospatial Consortium (OGC) Category: GIS Files Open standard MIME: application/geopackage+sqlite3
OPENS ON Windows macOS Linux Android
Related: .GPX · .GML · .KML · .SHP

On this page

19k+ extensions indexed
Last reviewed Sep 2, 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 GPKG file format?

The .gpkg extension identifies an OGC GeoPackage file - a modern, self-contained SQLite 3 database container for geospatial data. Developed by the Open Geospatial Consortium (OGC), the format packages vector feature layers, raster tile pyramids, coordinate reference systems, and metadata into a single portable file with no companion files required.

Because a .gpkg is a plain SQLite 3 database, it opens with the standard 16-byte SQLite format 3 magic header. GeoPackage stamps the SQLite application_id field to 0x47504B47 (ASCII "GPKG") and sets user_version to the spec revision - for example 10400 for GeoPackage 1.4. A set of required gpkg_* system tables - including gpkg_contents and gpkg_spatial_ref_sys - must be present for a file to be a valid GeoPackage.

A single .gpkg file can hold:

  • Vector feature tables, with geometry encoded as GeoPackageBinary (GP) BLOBs
  • Raster tile-pyramid tables storing tiles as PNG, JPEG, or WebP image blobs
  • Spatial reference system definitions (EPSG codes and WKT)
  • Attribute-only (non-spatial) data tables

GeoPackage is the practical open replacement for the multi-file Esri Shapefile: one .gpkg replaces the .shp / .dbf / .prj bundle and removes the 2 GB file-size cap, the 10-character field-name limit, and other legacy constraints. File sizes range from tens of kilobytes to many gigabytes depending on dataset extent and tile pyramid depth. Standard SQLite tools such as DB Browser for SQLite can open a .gpkg for inspection, though GIS software is needed to correctly interpret the geometry.

Security & safety

RISK: LOW

A GeoPackage is a SQLite data file, not an executable, so opening one is low risk. The main caveats are generic: a SQLite database can be large, and malformed/corrupt files can crash a tool - run PRAGMA integrity_check if in doubt. Don't confuse it with the Gramps .gpkg (a different format). Obtain data from reputable GIS sources; the data itself doesn't run code.

Format details

in a nutshell
FULL NAMEOGC GeoPackageaka GeoPackage, GPKG database
DEVELOPEROpen Geospatial Consortium (OGC)since 2014 (OGC GeoPackage 1.0)
CATEGORYGIS Files
MIME TYPEapplication/geopackage+sqlite3
TYPESQLite 3 database container for vector and raster geospatial data (open standard)
STANDARDOpen · royalty-free
This extension is also used by…
  • Gramps genealogy package - Gramps (genealogy software) exports a .gpkg as a GZIP-compressed package bundling a family-tree XML with its media files - unrelated to GIS (db's original label).
  • Generic GPK/package data - A few games/apps use .gpkg for their own packed resources; niche and unrelated to GeoPackage.
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102030405060708090a0b0c0d0e0f
HEX
53514C69746520666F726D6174203300
ASCII
SQLite format 3·
A GeoPackage IS a SQLite 3 database, so it starts with the standard 16-byte "SQLite format 3\000" header. GeoPackage stamps the SQLite 'application_id' field to 0x47504B47 ("GPKG") and 'user_version' to the spec version (e.g. 10400 for 1.4), and adds the required gpkg_* metadata tables. Identify it by those, not the .gpkg extension alone.

Programs that open GPKG files

Windows3 apps
QGIS Open-source Drag the .gpkg onto the map, or Layer > Add Layer > Add Vector/Raster Layer; QGIS lists all contained layers. Full read/edit support.
ArcGIS Pro Paid Add Data > browse to the .gpkg and select layers; ArcGIS Pro reads and writes GeoPackage.
DB Browser for SQLite Open-source Open the .gpkg to inspect its tables/metadata as a SQLite database (no map view - geometry is a BLOB).
macOS1 app
QGIS Open-source Add the .gpkg as a vector/raster layer; native GeoPackage support on macOS.
Linux2 apps
QGIS Open-source Open the .gpkg in QGIS, or read/convert it from the command line with GDAL/OGR (ogr2ogr).
GDAL/OGR Open-source ogrinfo / ogr2ogr read, convert and write GeoPackage - the reference geospatial toolkit.
Android1 app
QField Open-source Open a .gpkg project for offline field GIS on Android; built on QGIS.

Technical details

deep spec
Container formatSQLite 3 single-file database
MIME typeapplication/geopackage+sqlite3
Magic bytes16-byte SQLite 3 header: 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00 ("SQLite format 3\000")
Application ID0x47504B47 (ASCII "GPKG") stored in the SQLite application_id header field
Version fielduser_version in SQLite header encodes the spec version (e.g. 10400 = GeoPackage 1.4)
Byte orderLittle-endian (SQLite default)
EncodingBinary
Vector geometry encodingGeoPackageBinary (GP) BLOB - ISO WKB geometry with an 8-byte envelope prefix
Raster tile storagePNG, JPEG, or WebP blobs in tile-pyramid tables; tiles are pre-compressed at image level
Required system tablesgpkg_contents, gpkg_spatial_ref_sys, gpkg_geometry_columns, gpkg_tile_matrix_set, gpkg_tile_matrix
Coordinate reference systemsDefined in gpkg_spatial_ref_sys; any CRS expressible via EPSG code and WKT is supported
CompressionNone at the database level; raster tile blobs carry their own image compression (PNG/JPEG/WebP)
EncryptionNot defined in the standard; optional via third-party SQLite extensions (e.g. SQLCipher) - non-standard
File size rangeTens of kilobytes to many gigabytes; SQLite maximum is approximately 281 TB
Platform supportWindows, macOS, Linux, Android, iOS
Integrity verificationPRAGMA integrity_check (SQLite page-level); no built-in spatial-level checksum
Released2014 (OGC GeoPackage 1.0)
Latest versionOGC GeoPackage 1.4 (2024)
Open standardYes · royalty-free
Specificationwww.geopackage.org

GPKG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GPKG 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 GPKG files.

Frequently asked questions

What is a .gpkg file?
An OGC GeoPackage - an open, single-file container (built on SQLite) for map data: vector features with attributes and raster tiles, plus their coordinate systems. It's the modern replacement for the Esri Shapefile.
How do I open a .gpkg file?
Use free GIS software - QGIS opens it directly (drag it onto the map). ArcGIS Pro, GDAL/OGR and most GIS tools also support it. To just inspect the tables, DB Browser for SQLite works since it's a SQLite database.
Why is a GeoPackage better than a Shapefile?
It's one self-contained file instead of a .shp/.shx/.dbf/.prj set, with no 2 GB limit, no 10-character field-name cap, full Unicode, multiple layers, and support for rasters and styling - all in an open standard.
Can I open a .gpkg in Excel?
Not directly - it's a spatial database. Export a layer's attributes to CSV from QGIS (optionally with WKT geometry), then open that CSV in Excel.
Is a .gpkg just a SQLite database?
Yes - a GeoPackage is a SQLite 3 database with defined GIS tables/conventions, so any SQLite tool can read it. But the geometry is stored as a binary blob, so you need GIS software to see it as a map.
My .gpkg is a Gramps genealogy file, not a map - what is it?
The .gpkg extension is also used by Gramps genealogy software for a GZIP-compressed family-tree package. That's a different format from the OGC GeoPackage; open it in Gramps, not a GIS tool.

References

1GeoPackage - official site & specwww.geopackage.org
2OGC GeoPackage Encoding Standardwww.ogc.org

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