GeoJSON is a file format for map data served by Mapbox web services and APIs. As a subset of the JSON format, it can be parsed in modern software and native to the JavaScript language.

You can upload GeoJSON files to your Mapbox account to use in a custom map style. See the Mapbox Studio manual uploads page for details. Below is a sample GeoJSON file for reference.

Download a sample GeoJSON file

There are several open source tools for converting other geospatial data formats to GeoJSON. A few favorites are:

  • togeojson, a node package for converting KML and GPX (XML formats).
  • ogr2ogr, the ultimate 40-in-1 vector data conversion tool.
  • for creating, converting, and editing GeoJSON.