Convert shapefile to GeoPackage

Free, private and fast: everything runs in your browser and your Shapefile files are never uploaded.

Shapefile to GeoPackage: why convert

A shapefile is at least three files, its field names stop at 10 characters, its parts cannot grow past 2 GB, and it forgets which characters it was written in unless a .cpg sits next to it. GeoPackage, the default format of QGIS, fixes all of that in one file. This converter turns your shapefile into a .gpkg: drop a .zip, a folder or the loose .shp, .shx, .dbf and .prj, and download a GeoPackage with the same features, attributes and coordinate system. Several shapefiles at once end up as separate layers in one GeoPackage, which is handy for handing over a whole project as one file. Shapefiles without a .cpg are read with the right encoding where it can be detected, so æ, ø and ü survive.

How to convert Shapefile to GeoPackage

  1. Drop your shapefile as a .zip, a folder or the loose files, or click to choose them.
  2. Check the layers on the map. Optionally choose an output coordinate system.
  3. Click Convert to GeoPackage and download the .gpkg file.

What changes when you convert

Field names stay as they are

The names come from the .dbf, which already cut them to 10 characters when the shapefile was made. The GeoPackage keeps them; long names that were lost earlier cannot be restored.

Single and multi-part shapes

A shapefile layer can mix polygons with one part and polygons with several parts. A GeoPackage layer has one geometry type, so lines and polygons are stored as multi-part types (MultiLineString, MultiPolygon). The shapes themselves do not change; points stay points.

Coordinate system

The coordinate system from the .prj is stored inside the GeoPackage. Without a .prj, coordinates that look like longitude and latitude are taken as WGS84; otherwise enter the EPSG code when the converter asks.

Invalid geometries

Polygons with self-intersections, common in data digitised by hand, are repaired with GDAL's makevalid while converting, so QGIS and databases accept them. Valid shapes are written unchanged.

About the formats

Shapefile

The Esri Shapefile is the most widely used GIS vector format. A single "shapefile" is really a set of files with the same name: .shp holds the geometry, .shx an index, .dbf the attribute table, and the optional .prj the coordinate system and .cpg the text encoding.

  • Needs at least .shp, .shx and .dbf. Upload them together or as one .zip.
  • Field names are limited to 10 characters and text values to 254 characters.
  • Each shapefile holds one geometry type only: points, lines or polygons.
  • Without a .prj file the coordinate system is unknown.

GeoPackage

GeoPackage is an open OGC standard from 2014 built on SQLite. It is the default format in QGIS and can hold many layers, any coordinate system and long field names in a single file.

  • One file can contain many vector layers and tables, and raster tiles.
  • No 10-character limit on field names, unlike shapefiles.
  • Stores the coordinate system of each layer inside the file, so there is no separate .prj.
  • Has no 2 GB size limit per layer, unlike the .shp and .dbf files of a shapefile.

Frequently asked questions

Is my shapefile uploaded?

No. GDAL runs in your browser as WebAssembly, and your files stay on your computer.

Can ArcGIS open a GeoPackage?

Yes. ArcGIS Pro reads and edits GeoPackages, and recent versions of ArcMap can read them.

What happens with several shapefiles?

Each shapefile becomes its own layer in the same .gpkg file, named after the shapefile.

Are the .sbn, .qix or .shp.xml files used?

No. Index and metadata files are ignored; GeoPackage builds its own spatial index.