PrivateCSV

Convert CSV to KML

Put the rows of a CSV with coordinates on a map.

CSV file with coordinates

  • Nothing is uploaded
  • Free · no account
  • Tested on 400k-row files

Reference

CSV to KML: how it works

The tool is above. Below: a short overview, optional step-by-step detail, honest browser limits, and answers to common questions.

Last updated 2 min read

About this tool

PrivateCSV converts a CSV file with latitude and longitude columns to a KML file that Google Earth, Google My Maps and GIS apps open as a map of placemarks. The coordinate, name and description columns are detected automatically, or one column holding “lat, lon” as Google Maps writes it; every other column is kept as a custom field of the place. Rows without valid coordinates are listed and left out. The conversion runs in your browser and the file is never uploaded.

How to check that your file is never uploaded

Read the step-by-step guideHow-to, example and use cases (~2 min)

How to convert a CSV file to KML

  1. Drop a CSV file with latitude and longitude columns on the picker above.
  2. Check the detected Latitude, Longitude and Place name columns, and change them if needed.
  3. Click Convert to KML.
  4. Open the file in Google Earth (File > Open), or import it into Google My Maps (Add layer > Import).

Example

A CSV row as a KML placemark.

stores.csv
Store,Latitude,Longitude,Phone
Madrid Centro,40.4168,-3.7038,+34 910 000 001
stores.kml
<Placemark>
  <name>Madrid Centro</name>
  <ExtendedData>
    <Data name="Phone"><value>+34 910 000 001</value></Data>
  </ExtendedData>
  <Point><coordinates>-3.7038,40.4168</coordinates></Point>
</Placemark>

When you need it

Map stores, customers or sites
Export a list with coordinates from a spreadsheet or a CRM and see every location in Google Earth, with its details in the info window.
GPS points from a device or survey
Field data collected as CSV (inspections, sightings, samples) becomes a KML layer to share or overlay on other maps.
A My Maps layer from Excel
Google My Maps imports KML with every custom field kept, which is handy when the CSV import trips on its column limits.

Coordinates

Latitude and longitude must be decimal degrees: 40.4168 and -3.7038, a comma decimal (40,4168) or a hemisphere letter (3.7038 W) are read too. Columns named Lat, Latitude, Y, Lng, Lon, Long, Longitude or X are detected, as is a single Coordinates or Location column holding “40.4168, -3.7038”. Rows whose latitude is beyond ±90 or longitude beyond ±180 are left out and listed.

What each placemark holds

The name column gives the title shown on the map, the description column the text of the info window, and every other column becomes an ExtendedData field, which Google Earth shows as a table and My Maps as fields of the place. The KML is UTF-8, so accented names display correctly.

Browser and file limits (not a trial)

These are technical limits of running in your browser—device memory, encoding and what this tool does not do. They are not a free trial, account quota or paid plan. There is no subscription.

  • Places are points. Lines and polygons cannot be built from a CSV here.
  • Addresses are not geocoded: the CSV needs coordinates. Google My Maps can place addresses itself if you import the CSV there directly.

Frequently asked questions

How do I convert a CSV file to KML?

Choose a CSV with latitude and longitude columns above, check the detected columns and click Convert to KML. Open the file in Google Earth or import it into Google My Maps. Nothing is uploaded.

How do I open a CSV in Google Earth?

Google Earth Pro can import CSV through File > Import, but Google Earth on the web opens KML. Convert the CSV to KML here and open it in either version.

Can I convert addresses to KML?

Not here: the file needs latitude and longitude. Google My Maps can import a CSV with addresses and place them; you can then export that map as KML.

Are my other columns kept?

Yes. Every column that is not the name, description or coordinates becomes a field of the placemark, shown in its info window.

Related tools

Go further

Your files never leave your device

PrivateCSV runs this tool in your browser. No upload, no account, no trial and nothing to install.