GeoPackage GPKG Viewer and Converter
Drop a .gpkg file to list its feature, tile and attribute layers, see a feature layer on an OpenStreetMap map, browse, sort and search the attribute table, filter with a SQL WHERE clause, preview and extract tiles, and export the filtered rows as GeoJSON, KML, CSV with WKT or a zipped Shapefile.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open the GeoPackage
Drop the .gpkg file; SQLite loads once.
- 2Pick a layer
Choose a feature, tile or attribute layer from the list.
- 3Look at the map
See the features over OpenStreetMap and tap one to find its row.
- 4Filter
Sort columns, use the quick search or write a SQL WHERE clause.
- 5Check the coordinates
Read the coordinate system and choose reprojected or native output.
- 6Export
Save GeoJSON, KML, CSV with WKT or a zipped Shapefile, or extract tiles.
About this tool
GeoPackage is the open OGC format that has replaced the Shapefile in many places: QGIS saves to it by default, the Ordnance Survey, USGS and many national mapping agencies publish data in it, and field apps such as QField and Mergin use it. A GeoPackage is an SQLite database, which means a single file can hold several vector layers, raster tile pyramids and plain tables. Without GIS software, though, it is a closed box. This viewer opens it in the browser with SQLite compiled to WebAssembly (sql.js, about 650 KB, downloaded once). It reads the gpkg_contents table to list every layer with its type, geometry type and row count, looks up the coordinate system, and for feature layers decodes each GeoPackage geometry, from points and lines to multipolygons with Z values. Layers in WGS 84, Web Mercator, UTM zones and transverse Mercator grids are reprojected for the map; others are drawn in their own coordinates on a plain canvas. Tap a feature to highlight its row, or a row to highlight the feature.
Attribute table and filters
The table shows 100 rows per page with every attribute column. Click a column heading to sort, type in the quick search to match text in any column, or write a SQL WHERE clause such as population > 10000 AND type = 'town', which runs inside the local SQLite copy. The map, the table and every export follow the filter, so you can cut a national dataset down to your county before converting it.
Converting
GeoJSON and KML are written in WGS 84 longitude and latitude, as those formats expect. CSV puts the geometry in a WKT column, either reprojected or in the original coordinates. The Shapefile option writes a ZIP with .shp, .shx, .dbf, .prj and .cpg files, one set per geometry family, because a Shapefile can hold only points, lines or polygons; field names are shortened to 10 characters as the DBF format requires.
Tiles
For tile layers the tool lists each zoom level with its stored tile count and matrix size, previews up to 16 by 16 tiles of a zoom level and extracts tiles as a ZIP of zoom, column and row files.
Limits
Up to 20,000 rows are loaded at a time; use the SQL filter for bigger layers. Reprojection uses ellipsoid formulas without datum shifts, which is fine for maps but can be off by up to about 100 m for grids such as the British National Grid, so keep native coordinates for survey work. Curved geometries, raster gridded coverage extensions and editing are not supported, and the whole file is read into memory, so very large packages above 1 to 2 GB may not open.
Worked example
A planning officer downloads the Ordnance Survey Open Greenspace GeoPackage for her region, 186 MB with two layers: GreenspaceSite (polygons, 14,212 rows) and AccessPoint (points, 31,804 rows), both in British National Grid. She opens GreenspaceSite, types function = 'Playing Field' AND distName1 LIKE '%Park%' in the SQL filter, and gets 318 sites. On the map she checks that they fall inside her district, then exports them as a zipped Shapefile for the council's older desktop GIS and as GeoJSON in WGS 84 for a web map. The quick search finds Riverside Park at once for a site visit.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OGC GeoPackage Encoding Standard 1.4 (OGC 12-128r19); ESRI Shapefile Technical Description (1998); SQLite through sql.js (MIT)
Frequently asked questions
Do I need QGIS or ArcGIS to read a GeoPackage?
No. A GeoPackage is an SQLite database with standard tables, and this tool reads it in the browser with SQLite compiled to WebAssembly. You can view, filter and convert layers without installing anything.
Which coordinate systems are shown on the map?
WGS 84 and other geographic systems, Web Mercator, UTM zones and transverse Mercator grids defined in the file, such as the British National Grid. Layers in other projections are drawn in their own coordinates without a base map, and exports keep those coordinates.
Why does my Shapefile export make several sets of files?
A Shapefile can only hold one kind of geometry. If a GeoPackage layer mixes points, lines and polygons, each kind is written as its own set of .shp, .shx and .dbf files inside the ZIP.
Is the SQL filter safe?
It runs only on the copy of your file in the browser memory, which is never saved back or uploaded. A wrong query just shows an error message; the original file on your disk is not changed.
Can I edit attributes and save the GeoPackage?
Not in this version. The tool views, filters and converts. Use QGIS or another GIS to edit data and save it back.
Is the data uploaded?
No. The file is opened locally in your browser. Only the background map tiles come from OpenStreetMap.
