How to open .SHX files on Windows
To open .SHX files on Windows, confirm whether it is part of a shapefile dataset: look for matching files with the same name like .shp and .dbf in the same folder.
Step-by-step instructions
- Confirm whether it is part of a shapefile dataset: look for matching files with the same name like .shp and .dbf in the same folder.
- Open the dataset by loading the .shp in a GIS tool that supports shapefiles (for example QGIS, or GDAL/OGR-based tools). The .shx will be used automatically.
Common issues
Only opening the .shx shows nothing (or errors)
The .shx is an index, not a standalone dataset; most software expects you to open the shapefile layer via the .shp and will read the .shx automatically.
- Make sure the matching .shp and .dbf exist in the same folder and share the same base name.
- Open/load the .shp (not the .shx) in your GIS software.
Shapefile won’t load because the set is incomplete
Shapefiles are multi-file datasets and commonly require the core components .shp, .shx, and .dbf; missing one can prevent loading or uploading/downloading in GIS systems.
- Re-download or re-export the data ensuring the .shp, .shx, and .dbf are included together.
- Keep all three files in the same directory with identical base names (e.g., roads.shp/roads.shx/roads.dbf).
.shx appears to be a CAD SHX (AutoCAD shapes/fonts), not GIS
.shx is also used by AutoCAD for compiled shapes/fonts (compiled from SHP shape definition files). A CAD SHX won’t behave like a shapefile index and won’t load as GIS data.
- Look for context: if there is no matching .shp/.dbf, or the file came with AutoCAD fonts/shapes, treat it as an AutoCAD SHX file.
- Open/use it within the relevant CAD workflow instead of a GIS shapefile reader.
Security note
A .shx is typically parsed by GIS/CAD software as structured binary data; avoid opening shapefile components from untrusted sources in sensitive environments because bugs in file parsers can be exploited even when files are “just data”.