New: Screen RecorderScreen + webcam, trim, save as MP4Try it now →

Add tools here by clicking the star icon.
Back to tools

Shapefile to GeoJSON Converter (SHP to GeoJSON)

Open a zipped Shapefile — or the .shp, .dbf and .prj files together — and download it as GeoJSON. Attributes are kept and coordinates are reprojected to WGS84 using the .prj file.

Loading map editor…

What you need

A Shapefile is really several files that belong together:

  • .shp — the geometry (required)
  • .dbf — the attribute table (names, IDs, …)
  • .prj — the coordinate system; needed to reproject correctly
  • .cpg — the text encoding of the attributes (optional)

Either select them all at once in the file picker, or put them in a .zip first (most downloads already come zipped). A zip may contain several shapefiles; all of them are imported.

Coordinate systems

GeoJSON uses longitude/latitude on WGS84. If the .prj describes another system — UTM, a State Plane zone, British National Grid, Web Mercator… — coordinates are reprojected automatically. Without a .prj the coordinates are read as they are, and the validator warns you if they don't look like degrees.

Limits

  • Z values (PointZ, PolygonZ, …) are kept as a third coordinate; M values are dropped.
  • Very large shapefiles (hundreds of thousands of vertices) work but make the map slower; the converter still exports them.

How to use it

  1. Press “Open Shapefile” and select the .zip, or the .shp, .dbf and .prj files together (or drop them on the map).
  2. Check the features on the map and their attributes in the panel.
  3. Press “Download GeoJSON”. Lower the coordinate precision under Export for a smaller file.

Common Use Cases

  • Using government open data in web maps
  • Loading shapefiles into MongoDB, PostGIS or BigQuery as GeoJSON
  • Checking a shapefile without QGIS or ArcGIS
  • Converting parcels or zoning maps for developers

Frequently Asked Questions

Do I need the .prj file?
Only if the shapefile isn’t already in WGS84 longitude/latitude. With the .prj the data is reprojected automatically; without it, projected coordinates will be out of range and the validator will warn you.
Can I convert only the .shp file?
Yes, but without the .dbf there are no attributes, and without the .prj no reprojection. Select all the files together if you have them.
My attribute text looks garbled. Why?
The .dbf uses a legacy code page. Include the .cpg file, which tells the reader the encoding.

Why use this tool?

  • Zip or loose files accepted
  • Automatic reprojection from the .prj
  • Attributes kept as properties
  • No upload, no account

Privacy

Your shapes and files stay in your browser — nothing is uploaded. Map tiles come from OpenStreetMap or Esri, and place searches go to OpenStreetMap Nominatim.

How was this tool?

Your feedback helps us make it better.

Have further opinions? Email me at hello@everythingbagel.app