SM Datum

CSV to KML Converter

A CSV to KML converter turns each row of a spreadsheet-style text file into a map point that Google Earth, Google My Maps and other GIS software can open. Drop in a CSV that has latitude and longitude columns, check the columns the tool detected, and download a .kml or .kmz file. The conversion runs entirely in your browser, so your data never leaves your computer.

Drop a CSV file here, or click to browse
Comma, semicolon, tab or pipe separated. Nothing is uploaded.
Or paste CSV text instead
Worksheet

How to convert a CSV file to KML

  1. Prepare your CSV. Make sure the first row holds column headers and that latitude and longitude are in two separate columns as decimal degrees or degrees-minutes-seconds, for example 48.8584 and 2.2945, or 25°22'9.45"N and 74°42'47.87"E.
  2. Load the file. Drop the CSV onto the box above or click it to browse. You can also paste CSV text. Semicolon, tab and pipe separated files are detected automatically.
  3. Check the columns. The converter guesses the latitude, longitude and name columns from their headers. Change any of them in the drop-downs if the guess is wrong.
  4. Download KML or KMZ. Choose KML for a plain text file or KMZ for a zipped (smaller) file. Both open in Google Earth, and every other column is kept as pop-up data on each point.

What your CSV needs to look like

The only hard requirement is two numeric columns: one for latitude and one for longitude, in decimal degrees or degrees-minutes-seconds (WGS84, the same system GPS devices and Google Earth use). Any other columns are optional and become the pop-up text on each point.

Download a sample CSV with decimal and degrees-minutes-seconds rows, then drop it on the converter above to see how it works.

name,lat,lon,category
Eiffel Tower,48.8584,2.2945,Landmark
Louvre Museum,48.8606,2.3376,Museum
Notre-Dame,48.8530,2.3499,Cathedral

Recognised header names include lat, latitude, y, lon, lng, long, longitude and x. Anything else can be picked by hand from the drop-downs.

Valid rangeLatitudeLongitude
Decimal degrees-90 to 90-180 to 180
Positive meansNorthEast

Rows with a blank, text or out-of-range coordinate are skipped, and the tool tells you how many before you download. Coordinates written as degrees-minutes-seconds (such as 40°41'21"N) are read directly, with or without the N, S, E or W letters. To convert a list to plain decimal degrees instead, use the DMS to decimal degrees converter.

Common problems and how to fix them

Points land in the wrong place or in the ocean

The most frequent cause is swapped columns. KML stores each point as longitude, latitude, while people usually write latitude first. This tool reads the columns you select and writes them in the correct KML order, so if the points look mirrored, swap the two drop-downs.

Accented characters look broken

Save the CSV as UTF-8 before converting. The converter reads the file as UTF-8 and writes UTF-8 KML, which Google Earth displays correctly.

Decimal commas

Files exported from some European spreadsheet settings write 48,8584 and separate fields with semicolons. A semicolon-separated file with decimal commas is read correctly.

My file has hundreds of thousands of rows

Because the work happens in your browser, very large files depend on your computer's memory. For big datasets with styling, categories or Shapefile input, use the full KML Studio wizard instead.

What this converter does and does not do

  • Points only. Each row becomes one placemark. Lines, polygons, Shapefiles and GeoJSON need KML Studio.
  • Latitude and longitude only. Decimal degrees or degrees-minutes-seconds in WGS84. Projected coordinates such as UTM are not read; convert them first with the Coordinate Converter.
  • Skipped rows are counted. Blank, text or out-of-range coordinates are left out, and the page tells you how many before you download.
  • One look for all points. You choose a single pin color and size; per-category styling is in KML Studio.
  • Runs in your browser. Nothing is uploaded, so the practical size limit is your computer's memory. Separators (comma, semicolon, tab or pipe) are detected from the first line.

KML or KMZ: which should I download?

KML is a plain-text XML file. KMZ is the same KML packaged in a zip container. This page compresses it in modern browsers, so it is usually smaller and easier to email. Google Earth opens both. Pick KML if you want to read or edit the file in a text editor; pick KMZ when file size matters.

When to use the full KML Studio instead

This page is the quick route: one table in, one KML out. If you need different icons or colors per category, folders, custom pop-up designs, a Shapefile, GeoJSON or GeoPackage as input, or an existing KML you want to restyle, open KML Studio, the full seven-step styling wizard.

Frequently asked questions

How do I convert a CSV to KML?

Open this page, drop in a CSV that has latitude and longitude columns, confirm the detected columns, and click Download KML or Download KMZ. The file is created in your browser in a few seconds.

Is my data uploaded to a server?

No. This converter reads and writes the file entirely inside your browser. Your CSV is never sent to our servers or anyone else's.

Does the CSV need headers?

Yes. The first row must contain column names. They are used to detect the latitude, longitude and name columns and to label the data shown in each point's pop-up.

What coordinate format does it expect?

Decimal degrees in WGS84, for example 48.8584 and 2.2945, or degrees-minutes-seconds such as 25°22'9.45"N and 74°42'47.87"E. The N, S, E and W letters are optional, and a minus sign or S or W means south or west. Latitude must be between -90 and 90 and longitude between -180 and 180.

Can I convert a CSV to KMZ instead of KML?

Yes. After loading the file there are two buttons, Download KML and Download KMZ. KMZ is the zipped version, usually smaller, and it opens in Google Earth exactly like KML.

How do I open the KML in Google Earth?

In Google Earth on the web, choose Projects, then Import KML file. In Google Earth Pro on the desktop, use File, then Open. Google My Maps also accepts KML through its Import option.

What happens to my other CSV columns?

Every column except latitude and longitude is attached to its point as data and shown as a small table in the pop-up. You can turn this off with the checkbox if you only want the points.

Is there a limit on rows?

There is no fixed limit, but the work uses your browser's memory. Files up to tens of thousands of rows convert quickly on a typical computer. For very large or heavily styled datasets use KML Studio.

Why is my KML empty or missing points in Google Earth?

Rows with a blank, text or out-of-range coordinate are skipped, and the page tells you how many before you download. Check that you picked the right latitude and longitude columns, that latitude is between -90 and 90 and longitude between -180 and 180, and that the cells hold numbers or degrees-minutes-seconds, not formulas that show text.

My points land in the wrong place. Are latitude and longitude swapped?

That is the usual cause. Latitude is the north-south value and longitude the east-west value. If the points appear far from where they belong, choose the two columns the other way round in the latitude and longitude drop-downs and download again.

Can it convert lines or polygons?

No. This page turns rows of coordinates into point placemarks. For shapefiles, GeoJSON or lines and polygons use KML Studio.

Does it accept semicolon or tab separated files?

Yes. The separator is detected from the first line, so comma, semicolon, tab and pipe separated files all work. Decimal commas such as 26,9124 are read too, and UTF-8 files keep accented characters.

Is it free, and do I need an account?

It is free, needs no account or signup, and your file is never uploaded: the conversion runs in your browser.

Can I change the pin color or size?

Yes. The pin color and pin size controls apply to every point in the file. For different colors or icons per category, folders or custom pop-ups use KML Studio.

What is the difference between KML and KMZ?

KMZ is the same KML packaged in a zip container, which is the format Google Earth uses natively. This page compresses it in modern browsers, so it is usually much smaller than the KML and easier to email; very old browsers get a valid but uncompressed KMZ. Both open in Google Earth.

Related tools and guides

Need a large dataset converted, a custom map product, or GIS automation? Sagarmekhla GIS Consultancy can help.

Request a consultation

Last updated 2026-10-08. Published by Sagarmekhla GIS Consultancy.