How to convert a Shapefile to KML
- Put the Shapefile parts in one ZIP:
.shp,.shxand.dbfare needed, and.prjshould be included. - Choose KML or KMZ as the output.
- Drop the ZIP into the box above. The file downloads when the conversion is done.
- Open it in Google Earth on desktop, web or mobile.
Why the .prj file matters
Google Earth works in WGS 84 latitude and longitude. Many Shapefiles are stored in a projected system such as UTM or US State Plane, with coordinates in meters or feet. The .prj file says which system the data uses. When it is in the ZIP, the converter reads it and transforms the coordinates to WGS 84.
Without a .prj, the converter has to assume the coordinates are already latitude and longitude. If they are not, the shapes land far from where they belong or do not appear. If your Shapefile has no .prj, open it in QGIS or ArcGIS, set the correct coordinate system and export it again.
KML or KMZ?
| KML | KMZ | |
|---|---|---|
| What it is | Plain XML text | The same KML, zipped |
| File size | Larger | Smaller |
| Edit in a text editor | Yes | Only after unzipping |
| Good for | Small data, manual edits | Email and sharing |
What changes during conversion
- Attributes from the .dbf are written to each placemark and show when you click it in Google Earth. A field called
namebecomes the placemark name. - Several shapefiles in one ZIP are combined into one KML file.
- Symbology is not carried over. A Shapefile stores no colours or line styles, so Google Earth draws the features with its default style.
Common problems
The ZIP cannot be read
- The ZIP needs at least
.shp,.shxand.dbf. - All parts of one Shapefile must share the same name, for example
parcels.shp,parcels.shx,parcels.dbf. - If it still fails, export the layer again from your GIS software. Very complex geometry can also be simplified first.
The shapes are in the wrong place
The .prj is missing from the ZIP or describes the wrong coordinate system. See the section on the .prj file above.
The file is too large
The free tool handles ZIP files up to 3 MB. For larger files or many files at once, use GaleriGIS Toolbox.
GaleriGIS Toolbox
$15 per month
- No conversion limit on every GaleriGIS online converter
- Several files at once, and larger files
- DWG and DXF in any UTM zone or EPSG code, KML/KMZ, Shapefile, GeoJSON, Excel and coordinates
- Files stay in your browser. Billed monthly, cancel any time
Payments are processed by Creem, our merchant of record. See our refund policy and terms.
Frequently asked questions
Is my file uploaded?
No. The Shapefile is read and converted inside your browser. Only the converter code is downloaded from our server.
Can I convert a single .shp file without the other parts?
No. The geometry is in the .shp, but the index (.shx) and the attributes (.dbf) are separate files, so the tool asks for them together in a ZIP.
How many files are free?
Three. After the third file the free quota fills up again over the next one to three days. GaleriGIS Toolbox has no limit.
I need the opposite direction
Use the KML to SHP converter.
More GaleriGIS tools
- KML to SHP converter
- KMZ to SHP converter
- SHP to KMZ converter
- KML to Excel converter
- KMZ to Excel converter
- Excel to KML converter
- GeoJSON to SHP converter
- SHP to GeoJSON converter
- DWG to KML converter
- DWG to SHP converter
- DXF to KML converter
- DXF to SHP converter
- UTM zone detector
- KML and KMZ viewer