# GeoJSON — GeoJSON

> GeoJSON (GeoJSON): Open JSON-based format for vector features with geometry and properties, standardised by the IETF as RFC 7946. Specs, software and free sample files; convert GeoJSON to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/geojson



## What is a GeoJSON file?

GeoJSON is an open, text-based format for encoding vector geographic features in JSON. It was first published in 2008 by an informal group of developers and later standardised by the IETF as RFC 7946 in 2016. A file typically contains a FeatureCollection whose features each combine a geometry (Point, LineString, Polygon, their Multi variants or a GeometryCollection) with a free-form properties object.

GeoJSON is widely used for web mapping, APIs and data exchange because it is human-readable and supported by most GIS software and JavaScript mapping libraries. RFC 7946 requires WGS 84 longitude/latitude coordinates and removed the crs member of the 2008 specification, although some tools still write it. The format has no styling, no topology and no formal attribute schema. Its verbose text encoding also makes very large files slow to parse and memory-intensive to load.

GeoJSON files are usually exchanged between web developers, GIS analysts and API services, often as downloads from open data portals or as output from mapping applications. Check the coordinate order, which is longitude then latitude, and confirm the data is really in WGS 84, since older files may carry a crs member or projected coordinates. Large files can be slow to open in a text editor or browser.

### Technical details

| | |
|---|---|
| Full name | GeoJSON |
| Data type | Vector · Web & JSON |
| File extension | .geojson, .json |
| Files | Single file |
| Media type | application/json |
| Geometry types | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection |
| Multiple layers | No |
| Mixed geometry in a layer | Yes |
| Attribute names | No length limit (UTF8) |
| Coordinate system | Always WGS 84 (per spec) (EPSG:4326) |
| Converter support | Read & write |
| Typical software | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, Leaflet |
| Specification | https://geojson.org/ |

### Specifications & references

- https://geojson.org/
- https://www.rfc-editor.org/rfc/rfc7946
- https://gdal.org/en/stable/drivers/vector/geojson.html

### Sample GeoJSON files — free download

- [Places (points)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-places.geojson) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. RFC 7946 GeoJSON, WGS 84. (14.8 kB, EPSG:4326)
- [Roads and paths (lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-roads.geojson) — 110 named roads, streets, tracks and paths (OSM segments merged by name) with class, surface, speed limit and length. RFC 7946 GeoJSON, WGS 84. (161.8 kB, EPSG:4326)
- [Land cover (polygons)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-landcover.geojson) — 190 land-cover polygons (forest, scrub, farmland, residential, water, …) from OpenStreetMap with area in hectares. RFC 7946 GeoJSON, WGS 84. (192.3 kB, EPSG:4326)
- [Contour lines (3D lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-contours.geojson) — 27 contour lines at 100 m intervals derived from Copernicus DEM, 3D lines with Z = elevation. RFC 7946 GeoJSON, WGS 84. (261.2 kB, EPSG:4326)
- [Waterways (lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-waterways.geojson) — 117 streams and canals from OpenStreetMap with class and length. RFC 7946 GeoJSON, WGS 84. (87 kB, EPSG:4326)
- [Jamestown buildings (polygons)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-buildings.geojson) — 179 building footprints in Jamestown with type, footprint area and ground elevation. RFC 7946 GeoJSON, WGS 84. (61.4 kB, EPSG:4326)

### Convert GeoJSON to other formats

- [GeoJSON to KML](https://beta.mygeodata.cloud/converter/geojson-to-kml)
- [GeoJSON to SHP](https://beta.mygeodata.cloud/converter/geojson-to-shp)
- [GeoJSON to GPX](https://beta.mygeodata.cloud/converter/geojson-to-gpx)
- [GeoJSON to DXF](https://beta.mygeodata.cloud/converter/geojson-to-dxf)
- [GeoJSON to GeoPDF](https://beta.mygeodata.cloud/converter/geojson-to-geopdf)
- [GeoJSON to KMZ](https://beta.mygeodata.cloud/converter/geojson-to-kmz)
- [GeoJSON to CSV](https://beta.mygeodata.cloud/converter/geojson-to-csv)
- [GeoJSON to SVG](https://beta.mygeodata.cloud/converter/geojson-to-svg)
- [GeoJSON to XLSX](https://beta.mygeodata.cloud/converter/geojson-to-xlsx)
- [GeoJSON to TopoJSON](https://beta.mygeodata.cloud/converter/geojson-to-topojson)
- [GeoJSON to MIF](https://beta.mygeodata.cloud/converter/geojson-to-mif)
- [GeoJSON to WKT](https://beta.mygeodata.cloud/converter/geojson-to-wkt)
- [GeoJSON to SQLite](https://beta.mygeodata.cloud/converter/geojson-to-sqlite)
- [GeoJSON to MapInfo](https://beta.mygeodata.cloud/converter/geojson-to-mapinfo)
- [GeoJSON to GPKG](https://beta.mygeodata.cloud/converter/geojson-to-gpkg)
- [GeoJSON to DGN](https://beta.mygeodata.cloud/converter/geojson-to-dgn)
- [GeoJSON to GML](https://beta.mygeodata.cloud/converter/geojson-to-gml)
- [GeoJSON to Parquet](https://beta.mygeodata.cloud/converter/geojson-to-parquet)

## Frequently asked questions

### What is the difference between GeoJSON and a plain JSON file?

GeoJSON is JSON with a defined structure: objects with a type member such as Feature or FeatureCollection, a geometry and a properties object. Both can use the .json extension, but only valid GeoJSON can be read as geographic data by GIS software.

### Why do my GeoJSON features appear in the wrong place or off the map?

The most common cause is coordinates in a projected system, such as metres, instead of WGS 84 degrees. Swapped order, latitude first instead of longitude first, is another frequent cause. Check the first coordinates and reproject the data if needed.

### Can a GeoJSON file contain several layers?

No, GeoJSON has no multi-layer support. A file holds one FeatureCollection, or a single feature or geometry. To exchange several layers, use one GeoJSON file per layer or a multi-layer format.

### What is a GeoJSON file?

GeoJSON is an open, text-based format for encoding vector geographic features in JSON. It was first published in 2008 by an informal group of developers and later standardised by the IETF as RFC 7946 in 2016. A file typically contains a FeatureCollection whose features each combine a geometry (Point, LineString, Polygon, their Multi variants or a GeometryCollection) with a free-form properties object.

GeoJSON is widely used for web mapping, APIs and data exchange because it is human-readable and supported by most GIS software and JavaScript mapping libraries. RFC 7946 requires WGS 84 longitude/latitude coordinates and removed the crs member of the 2008 specification, although some tools still write it. The format has no styling, no topology and no formal attribute schema. Its verbose text encoding also makes very large files slow to parse and memory-intensive to load.

### How do I open a GeoJSON file?

GeoJSON files can be opened in QGIS, ArcGIS Pro, GDAL/OGR, FME and Global Mapper. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert GeoJSON to?

Popular conversions are KML, SHP, GPX, DXF, GeoPDF and KMZ. In total the Converter writes GeoJSON data to 39 formats.

### How do I create a GeoJSON file?

Convert existing data to GeoJSON — for example from KML, SHP, GeoPDF, KMZ and SVG. Upload the file, choose GeoJSON as output and download the result.

### Which coordinate system does GeoJSON use?

GeoJSON always uses WGS 84 (per spec) (EPSG:4326).

