mapbox/togeojson
convert KML and GPX to GeoJSON, without the fuss observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 90
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5016
- days_rel: n/a
- days_push: 65
- n_releases_24m: 0
Adoption not part of the score
1326 stars · 322 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A tiny, dependency-free JavaScript library that converts KML and GPX documents into GeoJSON, usable in both browsers and Node.js. It also ships a CLI for quick file conversion.
Use cases
- convert kml files to geo
- convert gpx tracks to geo for leaflet maps
- parse gpx waypoints in node.js
- turn google earth kml placemarks into geo features
- batch convert gps exchange files from the command line
- load kml data into mapbox or leaflet
When to choose
- you need KML or GPX data as GeoJSON in a browser or Node.js app
- you want a tiny, dependency-free converter
- you use Leaflet or Mapbox and need to ingest KML/GPX layers
When to avoid
- you need to convert GeoJSON back to KML or GPX
- you need full fidelity for all KML features like NetworkLinks or tours
- you work outside the JavaScript ecosystem
Facets
library · maturity stable
parser serialization cli web-development developer-tools browser cli cross-platform geo kml gpx gis leaflet format-conversion maps geospatial nodejs
3 sources
- readme: https://github.com/mapbox/togeojson · fetched 2026-08-28 · 7ae66f1047a1
- homepage: http://mapbox.github.io/togeojson/ · fetched 2026-08-29 · a20b68207563
- registry_npm: https://registry.npmjs.org/togeojson · fetched 2026-08-29 · 78df53985e5e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mapbox/togeojson | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="mapbox/togeojson")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem