GeoDataViewer
Menu
Launch Studio
Theme
GeoDataViewer Team Updated:

What Is a Shapefile? (.shp + .dbf + .shx Explained)

What is a Shapefile and why does it include multiple sidecar files? Learn how Shapefile works, the required files, common issues, limitations, and how to open and convert Shapefiles online.

A Shapefile is a widely supported GIS vector format originally developed by ESRI in the 1990s. Despite the name, a “Shapefile” is usually not a single file. It is a small set of files that belong together, typically including geometry, attributes, and a spatial index. This multi-file design is the source of both the format’s longevity and its biggest practical headaches.

To open one in your browser, use the free online Shapefile viewer.

Why Shapefile has multiple files

A complete Shapefile dataset consists of at least three files, and often more:

FileRoleRequired?
.shpMain geometry file — stores the feature shapes (points, lines, polygons) in binary formatRequired
.dbfAttribute table — stores feature properties in dBASE formatRequired
.shxShape index — lets readers locate individual shapes quickly without scanning the entire .shp fileRequired
.prjProjection definition — stores the coordinate reference system in WKT formatRecommended (data may appear in the wrong location without it)
.cpgCode page — tells readers which character encoding to use for the .dbf text fieldsOptional (important for non-ASCII text)
.sbn / .sbxSpatial index — optional optimization files for faster spatial queriesOptional

If you upload only .shp, many viewers cannot load the layer correctly because attributes or the spatial index may be missing. This is the single most common cause of “my Shapefile won’t open” errors.

For a detailed troubleshooting guide: How to Open a Shapefile Online

When Shapefile is a good choice

Use Shapefile when you need:

  • Maximum compatibility with existing desktop GIS tools — Shapefile is supported by virtually every GIS application ever made, including ArcGIS, QGIS, MapInfo, and countless ETL tools
  • A simple “one layer” dataset you can package as a single zip archive for email or download
  • Interoperability with workflows that still expect .shp — many government agencies, consulting firms, and data portals still require Shapefile delivery
  • CRS flexibility — unlike GeoJSON (which is effectively restricted to WGS 84), Shapefile can store data in any coordinate reference system via the .prj file

Shapefile limitations and common problems

Multi-file fragility

The biggest practical headache: if you email or copy a shapefile and forget any of the required files, the dataset is unreadable. This is why zipping Shapefiles before sharing is standard practice.

Attribute constraints

  • Field names are limited to 10 characters in the .dbf table (longer names get truncated)
  • No native support for dates, nulls, or complex data types — everything is stored as flat dBASE columns
  • Maximum .dbf file size of 2GB limits the number of features or attribute complexity

Single geometry type per file

A Shapefile can only contain one geometry type — all features must be points, or all must be lines, or all must be polygons. Mixed-geometry datasets (e.g., both points and polygons in the same logical layer) are not supported.

No built-in topology or relationships

Shapefile stores flat features — there are no relationships, domains, subtypes, or topology rules. For richer data models, modern formats like GeoPackage or File Geodatabase are better choices.

How to open a Shapefile online

  1. Go to the Shapefile viewer.
  2. Upload the full set of files (.shp, .dbf, .shx, and ideally .prj).
  3. If the dataset is multi-file, upload a single .zip containing all sidecars together.
  4. Inspect the map and attribute table to confirm features look correct.

All processing happens locally in your browser — no server uploads.

Convert Shapefile to modern formats

Modernizing your Shapefile data often starts with conversion:

Shapefile vs modern alternatives

Share this post:
G
GeoDataViewer Team
The GeoDataViewer team builds tools for GIS professionals who need quick, private, browser-based access to geospatial data. We write about formats, conversion workflows, and practical GIS techniques based on years of experience with QGIS, ArcGIS, GDAL, and web mapping libraries.