You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · Web & JSON

GeoJSON — GeoJSON

Open JSON-based format for vector features with geometry and properties, standardised by the IETF as RFC 7946.

Type
Vector · Web & JSON
Extension
.geojson, .json
Converter
Read & write
Coordinate system
Always WGS 84 (per spec) (EPSG:4326)
Layers
Single

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.

Typical uses

  • Displaying vector features on web maps built with Leaflet, OpenLayers or MapLibre GL JS.
  • Returning spatial query results from web APIs and services.
  • Publishing small and medium datasets on open data portals.
  • Exchanging features between GIS software and scripts without a binary format.
Files: Text JSON with Feature/FeatureCollection; UTF-8 recommended.

Sample GeoJSON files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena places st-helena-places.geojson

Places (points)

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.

  • places · Point · 58
  • EPSG:4326
  • 14.8 kB
Attributes (7)
idIntegernameStringcategoryStringkindStringelevationIntegersummaryStringosm_idString
10Jamestowntownsettlement36Capital and only port of Saint Helena293673697
22Diana's Peakpeakpeak809Highest point of Saint Helena4254622180
47Longwood Housemuseumpoi544Napoleon's residence in exile, 1815-182135798100
46Jacob's Ladderlandmarkpoi74Staircase of 699 steps from Jamestown up to Ladder Hill146163201
53Saint Helena Airportairportpoi326Island airport, scheduled flights since 2017166589674

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Preview of the sample data: Saint Helena roads and paths st-helena-roads.geojson

Roads and paths (lines)

110 named roads, streets, tracks and paths (OSM segments merged by name) with class, surface, speed limit and length. RFC 7946 GeoJSON, WGS 84.

  • roads · LineString · 110
  • EPSG:4326
  • 161.8 kB
Attributes (8)
idIntegernameStringclassStringrefStringonewayStringmaxspeedIntegersurfaceStringlength_mReal
1Airport Access RoadtertiaryNonenoNonepaved13088.3
2Airport Access RoadtertiaryNoneyesNonepaved177.1
3Casons RoadtertiaryNonenoNoneNone6132.5
4China LanetertiaryNoneyesNoneNone34.1
5Commonwealth AvenuetertiaryNoneno48asphalt3035.7

© OpenStreetMap contributors, ODbL 1.0

Preview of the sample data: Saint Helena land cover st-helena-landcover.geojson

Land cover (polygons)

190 land-cover polygons (forest, scrub, farmland, residential, water, …) from OpenStreetMap with area in hectares. RFC 7946 GeoJSON, WGS 84.

  • landcover · Polygon · 190
  • EPSG:4326
  • 192.3 kB
Attributes (6)
idIntegerlandcoverStringosm_classStringnameStringarea_haRealosm_idString
1beachbeachNone0.6241102771696
2beachbeachSandy Bay Beach0.557550627544
3farmlandfarmlandNone4.50235798087
4farmlandfarmlandNone4.10835798079
5farmlandfarmlandNone3.73535798064

© OpenStreetMap contributors, ODbL 1.0

Preview of the sample data: Saint Helena contour lines st-helena-contours.geojson

Contour lines (3D lines)

27 contour lines at 100 m intervals derived from Copernicus DEM, 3D lines with Z = elevation. RFC 7946 GeoJSON, WGS 84.

  • contours · LineString Z · 27
  • EPSG:4326
  • 261.2 kB
Attributes (3)
idIntegerelevIntegerlength_mReal
110077402.4
220097244.9
3300106037.6
440088889.8
54003772.8

Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Preview of the sample data: Saint Helena waterways st-helena-waterways.geojson

Waterways (lines)

117 streams and canals from OpenStreetMap with class and length. RFC 7946 GeoJSON, WGS 84.

  • waterways · LineString · 117
  • EPSG:4326
  • 87 kB
Attributes (5)
idIntegernameStringclassStringlength_mRealosm_idString
1Nonestream2144.830139205
2Noneriver143.2205323233
3The Runcanal566.2205332771
4Nonestream452.7255707505
5Nonestream431.5255707507

© OpenStreetMap contributors, ODbL 1.0

Preview of the sample data: Jamestown buildings st-helena-buildings.geojson

Jamestown buildings (polygons)

179 building footprints in Jamestown with type, footprint area and ground elevation. RFC 7946 GeoJSON, WGS 84.

  • buildings · Polygon · 179
  • EPSG:4326
  • 61.4 kB
Attributes (6)
idIntegernameStringtypeStringarea_m2Realground_mIntegerosm_idString
1The CastleNone1943.717254448018
2NoneNone265.014254448020
3Nonehouse157.426254448021
4Nonehouse90.624254448022
5NoneNone242.511254448028

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Frequently asked questions

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.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.