• GeoDataViewer Team
What Is a Shapefile? (.shp + .dbf + .shx Explained)
What is a Shapefile and why does it include multiple sidecar files? Learn how Shapefile works, common issues, and how to open Shapefiles online.
A Shapefile is a widely supported GIS vector format originally popularized by ESRI. Despite the name, a “Shapefile” is usually not a single file. It’s a small set of files that belong together, typically including geometry, attributes, and an index.
To open one in the browser, use the Shapefile viewer: /open-shapefile-online/.
Why Shapefile has multiple files
Common Shapefile sidecars include:
.shp— geometry.dbf— attribute table (fields and values).shx— geometry index.prj— coordinate reference system (recommended)
If you upload only .shp, many viewers cannot load the layer correctly because attributes or the index may be missing.
When Shapefile is a good choice
Use Shapefile when you need:
- Maximum compatibility with existing GIS tools
- A simple “one layer” dataset you can package as a zip archive
- Interoperability with workflows that still expect
.shp
Common issues
- Missing sidecars: forgetting
.dbfor.shxoften breaks loading. - CRS problems: without
.prj, the layer can appear in the wrong location. - Packaging: because it’s multi-file, it’s easiest to share as a single
.zip.
How to open a Shapefile online
- Go to /open-shapefile-online/.
- Upload the full set (
.shp,.dbf,.shx, and ideally.prj). - If the dataset is multi-file, upload a
.zipcontaining all sidecars together.
Convert Shapefile to modern formats
- Shapefile to GeoJSON: /shapefile-to-geojson/
- Shapefile to GeoPackage: /shapefile-to-gpkg/
Related reading
- Tutorial: /blog/how-to-open-shapefile-online/
- Comparison: /blog/shapefile-vs-geopackage/