Convert CSV to GPKG

Turn CSV files into GeoPackage. A GeoPackage with one layer of the features and their attributes, in the source's coordinate system.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CSV files on the dialor turn it to pick what to do

A CSV table as a map layer.Each row becomes a point or a shape in a GeoPackage.

  1. What you get

    A GeoPackage with one layer. It holds the features from your table and their attributes, in the source's coordinate system. QGIS and ArcGIS read and write this format.

    The result is one file.

  2. How rows become features

    A row becomes a point when the table has longitude and latitude columns, such as lon and lat or x and y. A row becomes a shape when the table has a WKT column. The other columns are kept as attributes.

    Coordinates are taken as WGS 84. Lists and nested values become JSON text.

  3. When it stops

    A table with no longitude and latitude columns and no WKT column cannot be placed on a map. The conversion stops with unsupported_elements.

    If your data is split over several files, merge CSV can join them first.

CSV and GPKG.What each format is.

The formats

From · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data
To · GPKG

GeoPackage

The OGC GeoPackage, a SQLite database of map layers that QGIS and ArcGIS read and write.

Extensions
.gpkg
MIME type
application/geopackage+sqlite3
Kind
Text and data

In your code.The same CSV to GPKG conversion through the API, for your app or your agent.

terminal
$ cv convert sheet.csv sheet.gpkg
$ cv convert sheet.csv sheet.gpkg

Questions.What people ask about CSV to GPKG.

01OF 04

It needs longitude and latitude columns, such as lon and lat or x and y. A WKT column with shapes also works.

They become attributes of each feature in the layer. Lists and nested values are written as JSON text.

Coordinates are taken as WGS 84.

The table has no longitude and latitude columns and no WKT column. Without one of them, the rows cannot be turned into points or shapes.

More conversions.Other ways in and out of CSV and GPKG.