SHP GEOJSON
File conversion

Convert SHP to GEOJSON

QUICK ANSWER
Is it possible to convert SHP to GEOJSON?
Yes - SHP converts to GEOJSON.

Zip all Shapefile component files and drag the archive into mapshaper.org, then click Export > GeoJSON for a no-install conversion. For desktop use, QGIS exports GeoJSON via right-click > Export > Save Features As. Always reproject to WGS 84 (EPSG:4326) during export.

Also to GEOJSON: OSM · GPX · TAB

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert SHP to GEOJSON?

.geojson is the standard input format for web mapping libraries such as Leaflet, Mapbox, and OpenLayers, and it works directly in APIs and scripts. Unlike a Shapefile, GeoJSON is a single human-readable file that does not require GIS software to inspect, making it the natural choice for web development and data sharing.

How to convert SHP to GEOJSON

QGIS OPEN-SOURCE

Add the .shp via Layer > Add Layer, right-click the layer, choose Export > Save Features As, set format to GeoJSON, and set CRS to EPSG:4326.

ogr2ogr OPEN-SOURCE

Run ogr2ogr -f GeoJSON -t_srs EPSG:4326 out.geojson in.shp in a terminal; ogr2ogr ships with QGIS on Windows.

About these formats

Quality & what to watch

  • The GeoJSON spec requires WGS 84 (EPSG:4326); if the Shapefile uses a projected CRS and you skip reprojection, features will be misplaced on web maps.
  • Attributes from the .dbf become the properties object on each GeoJSON feature - field names, values, and types all carry over.
  • Shapefile .dbf field names are limited to 10 characters; GeoJSON has no such limit, but any names already truncated in the original will remain truncated after conversion.

Frequently asked questions

Do I need all Shapefile component files?
Yes - a lone .shp without its .shx and .dbf companions will fail to convert or produce GeoJSON with no attributes.
Is GeoJSON suitable for large datasets?
GeoJSON can grow very large for complex datasets; for production use with many features, GeoPackage or a spatial database may be more efficient.
Does mapshaper simplify geometry automatically?
Not by default - you must explicitly apply simplification in mapshaper; the default export preserves the original geometry.