GISDirect
Guides › Basics

How to Open a SHP File — No Install, Encoding Fixed

GISDirect · 2026-11-18

The first wall most people hit in GIS is the Shapefile. You were sent a map file, except it is not one file — it is four or five with the same name and different extensions, and double-clicking does nothing. Then, once it does open, the Korean, Japanese or accented text in the attribute table comes out as question marks. This guide covers how a Shapefile is put together, how to open one without installing anything, and how to fix the encoding problem.

Why is it several files?

A Shapefile is a bundle, not a file. The format dates from the early 1990s and keeps geometry, index and attributes separate. Copying just the .shp gets you nothing.

ExtensionHoldsRequired
.shpThe geometry itself — point, line or polygon coordinatesYes
.shxPositional index: where each shape sits inside the .shpYes
.dbfThe attribute tableYes
.prjCoordinate system definitionIn practice, yes
.cpgCharacter encoding of the attribute tableOptional but important for non-ASCII
.sbn ·.sbx ·.qixSpatial index — performance onlyNo
.qmd ·.shp.xmlMetadataNo

The first four must share exactly the same base name. boundary.shp alongside boundary(1).dbf will not pair up. This is why the convention is to ship Shapefiles inside a .zip.

Zipping it: compressing the containing folder adds an extra directory level inside the archive. Most tools cope, but if yours refuses, rebuild the zip by selecting the files themselves so they sit at the archive root.

When the text comes out as garbage

Mangled attribute text is the single most common Shapefile complaint. The cause is that the .dbf does not reliably record which character encoding it used.

Public data from Korea is usually CP949, Japanese data is often Shift-JIS, Western European data may be ISO-8859-1, and anything produced recently is likely UTF-8. If the reader guesses wrong, you get question marks or mojibake.

How to fix it

  1. Create a .cpg file — the most reliable fix. Make a plain text file with the same base name as the .shp and a .cpg extension, containing one line: UTF-8, CP949, SHIFT-JIS, whatever applies. Readers will then stop guessing.
  2. Override the encoding at load time — if you cannot add a .cpg, choose the encoding when importing. Trial and error between UTF-8 and the likely regional codepage usually settles it quickly.
  3. Ask for a different format — if you are the recipient, request GeoPackage (.gpkg) or GeoJSON. Both are UTF-8 by definition and the problem disappears.

When .prj is missing

Without .prj the coordinate system is unknown, so the layer lands somewhere absurd — often in the Atlantic off West Africa, where (0, 0) sits — or does not draw at all. The magnitude of the coordinates usually gives the answer away.

Coordinate values look likeProbable CRS
126.9, 37.5 — small numbers with decimalsGeographic lat/lon, EPSG:4326
Six digits paired with seven, e.g. 500000 / 4500000A UTM zone
Around 200000 / 450000 (Korea)Korea 2000 Central Belt, EPSG:5186
Around 14,000,000 / 4,500,000Web Mercator, EPSG:3857

The coordinate system guide goes into this in detail. Guessing wrong corrupts area and distance calculations as well as position, so when in doubt ask whoever supplied the data.

Step by step: opening one without installing anything

  1. Zip the parts together — .shp, .shx, .dbf, .prj, and .cpg if present.
  2. Drag it into the browser — drop the archive onto the map. Files are processed inside the browser and are not uploaded to a server, which matters when the data is not yet public.
  3. Check the coordinate system — detected from .prj if present, otherwise set it yourself.
  4. Check the attributes — if text is mangled, reload with a different encoding.
Try it → Drop a Shapefile .zip onto the map workspace and it opens immediately. No install, no account. Once open you can export it as GeoJSON, GeoPackage, CSV and other formats.

Known limits of the format

Shapefile is old and it shows. Worth knowing if you publish data rather than just consume it.

GeoPackage (.gpkg) is the modern recommendation: a single file, UTF-8 throughout, multiple layers, no field-name limit. Shapefile still dominates distribution, though, so for now you need to handle both.