GeoJSON Validator & Repair
Free RFC 7946 GeoJSON validator and repair tool. Check syntax, fix polygon winding order (right-hand rule), close rings, validate WGS84 bounds, and reduce coordinate precision.
What is GeoJSON Validator & Repair?
The GeoJSON Validator & Repair is a free online tool that validates GeoJSON files, detects common errors, and automatically fixes issues. It ensures your GeoJSON data is standards-compliant and ready for use in mapping applications.
GeoJSON validation is crucial for web mapping applications. Invalid GeoJSON can cause rendering errors, application crashes, or unexpected behavior in libraries like Leaflet, Mapbox, and OpenLayers.
This tool not only validates your GeoJSON but also provides automatic repair capabilities, fixing common issues like duplicate coordinates, incorrect winding order, and malformed geometries.
Common GeoJSON Errors
This validator detects and fixes the following issues:
- Missing or invalid 'type' property
- Incorrect coordinate format or order
- Coordinates out of valid bounds (-180 to 180, -90 to 90)
- Duplicate or redundant coordinates
- Unclosed polygon rings
- Incorrect polygon winding order (RFC 7946 right-hand rule: exterior ring counter-clockwise, holes clockwise)
- Empty or null properties
- Invalid Feature or FeatureCollection structure
How to Use GeoJSON Validator
Using the validator is straightforward:
- Paste your GeoJSON data or upload a .geojson file
- Click Validate to check for errors
- Review the validation results and detected issues
- Select repair options to automatically fix issues
- Click Repair & Validate to generate corrected GeoJSON
- Download the repaired GeoJSON or copy it for use
The tool provides detailed error messages showing exactly what's wrong and where the issue occurs in your GeoJSON structure.
Repair Capabilities
The repair function can automatically fix:
- Remove duplicate consecutive coordinates in LineStrings and Polygons
- Clean redundant coordinates using Turf.js cleanCoords
- Fix polygon winding order to follow the RFC 7946 right-hand rule (exterior ring counter-clockwise, interior rings (holes) clockwise)
- Remove empty properties objects or null values
- Reduce coordinate precision to a chosen number of decimal places to cut file size
- Report a live input-vs-output byte size comparison after each repair
After repair, the tool re-validates the GeoJSON to ensure all issues have been resolved.
Applications and Use Cases
This validator is useful for:
- Validating GeoJSON before using in production applications
- Debugging GeoJSON generation from databases or APIs
- Cleaning user-uploaded GeoJSON files
- Ensuring GeoJSON compatibility across different mapping libraries
- Reducing excessive coordinate precision to shrink file size and redundant points
- Preparing GeoJSON for efficient storage and transmission to Leaflet/Mapbox tiles
GeoJSON Validation Standards
This tool validates against the official GeoJSON specification (RFC 7946):
- Correct geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection
- Valid coordinate format: [longitude, latitude] or [longitude, latitude, elevation]
- Coordinate bounds: longitude [-180, 180], latitude [-90, 90]
- Polygon rings: first and last coordinates must be identical (closed ring)
- Winding order: exterior ring counter-clockwise, interior rings (holes) clockwise (RFC 7946 right-hand rule)
- Feature properties: must be an object (can be empty or null)
Following these standards ensures your GeoJSON works correctly across all compliant implementations.
About GeoJSON Validator & Repair
GeoJSON Validator & Repair checks any GeoJSON document for spec compliance (RFC 7946), flags structural errors, geometry issues, and out-of-range or non-numeric coordinates, and then auto-repairs the most common ones - redundant and duplicate coordinates, empty Feature properties, and polygon winding order via the right-hand rule (exterior ring counter-clockwise, holes clockwise). It also reduces excessive coordinate precision and shows a before-and-after byte size readout, the standard pre-deploy step to shrink Mapbox and Leaflet tile payloads. Built for GIS analysts cleaning field-collected data, web-map developers debugging tile sources, data engineers wiring up spatial pipelines, and anyone exporting from QGIS, ArcGIS, or custom scripts who needs the file to load cleanly in Leaflet, Mapbox, or Turf.js without surprises. Try also our Address Geocoder and Geohash Encoder Decoder.
Frequently Asked Questions

