I imported some .kmz files to QGIS as vector layers. Now, I want to keep this data but remove the files : I want the data to be stored (baked) in the qgis file itself.

How can I do that ?

  • 2
    Babel's answer covers it. But if all you meant by saying you "want the data to be stored in the qgis file" is that you want the data to remain as layers in your project, then you could just use the save as command to save your kmz files to new shapefiles or geopackage layers, and then add these to your project and save it. Then delete the kmz. If you applied some symbology, filters, legend items to the kmz layers that you want to keep, after saving your kmzs to the new datasets you could use the change DataSource plugin to point your project layers to the new and save the project.
    – John
    Jan 28, 2023 at 23:21

1 Answer 1


You can't save data inside of the QGIS project file. Using QGIS, project and data are always stored separately.

What you can do, however, is to save the project plus data file to the same Geopackage file. Geopackage works like a container format and can store everything in one single file that can be saved out of QGIS.

This can be handy when you want to share a project with local date with someone else. However, when working on your own machine, I would recommend to keep data and project files separately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.