KML, KMZ, GPX, GeoJSON, CSV or a shapefile (parts or ZIP), up to 200 MB, converted to GeoJSON in your browser. Nothing is uploaded.
This SHP to GeoJSON converter reads a shapefile with its .dbf, .prj and .cpg (or a ZIP), reprojects it to WGS 84 longitude / latitude and writes RFC 7946 GeoJSON for web maps. DBF attributes become properties with numbers, booleans and dates typed.
Last updated:
How it works
Open the shapefile
Press Open shapefile and pick its parts or the ZIP.
Format
One feature per line and Coordinate decimals.
Convert
Press Convert to GeoJSON.
Features
Reprojected to WGS 84
RFC 7946 requires longitude / latitude; the .prj CRS is converted with proj4js.
Typed attributes
Numeric DBF fields become numbers, logical fields booleans, dates ISO strings (YYYY-MM-DD).
Correct winding
Outer rings counterclockwise and holes clockwise, as RFC 7946 recommends.
Limits & privacy
One input can be up to 200 MB (50 MB on phones and devices with 4 GB of memory or less) and up to 5 million vertices (1 million there).
Converted locally — see the privacy page. View the shapefile first in the shapefile viewer.
Example: national statistics publish districts as a shapefile in a Lambert projection. Convert it to GeoJSON with 5 decimals and use it straight in a Leaflet choropleth map.
FAQ
Do I need the .prj?
Yes for projected shapefiles; without it, only data already in longitude / latitude can be converted.
Several shapefiles in one ZIP?
All are converted into one FeatureCollection with a layer property naming the source.
How big will the GeoJSON be?
Usually larger than the shapefile; reduce Coordinate decimals to 6 or 5 to shrink it.
Can I convert GeoJSON back to a shapefile?
Yes, GeoJSON converts back to a shapefile with GeoJSON to SHP.
Is the shapefile uploaded?
No, the shapefile is not uploaded: it is read and converted in your browser.
What about shapefiles with Z values?
PointZ, PolyLineZ and PolygonZ keep the elevation as the third coordinate; M values are dropped.
Are deleted DBF records included?
No, deleted DBF records are not included. Records marked as deleted in the .dbf are skipped together with their shapes.