GeoJSON is one of the most widely used formats for web mapping and GIS data exchange. But a single syntax error or malformed geometry can cause map renderers to fail silently, APIs to reject your data, or downstream analysis to produce wrong results. That’s why validating your GeoJSON files before publishing is essential.
Common GeoJSON Errors
The GeoJSON Validator tool catches these common issues:
- Invalid coordinate ranges — latitude outside ±90°, longitude outside ±180°
- Mismatched geometry arrays — e.g., 2D coordinates in a 3D-only context
- Missing required properties — Feature/FeatureCollection structure errors
- Nested coordinate depth — wrong array nesting in MultiPolygon geometries
- RFC 7946 compliance — CRS conventions, right-hand rule for polygon winding
How to Validate Your GeoJSON
- Go to the GeoJSON Validator tool.
- Drag and drop your
.geojsonfile, or paste GeoJSON text directly. - Errors and warnings are highlighted with line numbers for easy fixing.
- Download the corrected version with auto-fixed structural issues.
Validation vs. Visualization
After validating, open your GeoJSON in GeoDataViewer Studio to visually inspect the data — check for misplaced features, overlapping geometries, or attribute issues that validation alone won’t catch.
Best Practices
- Always validate before publishing GeoJSON to a web map or data portal.
- Fix one error at a time — the validator shows the first error clearly.
- Use the Coordinate Converter if coordinates are in the wrong format.