GeoJSON converters
GeoJSON is a plain-text JSON format for geographic features, standardized as RFC 7946 in 2016. It is the native format of web maps such as Leaflet, MapLibre and Mapbox, and of many APIs.
Convert GeoJSON
- KML → GeoJSONConvert KML to GeoJSON
- GeoJSON → KMLConvert GeoJSON to KML
- GeoJSON → SHPConvert GeoJSON to Shapefile
- SHP → GeoJSONConvert Shapefile to GeoJSON
- GeoJSON → KMZConvert GeoJSON to KMZ
- KMZ → GeoJSONConvert KMZ to GeoJSON
- GeoJSON → GPKGConvert GeoJSON to GeoPackage
- GPKG → GeoJSONConvert GeoPackage to GeoJSON
- GeoJSON → DXFConvert GeoJSON to DXF
- DXF → GeoJSONConvert DXF to GeoJSON
- GeoJSON → GPXConvert GeoJSON to GPX
- GPX → GeoJSONConvert GPX to GeoJSON
- GeoJSON → CSVConvert GeoJSON to CSV
- CSV → GeoJSONConvert CSV to GeoJSON
- XLSX → GeoJSONConvert Excel (XLSX) to GeoJSON
- Shapefile Viewer
- Shapefile Converter
- GeoJSON Converter
What to know about GeoJSON
- Coordinates are WGS84 longitude, latitude (in that order).
- Points, lines and polygons can be mixed in one file.
- Properties can be any JSON value, with no limit on field name length.
File extensions: .geojson, .json
Where you meet GeoJSON files
GeoJSON is what web developers, open-data APIs and online map tools work with: Leaflet, MapLibre, Mapbox and geojson.io read it directly, and GitHub shows a .geojson file in a repository as a map. QGIS, ArcGIS Pro and GDAL read and write it too. Because it is plain text, it is easy to generate from code and to compare in Git.
GeoJSON compared with other formats
- GeoJSON or Shapefile
- A shapefile keeps a projected coordinate system and is read by older desktop GIS and CAD software. GeoJSON is one file, can mix points, lines and polygons, and has no limits on field names or text length, but it is meant to be WGS84 longitude and latitude only.
- GeoJSON or KML
- KML carries styles for Google Earth. GeoJSON has no styling standard; some tools read simplestyle properties such as marker-color, stroke and fill, but most GIS programs ignore them.
- GeoJSON or GeoPackage
- For large datasets a GeoPackage is much faster: it has a spatial index and is read in pieces, while a GeoJSON file must be read in full. Above some tens of megabytes, browsers and web maps get slow with GeoJSON.
Common problems with GeoJSON files
Points land in the sea or on the wrong continent
GeoJSON coordinates are longitude first, then latitude. A file written the other way round puts Copenhagen (55.68 N, 12.57 E) in the Arabian Sea, east of Socotra. Swap the two numbers at the source; it is the most common GeoJSON mistake.
The file is in UTM or a national grid
The first GeoJSON specification from 2008 allowed a "crs" member, and files exported by older software still use one with a projected system. RFC 7946 removed it, and many web maps ignore it and show nothing. GDAL and QGIS still read it; reproject to EPSG:4326 when the file is for the web. Tool: Convert GeoJSON to Shapefile.
The file is too large
Coordinates are often written with 15 decimals, while 6 decimals already describe a position to about 11 cm. Rounding the coordinates (GDAL's COORDINATE_PRECISION option) and dropping unused properties can shrink a file to a fraction of its size. For really large data, use GeoPackage.
Lists and nested objects in properties
A GeoJSON property can be a list or a nested object, but the attribute table of a shapefile or a CSV only holds text and numbers. Such values are written as text when converting, so check them afterwards. Tool: Convert GeoJSON to Shapefile, Convert GeoJSON to CSV.
Questions about GeoJSON
What is the difference between .json and .geojson?
None in content; .geojson is the usual extension and application/geo+json the media type. A .json file is GeoJSON only if it has "type": "FeatureCollection", "Feature" or a geometry type at the top.
Can GeoJSON use a coordinate system other than WGS84?
Not by the current standard (RFC 7946), which fixes WGS84 longitude and latitude in decimal degrees. Older files may contain a "crs" member with another system; GDAL reads it, but web maps usually do not.
Can I open GeoJSON in Excel?
Not directly. Convert it to CSV first; points become X and Y (longitude and latitude) columns, and lines and polygons a WKT column.