Validate GeoJSON online

Paste GeoJSON into the editor above, or edit the example. It's checked as you type: problems are underlined, with a marker beside the line, and hovering one explains what's wrong. The map draws your features and moves to them, so you can see your data is where it should be. Everything runs in your browser, and your GeoJSON isn't uploaded anywhere.

What is GeoJSON?

GeoJSON is a JSON format for geographic data, standardised by the IETF in 2016 as RFC 7946. A GeoJSON file is made of three kinds of object:

Coordinates use WGS 84 and are written longitude first, then latitude, optionally followed by altitude:

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [15.9819, 45.815]
  },
  "properties": { "name": "Zagreb" }
}

What the validator checks

It doesn't check polygon winding order (the right-hand rule) or coordinate precision. A crs member is ignored: RFC 7946 dropped it.

The map only draws features it can place: their coordinates must be numbers, with longitude between −180 and 180 and latitude between −90 and 90. Anything else is left off the map, with a note saying why.

Common GeoJSON errors

Latitude and longitude swapped

GeoJSON is longitude first: [15.98, 45.81] is Zagreb. Swapped coordinates that are still in range pass validation, but the map gives them away: the features show up in the wrong place.

Polygon ring not closed

A ring's last position must repeat its first, so a triangle has four positions, not three.

Feature without properties

Every Feature needs a properties member. If it has no attributes, use "properties": null or {}.

Lowercase type names

Types are case-sensitive: "Point" is valid, "point" isn't. The same goes for every type, from "Feature" to "MultiPolygon".

Coordinates as strings

Positions must be numbers: [15.98, 45.81], not ["15.98", "45.81"]. In JSON, quoted numbers are strings.

Trailing commas

JSON doesn't allow a comma after the last item in an object or array, even though JavaScript does.