Shapefile Viewer
This free shapefile viewer draws a shapefile on a map and shows its attribute table with every field name and type, without installing QGIS or ArcGIS. The files are read in your browser and are not uploaded. It needs at least the .shp, .shx and .dbf, it cannot edit data, and very large layers are only partly drawn on the map and listed in the table.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: Shapefile (.shp). Output: GeoJSON (.geojson).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
Why use an online shapefile viewer
Someone sends you a shapefile and you just want to see what is in it: where the features are, what the attribute table holds and which coordinate system it uses. Installing QGIS or ArcGIS for that is a lot of effort. This viewer opens the shapefile in your browser, draws it on a map and lists the attribute table with every field name and field type. Click a row to zoom to that feature, or click a feature on the map to find its row in the table. The files are read with GDAL, the same open-source library QGIS uses, and nothing is uploaded, so the viewer is safe for client data and confidential plans. If you also need the data in a web format, one click saves it as GeoJSON.
How to open a shapefile online
- Drop a .zip with the shapefile, or select the .shp, .shx, .dbf and .prj files together.
- Look at the features on the map, and scroll, search or sort the attribute table below it.
- Optionally click Download as GeoJSON to save a copy in WGS84.
What to know about opening shapefiles
A shapefile is several files
The .shp file holds only the shapes. The attributes live in the .dbf file, the .shx file is the index that links the two, and the .prj file says where on Earth the coordinates belong. The viewer needs at least .shp, .shx and .dbf with the same name. Spatial index files such as .sbn, .sbx or .qix are optional and simply ignored. In a .zip the viewer finds the parts on its own, even when they sit in a subfolder. If you only have the .dbf, the viewer still shows its attribute table, just without a map.
When the .prj file is missing
Without a .prj the viewer cannot know which coordinate system the numbers are in. If they look like longitude and latitude, it assumes WGS84 and draws the map. Otherwise it asks for the EPSG code, for example EPSG:2263 for New York State Plane Long Island in US feet or EPSG:27700 for the British National Grid. The attribute table works either way.
Short field names and field types
Each column header shows the field name and the type GDAL reads from the .dbf, such as String, Integer, Integer64, Real or Date. Shapefile field names can be at most 10 characters long, which is why so many shapefiles have abbreviated columns like POP_2020 or DESCRIPTIO.
Big shapefiles
To keep the page responsive, the map draws up to 20,000 features per layer and the table shows 1,000 rows at a time. Type in the search box above the table to find features by any value, such as a name or an ID, and click a column heading to sort. Search and sorting cover the first 50,000 features of a layer, and while you search, the map shows only the matching features. The counts above the table always show the full number of features, and the GeoJSON download contains all of them.
Garbled letters in the table
A .cpg file tells which text encoding the .dbf uses. When it is missing, valid UTF-8 is read as UTF-8, and other text uses the code page in the .dbf header. When the header names none, or only "ANSI", the viewer picks the code page the text reads most naturally in, such as Windows-1252, Shift_JIS, GBK or Windows-1251, and names it in the status line. A short text or a wrong header code can still show letters such as é, ñ or ø oddly. The data itself is not damaged; add a .cpg file with the right encoding and open it again.
Example: street trees from a city open-data download in State Plane feet
The example file street_trees_chicago.zip is laid out like a download from a US city or county open-data portal: one shapefile with three points in NAD83 / Illinois East (ftUS) (EPSG:3435), a State Plane system in US survey feet, with a .prj and a .cpg for UTF-8. The fields are SPECIES (text), DIAMETER_I (a whole number) and PLANTED (a date). The three trees by Millennium Park are made-up data.
After you drop the zip, the status line says "Ready: 3 features in 1 layer.", the map shows the three points in downtown Chicago, and the table has the columns SPECIES (String), DIAMETER_I (Integer) and PLANTED (Date). DIAMETER_I was called DIAMETER_IN when the data was prepared: a shapefile allows at most 10 characters in a field name, so the name was cut when it was saved. In the .shp the first tree sits at about 1177792 feet east and 1900611 feet north; the GeoJSON download has the same three points in WGS84 longitude and latitude, for example -87.6226, 41.8826 for the Honeylocust.
street_trees_chicago.zip ├─ street_trees_chicago.shp the shapes (3 points) ├─ street_trees_chicago.shx the index ├─ street_trees_chicago.dbf the attributes: SPECIES, DIAMETER_I, PLANTED ├─ street_trees_chicago.prj NAD83 / Illinois East (ftUS) └─ street_trees_chicago.cpg UTF-8
Download the example file street_trees_chicago.zip (1 KB) and open it above
Common problems in QGIS and ArcGIS, and what the viewer does
- The .shx file is missing. QGIS does not load the layer and GDAL suggests the SHAPE_RESTORE_SHX option; ArcGIS often does not list the shapefile at all. The viewer rebuilds the index from the .shp and says so in the status line.
- The data lands in the wrong place, or near 0° N 0° E. Usually the .prj is missing or wrong, and feet or metres are read as degrees. The viewer notices coordinates that cannot be degrees, asks for the EPSG code and offers buttons with systems that put the data somewhere plausible, such as the NAD83 UTM zones. State Plane zones are not among the buttons, so for US data in feet type the code of your zone, for example EPSG:3435 for Illinois East.
- Strange letters in the attributes. This happens when the .cpg is missing and the .dbf is read with the wrong encoding; in QGIS you fix it under Layer Properties, Source. The viewer picks the most likely encoding itself and says so when it had to guess.
- A zip inside a zip. Many open-data portals deliver shapefiles that way. The viewer opens nested zips two levels deep and finds the parts in subfolders too.
Next: convert the shapefile to GeoJSON, open it in Google Earth as KML or change its coordinate system.
About the formats
Shapefile
The Esri Shapefile is the most widely used GIS vector format. A single "shapefile" is really a set of files with the same name: .shp holds the geometry, .shx an index, .dbf the attribute table, and the optional .prj the coordinate system and .cpg the text encoding.
- Needs at least .shp, .shx and .dbf. Select them together or as one .zip.
- Field names are limited to 10 characters and text values to 254 characters.
- Each shapefile holds one geometry type only: points, lines or polygons.
- Without a .prj file the coordinate system is unknown.
GeoJSON
GeoJSON is a plain-text JSON format for geographic features, standardized as RFC 7946 in 2016. It is the native format of web maps such as Leaflet, MapLibre and Mapbox, and of many APIs.
- Coordinates are WGS84 longitude, latitude (in that order).
- Points, lines and polygons can be mixed in one file.
- Properties can be any JSON value, with no limit on field name length.
Frequently asked questions
Is my shapefile uploaded to a server?
No. Your browser reads the files from your own disk and draws the map itself. Nothing is sent to FileReshape or anyone else.
Can I open a shapefile without ArcGIS or QGIS?
Yes. This page shows the geometry and the attributes without any software to install, on Windows, Mac, Linux, Chromebooks and tablets. For editing you still need a GIS program; QGIS is free.
Can I view several shapefiles at once?
Yes. Put them in one .zip, or select all their parts together. Every shapefile is drawn on the same map, and a list above the table lets you switch between their attribute tables.
Can I edit the attributes or the shapes?
No, the viewer is read-only, so it cannot damage your files. Use QGIS or ArcGIS to edit.
Why is the background map blank?
The background map comes from OpenFreeMap. If it is blocked by a firewall or an ad blocker, your features are still drawn on a plain background, and the table works as usual.
What does the GeoJSON download contain?
Every feature with all its attributes, reprojected to WGS84 longitude and latitude as the GeoJSON standard requires. With several shapefiles you get a .zip with one GeoJSON file each.