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/
Related Posts
How to Open a Shapefile Online (with .dbf, .shx, .prj)
Step-by-step: open a Shapefile online in your browser, upload the required sidecar files, and troubleshoot missing .dbf/.shx/.prj issues.
What Is FileGDB? ESRI File Geodatabase Explained
Learn what an ESRI File Geodatabase (FileGDB) is, what it’s used for, and how to open or convert FileGDB datasets online.
Extracting POIs from OpenStreetMap and Overture Maps: A Practical Guide
Extract EV charging and gas station POIs from NYC OSM data with osmium, and compare with Overture Maps' GeoParquet pipeline.
View GIS Files Without Leaving VS Code: Meet Geo Data Viewer Fast
Preview 10+ geospatial formats (Shapefile, GeoJSON, KML, PMTiles) directly inside VS Code with Kepler.gl rendering.