Skip to content

Convert Shapefile to KML

Drop the zip or the .shp, .dbf and .prj.

Nothing is uploaded

AI Agent for QGIS
QGIS plugin

AI Agent for QGIS

Skip the converter next time: ask AI Agent in QGIS to convert, reproject and load your files.

Get the free QGIS pluginFree plan, no credit card.

Guide

How it works, formats and limits.

About this tool

Drop the zip or the .shp, .dbf and .prj. One placemark per record, attributes in the balloon, and nothing leaves your browser.

How the conversion works

  1. Choose the shapefile as one .zip, or select the .shp, .dbf and .prj together.
  2. Geometries come from the .shp and are reprojected to WGS 84 through the .prj, since KML only knows degrees. Each DBF record becomes a Placemark; a field called name, title or label becomes its name, the others go to ExtendedData.
  3. Download the .kml and open it in Google Earth or Google My Maps.

How each part is mapped

The .prj matters most here: without it the metres of a projected shapefile are written as if they were degrees, and Google Earth shows nothing. A notice says when that happened.

ShapefileKML
Point, MultiPointPoint, or a MultiGeometry of Points.
PolyLineLineString, or a MultiGeometry of LineStrings for several parts.
PolygonPolygon with outerBoundaryIs and innerBoundaryIs for holes, or a MultiGeometry for several outer rings.
DBF field name, title, label, idThe Placemark name, matched case-insensitively.
Every other DBF fieldAn ExtendedData Data element, shown in the Google Earth balloon.

What it does not do

  • No styles: the placemarks take Google Earth's defaults.
  • A shapefile without a .prj is passed through unchanged. If it was in metres, the result is not on the map. Add the .prj and convert again.
  • Z and M values are dropped.
  • Files up to 50 MB together. Google Earth itself slows down well before that; My Maps stops at 2,000 features per layer.

Frequently asked questions

Short answers to what people ask most.

Does my shapefile get uploaded?

No. The files are read in your browser tab and the KML is written there. Nothing is sent.

Google Earth shows nothing after I open the KML.

The shapefile was in a projected system and the .prj was missing, so metres were written as degrees. Select the .prj together with the .shp and .dbf and convert again.

Can I import the result into Google My Maps?

Yes, as a layer, up to 2,000 features and 5 MB per layer. Split a large shapefile in QGIS first.

Which field becomes the placemark name?

The first DBF field called name, title, label or id, case ignored. Rename a field in QGIS if you want another one.

Why does the .dbf text look wrong?

Add the .cpg file from the same folder. It names the encoding; without it the page guesses.