Click here to analyse any file

HomeFormats.CPGID

What is a .CPG file?

CPG records the character encoding of a shapefile’s attribute table.

Did you know
  • The .cpg file tells GIS tools how to read non-English text in a shapefile.
  • A CPG is a tiny one-line companion to a shapefile, naming the code page so accented or non-Latin text reads correctly.
  • It must share the shapefile’s base name, and without it GIS tools fall back to the system’s default encoding.
What Analyser reads
Inspect geospatial and GIS files without a map: TopoJSON, OpenStreetMap XML, Esri Shapefile siblings (SHP/SHX/DBF/PRJ/CPG), world files, GML, NMEA GPS logs, IGC flight logs, MapInfo TAB/MIF, GDAL VRT, PMTiles, DTED terrain, Esri ASCII grids and SRTM .hgt - surfacing CRS/EPSG, feature/record counts, bounding boxes and elevation ranges. GRIB/NetCDF/GeoPackage/MBTiles/MrSID/ECW identified.
Depth of analysis
.CPG is an identification-grade format: Analyser recognises it from its bytes and decodes the header metadata it carries, rather than opening it in a full viewer. Formats that do get a full viewer are marked "Full" on the formats page.
Open a .CPG file
Drag a .CPG file onto the Analyser home page (or tap to pick one). It is identified entirely in your browser - nothing is uploaded, there is no account, and it works offline once installed.
Related formats
.TopoJSON · .OSM · .SHP · .SHX · .DBF · .PRJ · .PGW · .TFW · .JGW · .WLD · .GML · .NMEA · .IGC · .TAB · .MIF · .VRT · .PMTiles · .DT0 and more. See all supported file types.