Output will appear here
About
The GeoJSON Formatter & Validator parses and validates GeoJSON documents according to RFC 7946 — the current authoritative specification for geographic JSON data. It checks for correct geometry type names (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection), valid coordinate arrays (correct dimensionality, numeric values, longitude/latitude ordering), properly structured Feature and FeatureCollection objects, and required fields at each level. When errors are found, specific messages describe exactly what is wrong and where. Valid documents are pretty-printed with consistent indentation for easy reading and copying. All processing runs locally in your browser, so you can safely validate location data containing addresses, precise coordinates, or any geospatial information that must not leave your network.
How to use
- 1 Paste your GeoJSON document into the editor panel on the left.
- 2 The tool validates it automatically and lists any RFC 7946 violations in the error panel below the editor.
- 3 Click on an error message to jump to the relevant line in the editor.
- 4 Fix the highlighted errors — the validator updates live as you type.
- 5 Once the document is valid, click Copy to copy the pretty-printed output, or use the Format button to apply clean indentation.
- What is GeoJSON and what is RFC 7946?
- GeoJSON is an open standard for encoding geographic data — points, lines, polygons, and collections of these — as JSON. RFC 7946 is the Internet Engineering Task Force specification that defines the exact rules: valid geometry types, coordinate ordering (longitude first, then latitude), bounding box format, and the structure of Feature and FeatureCollection objects. This tool validates against RFC 7946 specifically.
- What errors does the GeoJSON validator catch?
- The validator reports invalid geometry type names, malformed coordinate arrays (wrong number of elements, non-numeric values, coordinates outside valid longitude/latitude ranges), missing required fields such as "type" and "coordinates", improperly structured Feature objects (missing or null geometry without explicit null value), and FeatureCollection objects that contain non-Feature members.
- Does this tool display a map of my GeoJSON?
- No — this tool focuses on validation, linting, and formatting. It does not render a map visualisation. For map previews, tools like geojson.io are useful. This tool is designed for developers who need to confirm correctness and fix errors before the data reaches a mapping library.
- Can I use this tool offline?
- Yes. Once the page has loaded, all validation and formatting runs in your browser with no network requests. This is particularly useful when working with sensitive location data — customer addresses, asset tracking coordinates, or internal facility maps — that you cannot send to an external server.
- Why is my GeoJSON valid JSON but failing GeoJSON validation?
- GeoJSON has stricter requirements than plain JSON. A document can be syntactically valid JSON but still violate RFC 7946 — for example, a geometry object missing the "coordinates" field, a polygon ring that is not closed (last coordinate must equal the first), or a type value that is misspelled. The validator checks both JSON syntax and GeoJSON-specific rules.