
Shapefile to KML
Esri's shapefile is the old workhorse of GIS: really a set of files (.shp shapes, .dbf attributes, .shx index, .prj projection) that travel together, usually in one .zip.. Turn it into KML here, in your browser, with attributes and projection handled.
Runs in your browser. Your files never leave your device.
How to use it
- Drop the .zip, or select the .shp, .dbf, .shx and .prj together. Without the .dbf there are no attributes; without the .prj the coordinate system is unknown.
- Leave “Save as” on KML. Keep “Convert coordinates to longitude/latitude” ticked unless you need the original projection.
- Press Convert. A preview of the shapes appears with the number of features and the file size.
- Press Download.
Questions
Is my file uploaded?
No. The conversion runs in this browser tab with mapshaper compiled to JavaScript; your file never leaves your device. After the page loads it even works offline.
What is Shapefile?
Esri's shapefile is the old workhorse of GIS: really a set of files (.shp shapes, .dbf attributes, .shx index, .prj projection) that travel together, usually in one .zip.
What will the KML file look like?
Attributes are written as ExtendedData on each placemark, which Google Earth and My Maps show in the info balloon. Styling is plain.
Will my attributes come across?
Yes, as ExtendedData on each placemark. Google Earth shows them in the info balloon.
What about the coordinate system?
If your file has a projection (the .prj file for a shapefile), it's read and, with the box ticked, converted to longitude/latitude (WGS84). Untick the box to keep the original coordinates (not allowed for GeoJSON and KML, which are always longitude/latitude).
How big a file can it handle?
Files up to a few hundred megabytes work on most computers; the limit is your browser's memory. For a huge file, simplify it at the same time (tick “Simplify too”).
The conversion engine is mapshaper 0.8.17 by Matthew Bloch (MPL-2.0), served unchanged from handy.moe. Licences.
