.SHX file extension

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.

To open a .shx file, open the corresponding shapefile dataset in a GIS program (for example, load the .shp that belongs with the same base name). The .shx is required by many tools as part of the shapefile set and is not usually viewed directly.

Last updated: June 12, 2026

Open on your device

Choose your operating system for a dedicated step-by-step opening guide.

How to open .SHX files

Use these platform-specific instructions to open .SHX files safely.

Windows

  1. 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.
  2. 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.
Full Windows guide

Mac

  1. Check that the matching .shp and .dbf exist next to the .shx with the same base name.
  2. Open the .shp in a shapefile-capable GIS tool (for example QGIS, or GDAL/OGR tools).
Full Mac guide

Linux

  1. Verify the shapefile set is complete (.shp + .shx + .dbf with the same base name).
  2. Open the .shp with QGIS or use GDAL/OGR to read the shapefile dataset; the .shx is consumed automatically.
Full Linux guide

iOS

  1. If you only have a .shx, transfer the full shapefile set (.shp/.shx/.dbf) to a desktop GIS tool and open the .shp there.
Full iOS guide

Android

  1. If the .shx is from a shapefile, make sure you also have the matching .shp and .dbf, then transfer the set to a desktop GIS tool to open the .shp.
Full Android guide

Security notes

  • 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”.
  • .shx is usually not useful on its own; if you receive a lone .shx without the matching .shp/.dbf, treat it as suspicious or incomplete data and request the full dataset before attempting to use it.

If you did not expect this file

This extension is usually plain data, text, or structured content—not a program by itself. The practical risk is social engineering (a scam attachment or misleading filename). For trusted senders you rarely need heavy-handed antivirus wording; use these tools when you want an extra check on unexpected downloads.

We may earn a commission when you use affiliate links. This supports our free file extension guides.

Can't open this file?

These are the most common causes and fixes when .SHX files fail to open.

Common reasons

  • Only opening the .shx shows nothing (or errors)
  • Shapefile won’t load because the set is incomplete
  • .shx appears to be a CAD SHX (AutoCAD shapes/fonts), not GIS

Fix steps

  1. Make sure the matching .shp and .dbf exist in the same folder and share the same base name.
  2. Open/load the .shp (not the .shx) in your GIS software.

What is a .SHX file?

In the Esri Shapefile specification, the .shx file is an index that enables fast access to features in the .shp file. It contains a header and a list of fixed-size index records; each index record stores the offset and content length of a geometry record in the .shp. The records across .shp, .shx, and .dbf correspond, so losing or mismatching one part can break the dataset.

Background

Important ambiguity: the .shx extension is also used by AutoCAD for compiled shape/font files (compiled from SHP shape definition files). If your .shx came from CAD font/shape workflows rather than GIS data, it may be an AutoCAD SHX file, not a shapefile index.

Further reading

Authoritative resources for more details on the .SHX format.

Common .SHX 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.

  1. Make sure the matching .shp and .dbf exist in the same folder and share the same base name.
  2. 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.

  1. Re-download or re-export the data ensuring the .shp, .shx, and .dbf are included together.
  2. 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.

  1. 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.
  2. Open/use it within the relevant CAD workflow instead of a GIS shapefile reader.

FAQ

Can I delete the .shx and still use the shapefile?

Many tools expect the .shx as part of the core shapefile set (.shp/.shx/.dbf). Because it provides record offsets and lengths into the .shp, removing it commonly breaks reading or makes the dataset unusable in systems that require it.

Why do I have a .shx file with no .shp?

A shapefile is distributed as multiple files; you likely received an incomplete export or download. Alternatively, it could be an AutoCAD SHX (compiled shapes/fonts) rather than a shapefile index.

What does the .shx store?

Per Esri’s technical description, each index record stores the offset and content length of the corresponding geometry record in the .shp, enabling fast access.

How should I share shapefile data so others can open it?

Share at least the core files together—.shp, .shx, and .dbf—with the same base name in one folder (commonly zipped for transfer), because many platforms and tools treat them as one dataset.

Similar file extensions

Compare related formats in the same category to find the right tool faster.