GeoJSON Validator

Free, no sign-up, runs entirely in your browser. Paste or upload a GeoJSON file to see exactly what's wrong with it — and download a repaired copy when the problems can be fixed automatically.

Winding order rule

Invalid GeoJSON — 3 errors, 4 warnings

FeatureCollection · 3 valid features · 9 positions · 1 Polygon, 1 Point, 1 LineString

  • crs

    "crs" was removed from the spec in RFC 7946. GeoJSON coordinates are always WGS84 longitude/latitude.

    Removed "crs".

  • features[0].properties

    Feature is missing the required "properties" member (it may be null or an object).

    Added "properties": {}.

  • features[0].geometry.coordinates[0]

    Polygon ring is not closed — the last position must repeat the first.

    Closed the ring by repeating the first position.

  • features[0].geometry.coordinates

    1 ring wound the wrong way for the RFC 7946 right-hand rule (outer rings counter-clockwise, holes clockwise).

    Reversed it.

  • features[1].type

    "feature" is not a GeoJSON type — type names are case-sensitive.

    Changed to "Feature".

  • features[1].geometry.coordinates

    1 position outside the valid range (longitude ±180, latitude ±90), e.g. [-33.87, 151.21]. The values look like latitude/longitude in the wrong order — GeoJSON puts longitude first.

  • features[2].geometry.coordinates

    1 repeated consecutive point.

    Removed the duplicate.

Every fixable issue has been repaired. Warnings without a wrench (like self-intersections) are left for you to review.

Clean file — now make it look good

Valid GeoJSON is the starting point for a map graphic. Render your file as an outline SVG with the converter, or build a styled dotted map of the same country or region in the World in Dots editor — free to use, with free PNG export.

What does this GeoJSON validator check?

GeoJSON is defined by RFC 7946, and most "my map won't load" problems come down to a handful of rules in it. This tool parses your file, walks every Feature and geometry, and lists each problem with its exact path — for example features[12].geometry.coordinates[0] — so you can find it in a file with thousands of features.

Errors break the spec: invalid JSON, a misspelled or wrongly capitalised type, a Feature without properties or geometry, coordinates stored as strings, polygon rings that don't end where they start, or rings with fewer than three distinct points. Warnings are things the spec allows but that commonly cause trouble: the legacy crs member, repeated consecutive points, coordinates outside ±180° longitude or ±90° latitude (usually swapped latitude/longitude or projected metres), self-intersecting polygons, and rings wound the wrong way.

What the auto-fix changes

When every error can be repaired, you get a fixed file to copy or download. The fixer closes open rings, removes duplicate points, corrects type capitalisation, converts numeric strings to numbers, adds missing properties and geometry members, drops the crs member, and reverses rings to match your chosen winding rule. Inside a FeatureCollection, a feature whose geometry is beyond repair is removed so the rest of the file stays usable — each change is listed next to the issue it resolves. It won't guess at swapped coordinates or untangle self-intersections; those need a human decision.

Winding order matters more than it looks. RFC 7946 says outer rings should run counter-clockwise and holes clockwise. d3-geo uses the opposite convention, so a polygon that follows the RFC can render inside-out in d3 — filling the whole globe except the shape you wanted. Pick the rule your renderer expects from the dropdown. Nothing you paste leaves your browser.