How to convert GeoJSON to Shapefile
- Save your data as a
.geojsonor.jsonfile. A FeatureCollection, a single Feature or a bare geometry all work. - Drop the file into the box above.
- A ZIP downloads with the Shapefile parts: .shp, .shx, .dbf, .prj and .cpg.
- Extract the ZIP and add the .shp to ArcGIS Pro, ArcMap or QGIS.
Why GeoJSON and Shapefile do not map one to one
GeoJSON is a loose format: one file can mix geometry types, every feature can have its own set of properties, and a property can hold a number, text, a list or a nested object. A Shapefile is strict: one geometry type per file, one fixed table of fields, short field names. The converter bridges the two as follows.
| In the GeoJSON | In the Shapefile |
|---|---|
| Points, lines and polygons in one file | One shapefile per type: points, lines, polygons |
| Different properties on different features | One table with every field; missing values are left empty |
| Property names of any length | Field names shortened to 8 characters |
| Numbers, booleans, null | Text; null becomes an empty value |
| Lists and nested objects | Written as JSON text |
| Text of any length | Cut at 254 bytes, the size of a text field in a .dbf |
| MultiLineString, MultiPolygon, GeometryCollection | Split into one feature per part, each with the same attributes |
| Coordinates with a third value (elevation) | 2D; the third value is dropped |
| Features with a null geometry | Skipped |
What you get in the ZIP
- .shp, .shx: the geometry and its index.
- .dbf: the attribute table built from the GeoJSON properties.
- .prj: the coordinate system, WGS 84 (EPSG:4326).
- .cpg: marks the text as UTF-8 so accented and non-Latin characters display correctly.
Coordinates must be longitude and latitude
The GeoJSON standard (RFC 7946) stores coordinates as WGS 84 longitude and latitude, in that order. The converter writes the coordinates as they are and labels the result WGS 84. It does not reproject. If your file was exported in a projected system such as UTM or Web Mercator, which some older tools allow through a crs member, export it again in EPSG:4326 first. Otherwise the Shapefile carries a .prj that does not match its coordinates.
Common problems
"This file is not valid JSON"
The file is cut off, has a trailing comma, or is not JSON at all. Open it in a text editor and check that it starts with { and ends with }. Line-delimited GeoJSON (one feature per line, often with the extension .geojsonl or .ndjson) is a different format and is not read.
"The file must be a FeatureCollection, a Feature or a geometry"
The JSON is valid but is not GeoJSON. Two usual cases: a TopoJSON file, which has "type": "Topology" and has to be converted to GeoJSON first, and an API response that wraps the GeoJSON in another object. Save only the GeoJSON part.
Field names look cut off
The Shapefile format allows field names of up to 10 characters, and this converter keeps the first 8. population_2020 becomes populati, and a second field that would get the same name gets a number at the end, such as populat1. Rename the properties before converting if you need names you can tell apart.
The file is too large
The free tool handles files up to 3 MB. For larger files or many files at once, use GaleriGIS Toolbox.
GaleriGIS Toolbox
$15 per month
- No conversion limit on every GaleriGIS online converter
- Several files at once, and larger files
- DWG and DXF in any UTM zone or EPSG code, KML/KMZ, Shapefile, GeoJSON, Excel and coordinates
- Files stay in your browser. Billed monthly, cancel any time
Payments are processed by Creem, our merchant of record. See our refund policy and terms.
Frequently asked questions
Is my file uploaded?
No. The GeoJSON is read and converted inside your browser. Only the converter code is downloaded from our server.
Why do I get more than one shapefile?
Your GeoJSON has more than one kind of geometry. A Shapefile can hold only one, so points, lines and polygons are written to separate shapefiles in the same ZIP.
My numbers came out as text. How do I calculate with them?
Add a numeric field in your GIS software and fill it from the text field, for example with the field calculator in QGIS or ArcGIS.
How many files are free?
Three. After the third file the free quota fills up again over the next one to three days. GaleriGIS Toolbox has no limit.
I need the opposite direction
Use the SHP to GeoJSON converter. For Google Earth files there is KML to SHP.
What can I do with the Shapefile next?
Open it in any GIS software. In GaleriGIS Pro, our Windows app, you can put it on satellite imagery, style it and print a map layout.