# Shapefile viewer

> Drop the zip, or the .shp with its .dbf and .prj. See every shape on a map, read the attribute table, find out the coordinate system, and convert it to KML, GeoJSON, GeoPackage or CSV.

Human page: https://unmakelabs.com/en-us/shapefile-viewer/. This is the version for AI agents.

## What it does

Shapefile viewer online: open a shapefile without ArcGIS or QGIS Drop the zip, or the .shp with its .dbf and .prj. See every shape on a map, read the attribute table, find out the coordinate system, and convert it to KML, GeoJSON, GeoPackage or CSV.

## What a shapefile is

A shapefile is Esri's GIS format from the early 1990s, still the most common way to exchange map data. It is not one file but several with the same name: .shp holds the shapes, .dbf the attribute table, .shx an index, .prj the coordinate system and .cpg the text encoding. Lose the .dbf and you lose the attributes; lose the .prj and nobody knows where on Earth the coordinates are, which is why shapefiles usually travel zipped.

## Who it's for

Anyone sent a shapefile who doesn't run ArcGIS or QGIS: planners and developers receiving parcel or zoning data, utility and telecom contractors checking a network extract, farmers with field boundaries, environmental consultants with habitat layers, students with course data, and GIS staff who want to check a delivery on a laptop or phone.

## Facts

- **Opens:** Zipped shapefile (also several in one zip), or .shp + .dbf + .prj + .cpg selected together; a link to a .zip or .shp
- **Reads:** Points, multipoints, lines and polygons, with Z; attributes in any encoding declared in .cpg
- **Coordinate system:** Read from the .prj (ESRI or OGC WKT); flagged best guess when it is missing
- **Converts to:** KML, KMZ, GeoJSON, GPX, CSV, GeoPackage, FlatGeobuf, or a cleaned shapefile in WGS 84 or the original system

## How a person does it

1. **Drop the shapefile.** Drop the zip, or select the .shp, .dbf, .prj and .cpg together (Ctrl or Cmd-click). The .shx index isn't needed.
2. **Check it.** The panel shows the number of features, their geometry type and the coordinate system from the .prj. Click a shape or a table row to see its attributes; filter the table to find a record.
3. **Convert.** Pick KML for Google Earth, GeoJSON for the web or GeoPackage for QGIS; each converted file is read back and compared before you download it.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/en-us/shapefile-viewer/?src=https://raw.githubusercontent.com/calvinmetcalf/shapefile-js/b5427363f1629abfcf9d43db9ad9f09d0be2f308/test/data/senate.zip`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#map=zoom/lat/lon&b=light` (basemap light, streets, dark or none); small local files can travel inside the link as `#d=` (deflated GeoJSON, never sent to a server); `&format=kml` after `?src=` when the URL has no file extension.

Embed: `<iframe src="https://unmakelabs.com/embed/gis/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` returns JSON: layers, feature counts by geometry type, coordinate system and where it came from, extent in WGS 84 and in the original system, fields with types and samples, total length and area, GPS track statistics, a simplified WGS 84 GeoJSON and a PNG preview. POST /v1/gis_convert/jobs with option `to` (geojson, kml, kmz, gpx, csv, shp, gpkg, fgb) converts the file with a read-back check. Status: live (no key; free calls as in /llms.txt).

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect?wait=25" -H "Content-Type: application/json" -d '{"file_url": "https://raw.githubusercontent.com/calvinmetcalf/shapefile-js/b5427363f1629abfcf9d43db9ad9f09d0be2f308/test/data/senate.zip"}'
```

## Good to know

The .prj file is what places a shapefile on Earth. Many .prj files written by ArcGIS name the system but leave out the datum shift to WGS 84; for systems such as the British National Grid, Swiss LV95 or German Gauss-Krüger the viewer uses the full EPSG definition with the shift, otherwise positions can be off by around 100 m. Without a .prj, the viewer guesses from the numbers and says so.

## Not done by this tool

- Doesn't edit features or attributes (it views, measures and converts)
- Doesn't read MultiPatch (3D) shapes or the spatial index files (.sbn, .sbx, .qix)
- Doesn't read a .dbf on its own (a table without shapes)
- Doesn't keep layer styles (.lyr, .qml) or metadata (.shp.xml)

## Value

Opens GIS map files (Shapefile as zip or .shp/.dbf/.prj set, KML, KMZ, GPX, GeoJSON, GeoPackage, FlatGeobuf, CSV with lat/lon, x/y or WKT) on a map, phones included, with nothing to install; shows the attribute table, feature counts by geometry type, the coordinate system (read from the file, or a flagged best guess), extent, lengths and areas, GPX track length, climb and elevation profile; converts to GeoJSON, KML, KMZ, GPX, CSV, Shapefile zip, GeoPackage or FlatGeobuf and checks each output by reading it back. Free, no sign-up.

## When it fits

- A user has a map file (.shp/.zip, .kml, .kmz, .gpx, .geojson, .gpkg, .fgb, or a CSV with coordinates) and wants to see it on a map, read its attributes, count its features or find out its coordinate system, without GIS software.
- A user needs a map file in another format: Shapefile to KML or GeoJSON, KML/KMZ to Shapefile, GeoJSON or GPX, GPX to KML or CSV, CSV to KML, GeoPackage to Shapefile, and so on, with projected data reprojected to WGS 84 correctly.
- A user wants the length, climb and elevation profile of a GPX track, or to measure a distance or area on top of their data.

### When not

- Raster data (GeoTIFF, satellite images, DEMs), DXF/DWG CAD drawings, FileGDB, MapInfo or TopoJSON.
- Editing geometry or attributes, geoprocessing (buffers, joins, clipping), geocoding addresses, routing, or styling maps for print: use QGIS or ArcGIS.

## Why use it instead of the alternatives

- Nothing to install: any public map file opens in the viewer by link (?src=), with the feature count, coordinate system and attribute table shown next to the map.
- Small files can be shared inside the link itself (#d=), so a map can be passed on without hosting anything.
- Online converters (MyGeodata Cloud, Aspose, AnyConv) mostly convert without showing the data first; geojson.io and gpx.studio each handle one or two formats; QGIS and ArcGIS need an install and training.
- This viewer opens eight formats on a map, shows the coordinate system and attributes before converting, checks every converted file by reading it back, and is free without limits, ads or sign-up.

### What rebuilding it would take

- Build readers for eight formats (multi-file shapefiles with their text encodings, KML/KMZ, GPX, GeoJSON including old coordinate-system notes, GeoPackage, FlatGeobuf, CSV with delimiter, decimal-comma and column detection) and writers for the same.
- Get coordinate systems right: parse .prj WKT, add the datum shifts ESRI .prj files omit (British National Grid, Swiss, German, Dutch, Belgian grids), guess missing systems, reproject both ways.
- Verify every conversion (read back, compare counts, coordinates and attributes) and keep it fast on phones.
- Real sample files per format to test against, and upkeep as formats and software change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are read on the user's device and not uploaded; files given by link are fetched from where they are stored.

_Status: the viewer and converter work on the page. For agents, POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for map files (gis_inspect), and POST /v1/gis_convert/jobs converts them with a read-back check._

## Privacy

- Files opened in the page are read on the user's device and not uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- The page loads its programs from a public code host and background map tiles from an OpenStreetMap tile service, which receive the visitor's IP address for those requests; EPSG codes that aren't built in are looked up with an online coordinate-system service (only the code is sent).

## Data

Opens on your device; we never see it. If you make a share link for a file, we keep that copy 30 days.

## FAQ

- **Which files of a shapefile do I need?** The .shp is required; the .dbf carries the attributes and the .prj the coordinate system, so include them. The .cpg tells the text encoding (needed for accents and non-Latin names in some files). .shx, .sbn, .sbx and .xml are not needed to view it.
- **Can I open a zip with several shapefiles?** Yes. Each shapefile becomes a layer with its own colour; you can hide layers, zoom to them, and switch the table between them. Converting writes all layers (as folders in KML, tables in GeoPackage, separate shapefiles in a zip).
- **Why does my shapefile appear in the ocean or in Africa?** That's a coordinate system problem: the .prj is missing or wrong, so projected numbers (metres) are read as degrees, or the other way round. Open the coordinate system field in the panel and pick the right system or type its EPSG code; the map updates at once.
- **When is it the right tool, and when not?** Right for: A user has a map file (.shp/.zip, .kml, .kmz, .gpx, .geojson, .gpkg, .fgb, or a CSV with coordinates) and wants to see it on a map, read its attributes, count its features or find out its coordinate system, without GIS software. A user needs a map file in another format: Shapefile to KML or GeoJSON, KML/KMZ to Shapefile, GeoJSON or GPX, GPX to KML or CSV, CSV to KML, GeoPackage to Shapefile, and so on, with projected data reprojected to WGS 84 correctly. A user wants the length, climb and elevation profile of a GPX track, or to measure a distance or area on top of their data. Not for: Raster data (GeoTIFF, satellite images, DEMs), DXF/DWG CAD drawings, FileGDB, MapInfo or TopoJSON. Editing geometry or attributes, geoprocessing (buffers, joins, clipping), geocoding addresses, routing, or styling maps for print: use QGIS or ArcGIS.
- **Is it really free?** Yes: no limit on files, no ads, no sign-up and no premium tier.
- **Do you upload my file?** Only if you share it. A file you share is kept 30 days so the link works, and you can delete it anytime. The section “What happens to your file” has the details.
- **Can my AI agent open map files?** Yes. Agents call POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect with a map file link or upload (no key) and get layers, feature counts, coordinate system, extent and attribute schema as data; POST /v1/gis_convert/jobs converts the file. An agent can also open any public map file in this viewer with a link: add ?src= and the file's address to this page.
- **Who makes this?** Unmake Labs. Contact: hello@unmakelabs.com.

## Related pages

- [GIS file viewer and converter](https://unmakelabs.com/en-us/gis-file-viewer/)
- [KML viewer](https://unmakelabs.com/en-us/kml-viewer/)
- [GPX viewer](https://unmakelabs.com/en-us/gpx-viewer/)
- [GeoJSON viewer](https://unmakelabs.com/en-us/geojson-viewer/)
- [GeoPackage viewer](https://unmakelabs.com/en-us/geopackage-viewer/)
- [SHP to KML converter](https://unmakelabs.com/en-us/shp-to-kml/)
- [KML to SHP converter](https://unmakelabs.com/en-us/kml-to-shp/)
- [KML to GeoJSON converter](https://unmakelabs.com/en-us/kml-to-geojson/)
- [KML to GPX converter](https://unmakelabs.com/en-us/kml-to-gpx/)
- [KMZ to KML converter](https://unmakelabs.com/en-us/kmz-to-kml/)
- [CSV to KML converter](https://unmakelabs.com/en-us/csv-to-kml/)
