What is the SHX file format?
.shx files are used by AutoCAD - Autodesk's environment for designing 2D and 3D projects for engineering purposes. They are known as compiled shape files, because they contain shape definitions compiled from .shp source files created with the same program. Alongside shape definitions, .shx files may also contain compiled font data originally derived from .shp font scripts or PostScript .pfb font files.
Advantages of .shx files
- Within a compiled
.shxpackage, users can store all the shapes and custom symbols used in a project in a compact binary form. This eliminates the need to redefine the same shapes and fonts each time a drawing is opened, reducing file overhead and saving time. .shxfiles are ready to use immediately after compilation with AutoCAD'sCOMPILEcommand. Once a shape is inserted into a.dwgdrawing, its scale, rotation, and location can be freely adjusted.- AutoCAD processes
.shxfiles much faster than plain.shpsource scripts, because they are a pre-compiled binary representation of the shape and glyph data. The source.shpfiles are plain ASCII text; compiling them into.shxremoves the parsing step at load time.
Each .shx file begins with a readable ASCII identifier string - such as AutoCAD-86 shapes 1.0 or AutoCAD-86 unifont 1.0 - followed by the binary-encoded shape and glyph definitions. This header distinguishes AutoCAD .shx files from the unrelated Esri Shapefile spatial index, which also uses the .shx extension but has a completely different binary structure.
Security & safety
RISK: LOWAn AutoCAD .shx is passive compiled data, not executable, so installing one is safe. The practical pitfalls are about usability: a drawing that references missing .shx fonts shows wrong or boxed text until the font is supplied. Beware 'free SHX font' download sites that bundle adware - get CAD fonts from the drawing's author or a trusted CAD source.
Format details
in a nutshell- Esri Shapefile Index (.shx) - A GIS spatial index that always travels with a .shp and .dbf of the same name; you open the .shp in QGIS/ArcGIS, not the .shx - completely unrelated to AutoCAD shapes.
Programs that open SHX files
Technical details
deep spec| Format type | Binary compiled shape and font definitions |
| Developer | Autodesk |
| Source format | Compiled from plain-text .shp shape/font scripts using AutoCAD's COMPILE command |
| File header | ASCII identifier string at offset 0, e.g. "AutoCAD-86 shapes 1.0" or "AutoCAD-86 unifont 1.0" |
| MIME type | application/octet-stream |
| Encoding | Mixed: human-readable ASCII header followed by binary-encoded vector shape and glyph data |
| Sub-types | Shape files (symbols and special characters) and font files (full glyph sets for text rendering in drawings) |
| Compilation command | COMPILE command in AutoCAD converts a .shp source file into a compiled .shx binary |
| Load command | LOAD command registers shape .shx files; STYLE command references font .shx files in a drawing session |
| Unicode and big-font support | Unifont and big-font .shx variants extend the base format to support multi-byte and Unicode character sets |
| Performance benefit | Pre-compiled binary eliminates parsing overhead at draw time; significantly faster to load than the equivalent .shp source |
| Font rendering speed | SHX fonts render faster than TrueType fonts in AutoCAD and are preferred for large technical drawings with heavy text |
| CAD compatibility | Supported by AutoCAD, BricsCAD, ZWCAD, GstarCAD, and most DWG-compatible CAD applications |
| Name collision | Esri Shapefile spatial indexes also use .shx but begin with big-endian integer 9994 (0x0000270A) - an entirely unrelated GIS format |
| Released | AutoCAD shape/font system, 1980s |
| Specification | help.autodesk.com |
SHX conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about SHX files.