Convert CSV to GEOJSON

Turn CSV files into GEOJSON. A GeoJSON FeatureCollection in WGS 84 longitude and latitude, as the GeoJSON standard asks, with each feature's attributes as its properties.

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 map layer from a table of places.Each row becomes a point or a shape in a GeoJSON file.

  1. What you get

    A GeoJSON FeatureCollection in WGS 84 longitude and latitude, as the GeoJSON standard asks. The result is one file.

    Each row becomes one feature. Its other columns become the feature's properties, so the attributes stay with the place.

  2. How rows become places

    A row becomes a point from its longitude and latitude columns, such as lon and lat or x and y. A row can also become a shape from a WKT column.

    Coordinates are taken as WGS 84. They are not moved from any other coordinate system, so check that your numbers are longitude and latitude before you convert.

  3. When it stops

    A table with no longitude and latitude columns and no WKT column has no places to draw. The conversion stops with unsupported_elements.

    To go the other way, use GEOJSON to CSV.

CSV and GEOJSON.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 · GEOJSON

GeoJSON

Points, lines and polygons as JSON, the web's map data format.

Extensions
.geojson
MIME type
application/geo+json
Kind
Text and data

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

terminal
$ cv convert sheet.csv sheet.geojson
$ cv convert sheet.csv sheet.geojson

Questions.What people ask about CSV to GEOJSON.

01OF 04

Longitude and latitude columns, such as lon and lat or x and y. A WKT column also works and gives a shape instead of a point.

They become each feature's properties, so the attributes stay with the place.

No. Coordinates are taken as WGS 84 longitude and latitude. Values in another system are not reprojected.

The table has no longitude and latitude columns and no WKT column. Without them there is no place to put on the map.

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