
GeoJSON to TopoJSON
GeoJSON is plain-text JSON for maps, and the web's default: Leaflet, Mapbox, D3, GitHub previews and almost every API read it.. Turn it into TopoJSON here, in your browser, with attributes and projection handled.
Runs in your browser. Your files never leave your device.
How to use it
- Drop a .geojson or .json file holding a FeatureCollection, a Feature or a bare geometry.
- Leave “Save as” on TopoJSON. Keep “Convert coordinates to longitude/latitude” ticked unless you need the original projection.
- Press Convert. A preview of the shapes appears with the number of features and the file size.
- Press Download.
Questions
Is my file uploaded?
No. The conversion runs in this browser tab with mapshaper compiled to JavaScript; your file never leaves your device. After the page loads it even works offline.
What is GeoJSON?
GeoJSON is plain-text JSON for maps, and the web's default: Leaflet, Mapbox, D3, GitHub previews and almost every API read it.
What will the TopoJSON file look like?
Borders shared by neighbours are stored once; coordinates are quantized (rounded to a fine grid) for size.
Will my attributes come across?
Yes, every attribute is kept with its feature.
What about the coordinate system?
GeoJSON, KML and CSV are already longitude/latitude, so nothing needs converting.
How big a file can it handle?
Files up to a few hundred megabytes work on most computers; the limit is your browser's memory. For a huge file, simplify it at the same time (tick “Simplify too”).
The conversion engine is mapshaper 0.8.17 by Matthew Bloch (MPL-2.0), served unchanged from handy.moe. Licences.
