Convert GEOJSON to CSV

Turn GEOJSON files into CSV. A CSV with one row for each feature: its shape as WKT in a first column named WKT, then every attribute as a column.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A table with one row per map feature.Each shape becomes WKT text in the first column. Every attribute gets a column after it.

  1. What you get

    One CSV file with one row for each feature in the GeoJSON. The first column is named WKT and holds the feature's shape as WKT text. Every attribute of the feature follows as its own column.

    Coordinates are written in WGS 84 longitude and latitude.

  2. What changes

    Features without a geometry keep their row, and the WKT cell is left empty. If a column in your data is already named WKT, it is renamed WKT_1 so the shape column keeps its name.

    CSV has no place for lists or nested values, so they become JSON text in their cell.

  3. When it stops

    The conversion stops with input_corrupted when the file could not be parsed. It stops with unsupported_elements when the file holds something CSV cannot carry.

    To go the other way, use CSV to GEOJSON.

GEOJSON and CSV.What each format is.

The formats

From · 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
To · 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

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

terminal
$ cv convert report.geojson report.csv
$ cv convert report.geojson report.csv

Questions.What people ask about GEOJSON to CSV.

01OF 04

It goes in the first column, named WKT, as WKT text. Each row holds the shape of one feature.

They keep their row. The WKT cell is empty and the attributes are filled in as usual.

That column is renamed WKT_1. The new shape column keeps the name WKT.

They become JSON text in a single cell, so the value stays in the row.

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