In this tutorial, we will walk through the process of converting multiple shapefiles into a GeoPackage in QGIS. This method not only simplifies project sharing but also enhances data management efficiency.
If you want to package every layer in your QGIS project into a GeoPackage at once, check out the Package Layers tool in QGIS.
Step 1: Preparing Your Project
First, create a parent folder on your desktop. Inside this folder, organise your shapefiles and the QGIS project file. A typical structure might look like this:
- Parent Folder
- Shapefiles
- QGIS Project.qgz
Ensure that your shapefiles are correctly placed in the designated folder.
Step 2: Opening Your Project
Open your QGIS project. You should see the shapefiles loaded in the Layers panel. Before proceeding, make sure all layers are visible and functioning correctly.
Step 3: Exporting Shapefiles to a GeoPackage
To convert your shapefiles to a GeoPackage, right-click on each layer in the Layers panel and select Export > Save Features As…. Choose GeoPackage as the format.
Step 4: Naming Your GeoPackage
When prompted, navigate to your parent folder and name the GeoPackage appropriately (e.g., projectname.gpkg). Ensure that the coordinate reference system (CRS) is set correctly.
Step 5: Adding Layers to the GeoPackage
Continue exporting each shapefile layer to the same GeoPackage. Make sure to uncheck the option that adds the exported layer to the current project to avoid duplicates.
Step 6: Connecting to Your GeoPackage
In the Browser panel, right-click on GeoPackage and select New Connection. Navigate to your created GeoPackage and open it. You should see all the layers listed inside.
Step 7: Changing Data Sources
Now that your layers are exported, you need to change their data source to reference the GeoPackage instead of the original shapefiles. Right-click on each layer, select Properties, then Change Data Source, and navigate to the respective layer in the GeoPackage.
Step 8: Saving the Project in the GeoPackage
To save the entire project within the GeoPackage, go to Project > Save to > GeoPackage. Select your GeoPackage connection and give the project a name.
Step 9: Exporting Raster Data
If you have raster data (for example, a background satellite image), export it similarly. Right-click on the raster layer, select Export > Save As…, and choose the GeoPackage format. Give it a descriptive name and confirm the CRS.
Step 10: Moving and Sharing the GeoPackage
Once everything is saved in the GeoPackage, you can move the single .gpkg file to any location or share it with a colleague. Open QGIS, create a new connection to the GeoPackage, and load your project — all data and the project file travel together in one file.
FAQ
- What is a GeoPackage?
A GeoPackage is an open geospatial data format defined by the OGC (Open Geospatial Consortium) standard OGC 12-128. It is built on SQLite, which means it is a single self-contained file that can store vector features, raster tiles, and attribute data together. The file extension is .gpkg.
- Why use a GeoPackage instead of shapefiles?
Shapefiles have several well-known limitations: a single shapefile is split across at least three separate files (.shp, .dbf, .shx), field names are limited to 10 characters, and individual files cannot exceed 2 GB. A GeoPackage stores multiple layers of different geometry types in a single file, supports field names up to 255 characters, and has no practical file size limit for modern use. It is also an OGC open standard, meaning it is not tied to any one software vendor.
- Can I share a GeoPackage easily?
Yes. Because all layers, raster tiles, and the QGIS project file can be stored inside a single .gpkg file, sharing a GeoPackage is as simple as copying or sending one file. There is no risk of missing sidecar files that commonly occurs with shapefiles.
For the reverse workflow, see our guide on converting a GeoPackage to a Shapefile in QGIS. You may also find our free shapefile tools and tutorials page useful.








