Skip to the converter

SHP to GeoJSON converter, without the upload.

Turn a shapefile into GeoJSON for the web. It is converted in your browser, so the file never leaves your device.

Drop SHP files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert SHP to GeoJSON

  1. Add your SHP map layers

    Drop SHP (shapefile) files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. GeoJSON is already chosen

    Press Convert. There is nothing else to set. The work happens in this tab.

  3. Download

    Save the GeoJSON, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The SHP to GeoJSON converter is part of this page and runs inside your browser. Your map layers are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

SHP to GeoJSON: what to expect

A shapefile is really a set of files and is awkward to share or load in a web page. GeoJSON puts the shapes and their attribute table in a single readable file that web maps and GitHub can display directly. The attributes in the .dbf file become feature properties.

Every format is read into plain GeoJSON features and written out from there, so coordinates, names and properties carry over wherever the target has a place for them. A zipped shapefile (the .shp with its .dbf and .shx) or a bare .shp is read. If a .prj file names the coordinate system, coordinates are converted to latitude and longitude; a coordinate system that cannot be read is refused. Coordinates are written longitude first, then latitude, as GeoJSON requires. Coordinates outside the latitude and longitude range are refused, since the file is probably in a projected coordinate system.

SHP vs GeoJSON

SHP

Shapefile

A shapefile is not one file but a set: .shp holds the shapes, .dbf the attributes, .shx an index, usually with a .prj for the projection. It is the long-standing GIS interchange format. Limits include 10-character field names, one geometry type per file and 2 GB per component. Shapefiles are normally shared as a ZIP of the parts.

Opens in QGIS, ArcGIS, GDAL-based tools and nearly every GIS program

SHP converter
GEOJSON

GeoJSON map data

GeoJSON describes geographic features, points, lines and polygons, with their properties as plain JSON. It is the standard format for web maps. Coordinates are in WGS 84 and written longitude first, then latitude, the reverse of how most people say them.

Opens in QGIS, Leaflet, Mapbox, geojson.io, GitHub's map view and most GIS tools

GeoJSON converter
SHP compared with GeoJSON
SHPShapefileGEOJSONGeoJSON map data
Stands forEsri ShapefileGeoJSON
TypeGeographic dataGeographic data
CompressionNone (several files per layer)None (JSON text)
IntroducedThe early 1990s, by Esri2008, by the IETF (RFC 7946), from a community specification
Opens inQGIS, ArcGIS, GDAL-based tools and nearly every GIS programQGIS, Leaflet, Mapbox, geojson.io, GitHub's map view and most GIS tools
Best forExchanging vector map layers between GIS programsPoints, lines and areas on the web
File extension.shp.geojson

Questions

Are my map layers uploaded anywhere?

No. The SHP to GeoJSON conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Is anything lost when converting SHP to GeoJSON?

The values are kept. Anything GeoJSON has no way to express, such as formatting, formulas or nesting, is simplified or left out.

Can I convert several SHP files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert SHP to GeoJSON on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the SHP file, press Convert and save the GeoJSON. There is nothing to install.

Is there a file size limit?

Yes. Files up to 200 MB are accepted; a larger file is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.