JSON to GeoJSON

Takes a flat JSON array of location records and converts it into a standards-compliant GeoJSON FeatureCollection, placing each row as a Point feature with all non-coordinate fields preserved as properties. The latitude and longitude field names are fully configurable, so datasets that use lat/lng, latitude/longitude, or any other naming convention work out of the box. The result can be downloaded as a .geojson file and loaded directly into Mapbox, Leaflet, or QGIS.

Input

JSON

Coordinate Fields

Latitude field
Longitude field

Output

4 items
Output

GeoJSON

What is JSON to GeoJSON Converter?

Most location data starts life as a JSON array with lat and lng fields — an API response, a database export, a sensor log. Mapping libraries don't read that directly; they expect GeoJSON, a specific format defined by RFC 7946 where coordinates live inside a geometry object and all other fields move into a properties object. Converting between the two formats manually means restructuring every object and getting the coordinate order right (GeoJSON uses [longitude, latitude], not [latitude, longitude]). This tool does the conversion automatically: specify which fields are latitude and longitude, choose the geometry type (Point for locations, LineString for routes, Polygon for boundaries), and all other JSON fields are preserved as feature properties. The output is a GeoJSON FeatureCollection ready to drop into Mapbox GL JS, Leaflet, Google Maps, QGIS, or geojson.io.

How to Use

  1. 1

    Paste Your Location JSON

    Paste a JSON array of objects that include location fields (latitude/longitude, or a coordinates array). The tool detects common field names: lat/lng, latitude/longitude, coordinates, location.lat/location.lng.

  2. 2

    Configure GeoJSON Mapping

    Map your coordinate fields to GeoJSON longitude and latitude (note: GeoJSON uses [longitude, latitude] order, not [lat, lng]). Set the feature geometry type (Point, LineString, or Polygon) and choose which JSON fields to include as feature properties.

  3. 3

    Generate the GeoJSON

    Click "Convert to GeoJSON". Each JSON object becomes a GeoJSON Feature with a geometry and a properties object. The output is wrapped in a FeatureCollection for use with mapping libraries.

  4. 4

    Use in Your Mapping Tool

    Copy the GeoJSON or download the .geojson file. Drop it into geojson.io for a quick visual check, or load it directly into Mapbox GL JS, Leaflet, Google Maps, QGIS, or Kepler.gl.

Common Use Cases

Mapping & Visualisation

Convert JSON arrays with latitude/longitude fields into GeoJSON FeatureCollections for rendering on Mapbox, Leaflet, Google Maps, or deck.gl without writing GeoJSON structure by hand.

Geospatial API Integration

Transform location data from REST APIs or databases into GeoJSON format for integration with geospatial services, PostGIS databases, or mapping SDKs that expect the GeoJSON specification.

Location Data Export

Convert structured location datasets — store locations, delivery addresses, tracking coordinates — into GeoJSON for sharing with mapping tools, GIS platforms like QGIS, or public data portals.

Route & Boundary Definition

Convert JSON arrays of coordinate sequences into GeoJSON LineString or Polygon features for defining routes, geofences, catchment areas, or territory boundaries in mapping applications.

Conversion Examples

JSON Location Array → GeoJSON FeatureCollection

Each JSON object with lat/lng fields becomes a GeoJSON Point Feature.

Input JSON

[
  {"name": "London",   "lat": 51.5074, "lng": -0.1278},
  {"name": "Paris",    "lat": 48.8566, "lng":  2.3522},
  {"name": "Berlin",   "lat": 52.5200, "lng": 13.4050}
]

Output CSV

{
  "type": "FeatureCollection",
  "features": [
    {"type":"Feature","geometry":{"type":"Point","coordinates":[-0.1278,51.5074]},"properties":{"name":"London"}},
    {"type":"Feature","geometry":{"type":"Point","coordinates":[2.3522,48.8566]},"properties":{"name":"Paris"}},
    {"type":"Feature","geometry":{"type":"Point","coordinates":[13.4050,52.5200]},"properties":{"name":"Berlin"}}
  ]
}

Frequently Asked Questions