mapverter

SHP to CSV Converter

Export a Shapefile's attribute table and coordinates to CSV in your browser. Points get latitude/longitude or X/Y columns; other shapes are written as WKT.

  1. Add file
  2. Review
  3. Download

Drag your map file here

SHP (zip, or .shp with .shx, .dbf, .prj), KML, KMZ, GeoJSON, GPX, CSV

Free · one dataset at a time · up to 20 MB

Converting several datasets at once?

Choose how coordinates are written

  • By default the CSV is in WGS 84, and point layers get latitude and longitude columns.
  • Choose the source system or Web Mercator (EPSG:3857) as the target to get values in metres; point layers then get x and y columns. Coordinate system pages preset other targets.
  • If the Shapefile holds lines or polygons, every row gets a wkt column instead.

mapverter reads the .prj to know the source system. Without a .prj, coordinates within longitude and latitude ranges are treated as WGS 84; otherwise you choose the source system from the offered candidates, by clicking your area on the map to try the local UTM zone, or by searching for an EPSG code or name.

The attribute table

Every DBF field becomes a column after the coordinates. Text is decoded with the encoding in the .cpg file or detected from the DBF, then written as UTF-8 with a byte order mark so Excel displays it correctly. Dates are written as YYYY-MM-DD, and numbers never use exponent notation. A ZIP with several Shapefiles becomes one table with a layer column.

Safe for spreadsheets

Cells that begin with =, +, - or @ get a leading apostrophe so they are not run as formulas, while plain negative numbers stay as they are. A field that happens to be called x, y, latitude, longitude or wkt is renamed with an _attr ending so it does not clash with the coordinate columns.

Frequently asked questions

Can I keep projected coordinates in the CSV?
Yes. Choose the source coordinate system or Web Mercator as the target, or open a coordinate system page that presets another one. Point layers then get x and y columns in that system instead of latitude and longitude.
Why is there a WKT column?
Latitude and longitude, or x and y, can only describe points. Lines and polygons are written as WKT text in a single wkt column.
Why was my X field renamed to X_attr?
The CSV already uses x, y, latitude, longitude or wkt for the coordinates. An attribute with one of those names gets an _attr ending so the file can be read back without confusion.
Are my files uploaded?
No. The Shapefile is processed in your browser and never sent to a server.