Shapefile to GeoJSON Converter: a practical guide
Shapefile files are everywhere: ArcGIS and QGIS and government open data. It is several files that must travel together, field names are cut to ten characters, and one file holds one geometry type. That is when people search for shapefile to GeoJSON, and it is what this page does: map data moved between formats with geometry and properties intact.
Searching for SHP to GeoJSON lands you here too. The steps are short: drop your Shapefile into the box above, check the result, and download a GeoJSON when it looks right.
Shapefile and GeoJSON: what changes
- Shapefile: Esri’s GIS format: geometry in .shp, attributes in .dbf and the projection in .prj, usually zipped together. It is several files that must travel together, field names are cut to ten characters, and one file holds one geometry type.
- GeoJSON: Map features (points, lines, polygons) and their properties in plain JSON. Readable, web-native and the default format of Leaflet, Mapbox and most map libraries.
How the Shapefile to GeoJSON converter works
A Shapefile is read in your browser with its geometry and properties, and drawn on a map so you can check it landed in the right place.
It is written as a GeoJSON, keeping the attributes each feature carries.
What the GeoJSON is used for
- Web maps
- Sharing boundaries and routes
- Data journalism
What makes this Shapefile to GeoJSON converter different
- See it on a map. Check the data before you download.
- Properties kept. Names and attributes travel with the shapes.
- Merge files. Pick several to combine them.
Tips for the best GeoJSON
- If points appear in the wrong country, the source may have latitude and longitude the other way round.
- Shapefiles need their .shp.dbf and .prj together; zip them up before uploading.
On the blog: How to Convert Shapefile to GeoJSON Free, Step by Step