# SHP — ESRI Shapefile

> SHP (ESRI Shapefile): Esri multi-file vector format storing one geometry type per layer with attributes in a dBase table. Specs, software and free sample files; convert SHP to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/shp



## What is a SHP file?

The shapefile is a vector data format developed by Esri and introduced in the early 1990s. Esri published an open technical description in 1998, and the format became a common exchange format across GIS, CAD and web mapping software. A shapefile stores a single layer with one geometry type, such as points, multipoints, polylines, polygons or multipatches, optionally with Z and M values.

A dataset consists of several files sharing a base name: .shp holds the geometry, .shx the positional index and .dbf the attributes in dBase format. The .prj file stores the coordinate reference system as WKT, .cpg declares the attribute character encoding, and further files hold optional spatial and attribute indexes. Limitations stem from its age: each component file is limited to 2 GB, field names to 10 characters, and field types are few. Date-time values and reliable null handling are lacking, and curved geometries and topology are not supported.

Shapefiles are usually exchanged between GIS analysts, surveyors, public authorities and web mapping teams. Because one dataset is spread over several files, always send or receive them together, ideally in a ZIP archive. Missing .prj or .cpg files are a frequent cause of wrong positions or garbled attribute text, and long field names get truncated to 10 characters.

### Technical details

| | |
|---|---|
| Full name | ESRI Shapefile |
| Data type | Vector · GIS vector |
| File extension | .shp |
| Files | Several files: .shp, .shx and .dbf |
| Media type | application/x-esri-shapefile |
| Geometry types | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon |
| Multiple layers | No |
| Mixed geometry in a layer | No |
| Attribute names | Max. 10 characters (ASCII) |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, MapInfo Pro |
| Specification | https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf |

### Specifications & references

- https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
- https://gdal.org/en/stable/drivers/vector/shapefile.html

### Sample SHP files — free download

- [Places (points)](https://beta.mygeodata.cloud/static/landing/samples/v1/shapefile/st-helena-places-shp.zip) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. Zipped ESRI Shapefile (UTF-8 .cpg). (4.6 kB, EPSG:4326)
- [Roads and paths (lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/shapefile/st-helena-roads-shp.zip) — 110 named roads, streets, tracks and paths (OSM segments merged by name) with class, surface, speed limit and length. Zipped ESRI Shapefile (UTF-8 .cpg). (63.5 kB, EPSG:4326)
- [Land cover (polygons)](https://beta.mygeodata.cloud/static/landing/samples/v1/shapefile/st-helena-landcover-shp.zip) — 190 land-cover polygons (forest, scrub, farmland, residential, water, …) from OpenStreetMap with area in hectares. Zipped ESRI Shapefile (UTF-8 .cpg). (69.6 kB, EPSG:4326)
- [Contour lines (3D lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/shapefile/st-helena-contours-shp.zip) — 27 contour lines at 100 m intervals derived from Copernicus DEM, 3D lines with Z = elevation. Zipped ESRI Shapefile (UTF-8 .cpg). (93.7 kB, EPSG:4326)
- [Waterways (lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/shapefile/st-helena-waterways-shp.zip) — 117 streams and canals from OpenStreetMap with class and length. Zipped ESRI Shapefile (UTF-8 .cpg). (32.8 kB, EPSG:4326)

### Convert SHP to other formats

- [SHP to KML](https://beta.mygeodata.cloud/converter/shp-to-kml)
- [SHP to DXF](https://beta.mygeodata.cloud/converter/shp-to-dxf)
- [SHP to KMZ](https://beta.mygeodata.cloud/converter/shp-to-kmz)
- [SHP to GeoJSON](https://beta.mygeodata.cloud/converter/shp-to-geojson)
- [SHP to GeoPDF](https://beta.mygeodata.cloud/converter/shp-to-geopdf)
- [SHP to GPX](https://beta.mygeodata.cloud/converter/shp-to-gpx)
- [SHP to CSV](https://beta.mygeodata.cloud/converter/shp-to-csv)
- [SHP to XLSX](https://beta.mygeodata.cloud/converter/shp-to-xlsx)
- [SHP to SVG](https://beta.mygeodata.cloud/converter/shp-to-svg)
- [SHP to GPKG](https://beta.mygeodata.cloud/converter/shp-to-gpkg)
- [SHP to WKT](https://beta.mygeodata.cloud/converter/shp-to-wkt)
- [SHP to TopoJSON](https://beta.mygeodata.cloud/converter/shp-to-topojson)
- [SHP to GML](https://beta.mygeodata.cloud/converter/shp-to-gml)
- [SHP to MapInfo](https://beta.mygeodata.cloud/converter/shp-to-mapinfo)
- [SHP to DGN](https://beta.mygeodata.cloud/converter/shp-to-dgn)
- [SHP to MIF](https://beta.mygeodata.cloud/converter/shp-to-mif)
- [SHP to SQLite](https://beta.mygeodata.cloud/converter/shp-to-sqlite)
- [SHP to Parquet](https://beta.mygeodata.cloud/converter/shp-to-parquet)

## Frequently asked questions

### Why are the attribute names in my SHP file cut off?

The .dbf component limits field names to 10 ASCII characters, so longer names are truncated or altered when saving to shapefile. Use shorter names or convert to a format without this limit, such as GeoPackage, if full names matter.

### Why does my SHP file show no coordinate system or appear in the wrong place?

The coordinate reference system is stored in the separate .prj file. If it is missing or was not copied with the dataset, software cannot know the CRS and the data may be placed incorrectly. Assign the correct CRS manually or obtain the .prj file from the sender.

### Why do special characters look wrong in the attribute table?

The .dbf file does not store its encoding itself. The optional .cpg file declares it, such as UTF-8. If it is missing, software may guess wrongly, so set the encoding manually when opening the data.

### What is a SHP file?

The shapefile is a vector data format developed by Esri and introduced in the early 1990s. Esri published an open technical description in 1998, and the format became a common exchange format across GIS, CAD and web mapping software. A shapefile stores a single layer with one geometry type, such as points, multipoints, polylines, polygons or multipatches, optionally with Z and M values.

A dataset consists of several files sharing a base name: .shp holds the geometry, .shx the positional index and .dbf the attributes in dBase format. The .prj file stores the coordinate reference system as WKT, .cpg declares the attribute character encoding, and further files hold optional spatial and attribute indexes. Limitations stem from its age: each component file is limited to 2 GB, field names to 10 characters, and field types are few. Date-time values and reliable null handling are lacking, and curved geometries and topology are not supported.

### How do I open a SHP file?

SHP files can be opened in QGIS, ArcGIS Pro, GDAL/OGR, FME and Global Mapper. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert SHP to?

Popular conversions are KML, DXF, KMZ, GeoJSON, GeoPDF and GPX. In total the Converter writes SHP data to 39 formats.

### How do I create a SHP file?

Convert existing data to SHP — for example from KML, KMZ, DWG, GeoJSON and GeoPDF. Upload the file, choose SHP as output and download the result.

### Which files belong to a SHP dataset?

A SHP dataset needs .shp, .shx and .dbf. Minimum: .shp, .shx, .dbf; .prj for CRS; others optional indexes/encoding.

