CSV to KML

Convert CSV coordinates into a KML file for maps.

About CSV to KML

A list of addresses with coordinates in a spreadsheet becomes far more useful as a map layer in Google Earth or Google My Maps. This tool reads a CSV with latitude and longitude columns and writes a KML document with one Placemark per row, using optional name and description columns for the labels and pop-ups.

Paste the CSV, confirm which columns hold the coordinates, name the file and download the KML. The file is built in your browser, so customer locations are never uploaded.

How to use CSV to KML step by step

  1. Paste the comma-separated CSV with a header line into the text area.
  2. Set the names of the latitude and longitude columns (lat and lon by default) and, optionally, the name and description columns.
  3. Type the output file name (map by default).
  4. Click "Convert and download KML". Open the file in Google Earth or import it into Google My Maps.

Input and output example

Input

name,lat,lon,description
Office,40.4168,-3.7038,HQ
Warehouse,41.3851,2.1734,Stock

Output

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Placemark>
      <name>Office</name>
      <description>HQ</description>
      <Point>
        <coordinates>-3.7038,40.4168,0</coordinates>
      </Point>
    </Placemark>
    ...
  </Document>
</kml>

Why use our CSV to KML?

Common use cases

Limits and tips

Frequently asked questions

In what order do latitude and longitude go in KML?

KML writes coordinates as longitude,latitude,altitude, the opposite of the usual spoken order. The tool takes care of this: you tell it which CSV column is latitude and which is longitude and it writes them in the correct KML order with altitude 0.

How do I open the KML file?

Double-click it with Google Earth Pro installed, or in Google My Maps create a map, click Import and choose the KML. QGIS, ArcGIS and most GIS tools also open KML directly.

Can I add colours, icons or lines?

No. Each row becomes a simple point with the default icon. To style the points or draw routes, import the KML into Google Earth or My Maps and edit the styles there, or generate a KML with Style elements by another means.

What is the difference between KML and CSV for maps?

CSV is a plain table that Google My Maps can import too, but only KML carries names, descriptions and geometry in a format that Google Earth, GPS devices and GIS software understand directly. KML is the safer choice when the map must be shared.

Is the CSV uploaded?

No. The KML text is assembled in your browser and downloaded locally; nothing reaches a server.

Related guides

Related tools

Other free utilities you may find useful

Available languages