GeoJSON, TopoJSON, KML and Shapefile Converter
Convert between GeoJSON, TopoJSON, KML and Shapefile online, for free
Paste your data or upload a zipped Shapefile and convert it to GeoJSON, TopoJSON, KML or Shapefile. GeoJSON results are previewed on a map.
GeoJSON result
Convert between geospatial data formats
Choose different source and output formats from GeoJSON, TopoJSON, KML and Shapefile. Paste text data for GeoJSON, TopoJSON or KML, or upload a zipped Shapefile. GeoJSON output can also be previewed on the map.
Example GeoJSON input
This valid GeoJSON Point can be pasted into the input when GeoJSON is selected as the source. Choose a different target format to request a conversion.
{"type":"Feature","properties":{"name":"Copenhagen"},"geometry":{"type":"Point","coordinates":[12.5,55.7]}}
With GeoJSON selected as the source and KML as the target, the result contains this placemark:
<Placemark>
<name>Copenhagen</name>
<Point>
<coordinates>12.5,55.7</coordinates>
</Point>
</Placemark>
The converter returns a downloadable KML document; its wrapper elements may differ, but the point remains at longitude 12.5, latitude 55.7.
How to convert a file or dataset
- Choose the source and target formats. They must be different.
- Paste the source data, or select a zipped Shapefile when Shapefile is the source.
- If the archive contains multiple layers, enter the layer name if needed. For Shapefile output, choose a geometry type when your GeoJSON contains mixed geometry.
- Select Convert, then inspect the result or download it.
Shapefile input and output options
The upload control accepts a ZIP archive for Shapefile input and sends its contents to the conversion service as base64 data. Archives may contain multiple layers; the layer field lets you select one when needed. When exporting to Shapefile, the form offers Automatic, Point, Line and Polygon geometry choices. The converter service handles the actual archive and conversion; unsupported or malformed data is reported as a conversion error. Consult the API documentation or contact support for the exact archive contents accepted by the conversion service.
Common conversion problems
Make sure the selected source matches the pasted data, the source and target differ, and a Shapefile upload is a ZIP file. If a ZIP contains several layers, specify the intended layer. GeoJSON and TopoJSON input must be valid JSON.
Business applications
Convert supported geographic documents when preparing GIS exports for a web map, logistics system or software integration. Inspect converted features, coordinate order and attributes before importing the output into another system.
Related tools
Find validation, viewing and extent tools in the GeoJSON and GIS data tools. For a worked example, read how to convert GeoJSON to KML.
Frequently asked questions
What is the difference between TopoJSON and GeoJSON?
GeoJSON stores each shape with its own coordinates. TopoJSON encodes shared boundaries once as arcs, which makes files smaller, but GeoJSON is supported by far more tools and libraries.
How do I convert between formats?
Choose the source and target format, paste your data (or upload a zipped Shapefile) and press Convert. The result appears below and can be downloaded.
Are properties kept when converting?
Property handling depends on the source and target formats and the upstream conversion result. Inspect the converted output before using it.
Can I use the result with Leaflet or other mapping libraries?
Yes. The output is standard GeoJSON, which Leaflet, Mapbox, OpenLayers and most GIS software can read directly.
Can I convert formats automatically?
Yes. GeoJSON, TopoJSON, KML and Shapefile conversion is available through our API.
Can I convert a format to itself?
No. The source and target selections must differ. The form offers GeoJSON, TopoJSON, KML and Shapefile as source and target formats.
When should I choose a Shapefile geometry type?
The geometry-type selector is shown for Shapefile output. Choose Point, Line or Polygon when needed for mixed GeoJSON; Automatic is also available.
Use this capability in your application
Convert geospatial formats programmatically: the API provides document conversion between GeoJSON, TopoJSON, KML and Shapefile.