handy.moe

All tools / Maps

A stack of important documents

GeoPackage to Shapefile

GeoPackage is the modern open GIS file (an OGC standard): one SQLite file that can hold many layers, long field names and any projection. Turn it into Shapefile here, in your browser, with attributes and projection handled.

Runs in your browser. Your files never leave your device.

How to use it

  1. Drop a .gpkg file. Every feature table in it is read.
  2. Leave “Save as” on Shapefile. Keep “Convert coordinates to longitude/latitude” ticked unless you need the original projection.
  3. Press Convert. A preview of the shapes appears with the number of features and the file size.
  4. Press Download.

Questions

Is my file uploaded?

No. The conversion runs in this browser tab with mapshaper compiled to JavaScript; your file never leaves your device. After the page loads it even works offline.

What is GeoPackage?

GeoPackage is the modern open GIS file (an OGC standard): one SQLite file that can hold many layers, long field names and any projection. QGIS uses it by default.

What will the Shapefile file look like?

You get one .zip holding .shp, .shx, .dbf, .prj and .cpg (UTF-8). Shapefile field names are cut to 10 characters, and one file holds one kind of shape, so mixed points and polygons come out as separate shapefiles.

Will my attributes come across?

Yes, all of them, with one shapefile limit: field names longer than 10 characters are shortened. Text is saved as UTF-8 with a .cpg file so accents and other scripts survive.

What about the coordinate system?

If your file has a projection (the .prj file for a shapefile), it's read and, with the box ticked, converted to longitude/latitude (WGS84). Untick the box to keep the original coordinates (not allowed for GeoJSON and KML, which are always longitude/latitude).

How big a file can it handle?

Files up to a few hundred megabytes work on most computers; the limit is your browser's memory. For a huge file, simplify it at the same time (tick “Simplify too”).

The conversion engine is mapshaper 0.8.17 by Matthew Bloch (MPL-2.0), served unchanged from handy.moe. Licences.