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.
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:
Point,
LineString and Polygon;
MultiPoint, MultiLineString and
MultiPolygon for shapes in several parts; and
GeometryCollection.
properties object for its attributes, such as a name.
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" }
}
type: it must be a GeoJSON type, spelled
exactly, and allowed where it's used.
coordinates, geometry,
properties, features and
geometries.
id, which must be a string or number, and
bbox, which needs four or six numbers.
properties on a geometry.
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.
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.
A ring's last position must repeat its first, so a triangle has four positions, not three.
Every Feature needs a properties member. If it has no
attributes, use "properties": null or {}.
Types are case-sensitive: "Point" is valid,
"point" isn't. The same goes for every type, from
"Feature" to "MultiPolygon".
Positions must be numbers: [15.98, 45.81], not
["15.98", "45.81"]. In JSON, quoted numbers are strings.
JSON doesn't allow a comma after the last item in an object or array, even though JavaScript does.