Convert GeoJSON to Shapefile
This converter turns a GeoJSON file into a shapefile set with .prj and .cpg files for ArcGIS Pro, QGIS or AutoCAD Map 3D, optionally reprojected to a system such as a UTM zone. The conversion runs in your browser and the file is not uploaded. Mixed points, lines and polygons become separate shapefiles, property names are cut to 10 characters, and GeometryCollection or null geometries are left out.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: GeoJSON (.geojson). Output: Shapefile (.shp).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
GeoJSON to Shapefile: why convert
GeoJSON comes out of web maps, APIs, geojson.io and JavaScript code, but desktop GIS workflows, government agencies and many clients still ask for an Esri shapefile. This converter writes a shapefile set you can add to ArcGIS Pro, QGIS or AutoCAD Map 3D straight away. It deals with the parts of the format that usually cause trouble: one geometry type per file, field names of at most 10 characters, the .prj file with the coordinate system and the text encoding of the attribute table. You can reproject on the way, for example to a UTM zone or a State Plane system, so the shapefile is ready for measuring in meters or feet. Everything runs in your browser with GDAL.
How to convert GeoJSON to Shapefile
- Drop your .geojson or .json file in the box, or click to choose it.
- Optionally enter an output coordinate system, such as EPSG:32618 for UTM zone 18N.
- Click Convert and download a .zip with the shapefile parts.
What changes when you convert
Long property names are shortened
GeoJSON property names can be as long as you like, but the shapefile's .dbf table allows only 10 characters. GDAL cuts longer names and keeps them unique, so description_long becomes descriptio, population_2020 becomes population and population_2021 becomes populati_1. Rename the properties before converting if the column names matter to the people receiving the file.
Colors from geojson.io and Mapbox
Features styled in geojson.io, Mapbox or GitHub keep their colors: marker-color, stroke and fill become fields (shortened to marker-col, stroke-wid, fill-opaci …), and a .qml style file next to each shapefile makes QGIS draw every feature in its own color as soon as you add the layer. ArcGIS ignores the .qml; there you can use the fields for symbology.
Mixed geometries become several shapefiles
One GeoJSON file can hold points, lines and polygons together; a shapefile cannot. You get one shapefile per type, such as parks_points.shp, parks_lines.shp and parks_polygons.shp, in one .zip. Multi-part features go with their type. A feature whose geometry is a GeometryCollection or null fits none of these files and is left out; the message after converting says how many.
Nested values, true/false and dates
The .dbf table holds only flat values such as text, numbers and dates. Nested objects are written as JSON text, and simple lists are written as text such as (2:a,b), meaning two values. True and false become 1 and 0, and plain dates such as 2024-05-01 become real date fields. A date with a time of day is kept as text, because a .dbf date field cannot hold the time. Text longer than 254 characters is cut off.
The coordinate system and the .prj file
Standard GeoJSON is WGS84 longitude and latitude, so by default the shapefile is written in WGS84 (EPSG:4326) with a matching .prj. Enter a projected system to get coordinates in meters or feet. Older GeoJSON files that declare a different system in a "crs" member are read in that system, and the shapefile keeps it unless you choose another. A file without "crs" whose coordinates are clearly not degrees (meters from a projected QGIS project, for example) is not taken as WGS84: the page asks for its coordinate system and suggests the ones that fit.
Special characters
Attribute text is written as UTF-8, and a .cpg file says so, which ArcGIS and QGIS both read. Names with characters like ü, é or ñ display correctly. Old programs that ignore the .cpg file may show them wrongly.
Example: bike stations, a bike lane and a park in Portland, from GeoJSON to shapefile in UTM 10N
The example file waterfront_bikes_portland.geojson is laid out like a file drawn in geojson.io: two bike-share stations (points), a bike lane along Naito Parkway (line) and Waterfront Park (polygon), styled with marker-color, stroke and fill, plus long property names such as bike_capacity and electric_assist, a true/false value, a date (installed), a nested object (hours) and a fifth feature, a planned station, with no geometry. The stations and the lane are made up.
Enter EPSG:26910 (NAD83 / UTM zone 10N) as the output coordinate system and convert. The download is waterfront_bikes_portland_shp.zip with three shapefiles, waterfront_bikes_portland_points, _lines and _polygons, each with .shp, .shx, .dbf, .prj, .cpg and a .qml style file. The message says what the format could not take: "1 feature was left out because it has no geometry …" and the shortened names, such as bike_capacity → bike_capac and electric_assist → electric_a. The station SW Naito & Salmon is now at X 525479, Y 5040104 (meters), electric_a is 1 for true, installed is a real date field, and hours is kept as the JSON text { "open": "05:00", "close": "23:00" }.
waterfront_bikes_portland.geojson waterfront_bikes_portland_shp.zip (EPSG:26910) ├─ 2 Point → ├─ waterfront_bikes_portland_points.shp (+ .shx .dbf .prj .cpg .qml) ├─ 1 LineString → ├─ waterfront_bikes_portland_lines.shp (+ …) ├─ 1 Polygon → └─ waterfront_bikes_portland_polygons.shp (+ …) └─ 1 without geometry → left out
Download the example file waterfront_bikes_portland.geojson (2 KB) and convert it above
Common problems in QGIS and ArcGIS, and what this page does
- "Attempt to write non-point (LINESTRING) geometry to point shapefile". This is the ogr2ogr error when a GeoJSON mixes points, lines and polygons: the shapefile takes the type of the first feature and refuses the rest. This page writes one shapefile per type in the same zip and says how many features it left out.
- The shortened field names no longer make sense. The .dbf allows 10 characters, so bike_capacity becomes bike_capac and similar names can end up as name_1, name_2. The message lists every change; if the names matter, shorten them yourself before converting, or ask whether the recipient accepts GeoPackage, which has no such limit.
- The data shows up in the Pacific Ocean, next to the equator. This happens when a projected system such as EPSG:26910 is assigned to data in degrees without transforming it (in ArcGIS with Define Projection): -122.67, 45.51 is read as meters, a few meters from the zone's origin on the equator, about 500 km west of the zone's central meridian. This page transforms every coordinate and writes the .prj of the new system; with no output system the shapefile stays in WGS84 (EPSG:4326).
- The colors are lost in ArcGIS. ArcGIS ignores the .qml file, which only QGIS reads. The colors are still in the fields marker-col, stroke and fill, which you can use for symbology.
Next: view the shapefile on a map to check the result, convert a shapefile back to GeoJSON or save the GeoJSON as a GeoPackage to keep the long names.
About the formats
GeoJSON
GeoJSON is a plain-text JSON format for geographic features, standardized as RFC 7946 in 2016. It is the native format of web maps such as Leaflet, MapLibre and Mapbox, and of many APIs.
- Coordinates are WGS84 longitude, latitude (in that order).
- Points, lines and polygons can be mixed in one file.
- Properties can be any JSON value, with no limit on field name length.
Shapefile
The Esri Shapefile is the most widely used GIS vector format. A single "shapefile" is really a set of files with the same name: .shp holds the geometry, .shx an index, .dbf the attribute table, and the optional .prj the coordinate system and .cpg the text encoding.
- Needs at least .shp, .shx and .dbf. Select them together or as one .zip.
- Field names are limited to 10 characters and text values to 254 characters.
- Each shapefile holds one geometry type only: points, lines or polygons.
- Without a .prj file the coordinate system is unknown.
Frequently asked questions
Which files are in the zip?
For every geometry type in your data you get .shp, .shx, .dbf, .prj and .cpg files with the same name. Keep them together in one folder; GIS programs need at least the first three.
Why did I get three shapefiles instead of one?
Your GeoJSON mixes points, lines and polygons. A shapefile can only hold one of them, so the converter writes one shapefile per type instead of dropping data.
Can I keep my long field names?
Not in a shapefile: the 10-character limit is part of the format. GeoPackage has no such limit and opens in QGIS and ArcGIS Pro, so it is worth asking whether the recipient accepts it.
Does it accept .json files?
Yes, as long as the content is GeoJSON, such as a FeatureCollection, a single Feature or a bare geometry.
Is my GeoJSON uploaded?
No. The shapefile is written by your browser on your own computer. No data leaves it.