Shapefile converters

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.

Convert Shapefile

What to know about Shapefile

File extensions: .shp, .shx, .dbf, .prj, .cpg, .zip

Where you meet Shapefile files

Shapefiles are what open-data portals of mapping agencies, municipalities and statistics offices most often offer for download, what ArcGIS and QGIS users exchange, and what clients and contractors ask for when they do not know which software the other side has. Esri published the technical description in 1998, and almost every GIS program, many CAD programs and most web map tools can read it. That reach, not its features, is why it is still everywhere.

Shapefile compared with other formats

SHP or GeoPackage
A GeoPackage is one file instead of three to five, has no 10-character limit on field names, no 2 GB limit, stores date and time together and can hold many layers. Use it between QGIS and ArcGIS Pro users; send a shapefile when you do not know the recipient's software.
SHP or GeoJSON
GeoJSON is a single text file that web maps read directly and that has no limits on field names, but by the standard it is always WGS84 longitude and latitude. A shapefile keeps the original coordinate system, such as a UTM zone or a national grid, through its .prj file.
SHP or KML
KML is made for looking at data in Google Earth, with colors, icons and description balloons. A shapefile has no styles but a real attribute table, which is what you need for analysis, joins and editing in GIS.

Common problems with Shapefile files

Only the .shp file was sent

A .shp without its .shx and .dbf is refused by most programs, and the attributes live only in the .dbf. Ask for all files with the same name, ideally zipped together. GDAL can rebuild a lost .shx (the SHAPE_RESTORE_SHX option), but a lost .dbf cannot be recreated.

Letters such as æ, ø, ü or é turn into ø or ?

The .dbf does not reliably record its text encoding; the small .cpg file does. Without one, programs guess, and Nordic, German, French or Polish letters break. Add a .cpg that contains the right encoding, such as UTF-8 or 1252. FileReshape's converters check whether the text is valid UTF-8 when the .cpg is missing and write a .cpg for UTF-8 in every shapefile they create. Tool: Shapefile Viewer.

The layer lands in the wrong place or not at all

Without a .prj file a program cannot know the coordinate system. Projected coordinates such as UTM, which are hundreds of thousands of metres, are then often treated as degrees, and the layer does not line up with the background map. Find out the system from whoever made the data and assign it; in QGIS this is Layer Properties › Source › Assigned Coordinate Reference System. Reprojecting only works once the source system is known. Tool: Reproject a Shapefile.

Long field names are cut off

Saving data as a shapefile cuts field names to 10 characters, so population_2024 becomes population. If two names end up the same, GDAL adds a number, such as populati_1. Keep a list of the original names, or use GeoPackage when the names matter. Tool: Convert shapefile to GeoPackage.

Points and polygons in one dataset

A shapefile holds one geometry type. Data that mixes points, lines and polygons, as KML and GeoJSON often do, must be split into one shapefile per type. Converters that do not split it either fail or keep only one type. Tool: Convert GeoJSON to Shapefile, Convert KML to Shapefile (SHP).

Questions about Shapefile

Can I open a shapefile without ArcGIS?

Yes. QGIS is free and opens shapefiles directly (Layer › Add Layer › Add Vector Layer). To just look at the map and the attribute table, the Shapefile Viewer on this site shows them in the browser without installing anything or uploading the files.

Is a shapefile one file or several?

Several. The .shp, .shx and .dbf are required; the .prj (coordinate system) and .cpg (text encoding) are optional but important, and there may be index files such as .sbn, .sbx or .qix that can be left out. Keep them together in one folder or zip.

How large can a shapefile be?

The .shp and the .dbf are each limited to 2 GB, and the .dbf to 255 fields. Large national datasets are therefore often split into tiles or delivered as GeoPackage instead.

Guides