.SHP

SHP File

Esri Shapefile (geospatial vector data)
Ask a question
QUICK ANSWER

A .shp file is almost always an Esri Shapefile - geospatial vector data (points, lines, polygons) used by GIS software. It is one piece of a set: it needs its sibling files (.shx, .dbf, and usually .prj) in the same folder to open correctly. The free standard tool is QGIS; ArcGIS Pro is the commercial option.

Developer: Esri (Environmental Systems Research Institute) Category: GIS Files Open standard MIME: application/x-esri-shape
OPENS ON Windows macOS Linux Web
Related: .GPX · .GML · .KML · .RTMAP

On this page

19k+ extensions indexed
Last reviewed Aug 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SHP file format?

The .shp file format (short for *shape*) is used for storing vector geometry and data related to geospatial information used by geographic information system (GIS) software. An .shp file can hold geographical and spatial data that describes such entities as landmarks, rivers, streets, or postal zones.

The format was created by Esri, a company that supplies GIS software products including ArcGIS, and is still actively developed. The technical specification was published by Esri in 1998 and is publicly available, though the format itself remains proprietary rather than a fully open standard.

Geometry model

An .shp file represents geometry as a 2D or 3D dataset built from points, lines, and polygons. Each element of the dataset can carry attributes - stored in a companion .DBF file - that describe properties of the related features. The file begins with a fixed 100-byte header whose first four bytes hold the file code 9994 in big-endian order.

Companion files

.shp files are always accompanied by additional files, some required and some optional. Required files: .shp, .SHX (spatial index), and .dbf (attribute table) - all must be located in the same folder. Optional files include .PRJ (coordinate reference system), .sbx/.sbn (spatial index caches), and .xml (metadata).

Security & safety

RISK: LOW

A Shapefile is passive data with no executable content, so it is safe to open. The practical 'problem' is missing siblings: a lone .shp without its .dbf and .shx will fail to open or show no attributes - always keep the whole set (and .prj) together, which is why Shapefiles are shipped zipped. Very large Shapefiles have hard limits (2 GB per file, and .dbf field-name length/encoding quirks) that can truncate data - for big or modern datasets prefer GeoPackage. Treat zipped Shapefiles from unknown sources with normal archive caution.

Format details

in a nutshell
FULL NAMEEsri Shapefile (geospatial vector data)
DEVELOPEREsri (Environmental Systems Research Institute)since 1998 (Esri published the Shapefile technical description; format in use from the early 1990s ArcView era)
CATEGORYGIS Files
MIME TYPEapplication/x-esri-shape
TYPEBinary geospatial vector geometry; part of a multi-file Shapefile set
STANDARDOpen · royalty-free
This extension is also used by…
  • AutoCAD/3ds Max shape definition - A plain-text shape/font definition used in AutoCAD and 3ds Max, unrelated to GIS data and opened in those CAD programs.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
0000270A
ASCII
··'·
An Esri Shapefile .shp begins with a 100-byte header whose first 4 bytes are the big-endian integer 9994 (00 00 27 0A); bytes 28-31 hold the version (1000) and bytes 32-35 the shape type. A .shp is never alone - it requires at least the companion .shx (index) and .dbf (attribute table) in the same folder, plus usually .prj (coordinate system).

Programs that open SHP files

Windows4 apps
Global Mapper Paid Open the .shp to view and convert it among many geospatial formats.
AutoCAD Map 3D Paid For the CAD meaning, or to import GIS Shapefiles via MAPIMPORT into a drawing. Use only if you need CAD, not for plain viewing.
QGIS Open-source Free GIS app. Layer > Add Vector Layer, select the .shp (with siblings in the same folder) to view and edit it.
ArcGIS Pro Paid Esri's professional GIS; Add Data > select the .shp. The format's native home.
macOS1 app
QGIS Open-source Free GIS app for Mac; Add Vector Layer to view/convert the Shapefile (keep all sibling files together).
Linux2 apps
QGIS Open-source Add the .shp as a vector layer; GDAL/OGR underneath handles Shapefiles.
GDAL/OGR (ogr2ogr) Open-source Command line: 'ogrinfo data.shp' to inspect, or 'ogr2ogr' to convert to other formats.
Web2 apps
mapshaper Open-source Drag the .shp (with its .dbf/.shx, or a zip) into the browser to view, simplify and export to GeoJSON/SVG/CSV. No install.
geojson.io Open-source Open a Shapefile (zipped) in the browser to preview features on a map and export GeoJSON.

Technical details

deep spec
Magic bytes00 00 27 0A at offset 0 (big-endian integer 9994)
Byte orderMixed: header fields stored big-endian; geometry record content stored little-endian
File header sizeFixed 100-byte header in both .shp and .shx files
MIME typeapplication/x-esri-shape
Supported shape types15 defined types with non-contiguous codes (0-31): Null, Point, Polyline, Polygon, MultiPoint, and their M, Z, and 3D variants, plus MultiPatch
Shape type per fileA single .shp file stores only one shape type - all geometry records share the same type code
Coordinate dimensions2D (X,Y), measured 2.5D (X,Y,M), and true 3D (X,Y,Z,M)
Coordinate precisionIEEE 754 double-precision (64-bit) floating-point for all coordinates
Attribute storagedBASE III .dbf companion file; field names capped at 10 characters; text values at 254 characters per field
Spatial index (.shx)Fixed-length 8-byte records per shape (4-byte offset + 4-byte content length) enabling O(1) record lookup
Maximum file sizeBoth .shp and .shx are limited to 2 GB; the 32-bit file-length field counts 16-bit words
Coordinate reference systemStored in an optional .prj file as OGC Well-Known Text (WKT); an absent .prj means CRS is undefined
Polygon ring conventionOuter rings wound clockwise; interior (hole) rings wound counter-clockwise - opposite to GeoJSON convention
Text encodingNo built-in Unicode; .dbf uses a single-byte code page; a companion .cpg file can declare the encoding explicitly
Released1998 (Esri published the Shapefile technical description; format in use from the early 1990s ArcView era)
Open standardYes · royalty-free
Specificationwww.esri.com

SHP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SHP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SHP files.

Frequently asked questions

How do I open a .shp file?
Use the free QGIS (Layer > Add Vector Layer) - it's the standard way without buying ArcGIS. Make sure the .shp's companion files (.dbf, .shx, and ideally .prj) are in the same folder, or it won't open correctly.
Why won't my Shapefile open / why is it empty?
A .shp needs its sibling files. The .dbf (attributes) and .shx (index) are mandatory and the .prj defines the map projection. If you only have the .shp, ask the sender for the full set - Shapefiles are meant to be zipped and shared together.
How do I convert a Shapefile to KML for Google Earth?
In QGIS, load the .shp, right-click the layer > Export > Save Features As > KML; or run 'ogr2ogr -f KML out.kml in.shp'. Then open the KML in Google Earth.
What's the difference between SHP, SHX, DBF and PRJ?
They're the parts of one Shapefile: .shp = geometry, .shx = index into it, .dbf = the attribute table (data per feature), .prj = the coordinate system. All must stay together in the same folder.
Can I open a Shapefile in Excel?
You can open the .dbf part in Excel/LibreOffice to see the attribute table, but that's only the data - not the map geometry. To see the actual features, use QGIS or another GIS tool.

References

1Library of Congress - ESRI Shapefile formatwww.loc.gov
2Esri - ESRI Shapefile Technical Description (1998 white paper)www.esri.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.EXEWindows Executable (Portable Executable)
5.RPMSGRestricted Permission Message
6.JPGJPEG Image
7.PARTPartial Download File
8.ICSiCalendar data file
9.BINCD/DVD Disc Image (BIN/CUE)
10.JSONJavaScript Object Notation file

Related extensions

.GPXGPS Exchange Format
.GMLGeography Markup Language
.KMLKeyhole Markup Language
.RTMAPCompeGPS / TwoNav Tiled Raster Map
.KMZKeyhole Markup Language Zipped (Google Earth)
.GDBGarmin MapSource GPS Database

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z