iLoveConverter
Categories 11 categories
Data GeoJSON

GeoJSON, Explained

iLoveConverter Team 2 min read

On this page

GeoJSON is JSON for geography — a simple, widely adopted standard for encoding geographic data. Every point of interest, route, boundary, or region can be represented as a GeoJSON Feature, and every Feature has properties (name, address, population, elevation) just like a JSON object. Web maps, GIS tools, and databases all speak GeoJSON natively.

Technical details

GeoJSON defines seven geometry types: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, and GeometryCollection. Each Feature wraps a geometry plus a properties object. A FeatureCollection is an array of Features. All coordinates use longitude/latitude (WGS 84) by default.

FeatureGeoJSONTopoJSONShapefile
FormatJSONJSON (topology-aware)Binary + DBF + SHX
Size (relative)100%20–40%50–80%
Web-friendlyYesYesNo
TopologyNoYesYes
StandardizationOpen specOpen specESRI proprietary

Conversion

GeoJSON ↔ TopoJSON conversion is common — TopoJSON shares topology between adjacent shapes for 60–80% smaller files. Converting GeoJSON to Shapefile (and vice versa) is handled by GDAL and ogr2ogr. The main gotcha: GeoJSON properties are JSON objects, but Shapefile DBF columns are fixed-type strings/dates/numbers, so rich properties often flatten or lose precision.

Common problems

  • File size. GeoJSON with many features or detailed polygons can be megabytes. TopoJSON is the standard fix.
  • Coordinate order. GeoJSON uses [lon, lat] — opposite of many GIS conventions. Easy to mix up.
  • No units. Distances in GeoJSON are in degrees, not meters. Always project before measuring.

FAQ

Is GeoJSON an official standard?

Yes — RFC 7946 (2016) formalized the spec, with updates in RFC 8792 (2020) handling newline-delimited streaming versions. It’s governed by the IETF.

What’s the difference between GeoJSON and TopoJSON?

GeoJSON stores each geometry independently. TopoJSON encodes shared boundaries between adjacent shapes once, dramatically reducing file size. TopoJSON also encodes topology — useful for operations like merging districts. GeoJSON is simpler; TopoJSON is more efficient.

Can I open GeoJSON in Excel?

Yes — modern Excel (365/2021+) opens .geojson files natively and maps coordinates to a 3D globe. Older versions need Power Query or a third-party plugin.

Does Google Maps or Leaflet support GeoJSON?

Both have native GeoJSON layers. Drop a GeoJSON URL into Leaflet’s L.geoJSON() or Google Maps’ Data layer and it renders immediately — no parsing, no conversion.

How do I measure distances in GeoJSON?

Coordinates are in degrees (angular). Use the Haversine formula or a library like Turf.js to compute real-world distances. For accurate area and distance calculations, project to a local coordinate system first.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: GeoJSON (.geojson.json) , KML (.kml)