convert-csv.com logo convert-csv.com

Convert CSV to KML

Create KML placemarks from CSV latitude/longitude data for Google Earth and maps.

100% Secure - your files are processed in your browser and never sent to a server.
Drop your file hereor click to browseSupports CSV, TSV, or TXT files (.csv, .tsv, .txt) (Max 100MB)

KML (Keyhole Markup Language) is the standard format for displaying geographic data in Google Earth, Google Maps, and other mapping applications. This tool converts CSV files with latitude and longitude columns into KML Placemark elements, generating a complete KML document ready for import into Google Earth or any KML-compatible viewer. The converter auto-detects latitude and longitude column names and extracts name and description columns for Placemark labels and popups. You can configure the input delimiter, specify custom coordinate column names, and choose whether the first row contains headers. The output KML is valid XML that follows the KML 2.2 specification, with proper namespace declarations and coordinate formatting (longitude,latitude,altitude). All processing happens in your browser, making it safe for sensitive geographic data like property surveys, environmental monitoring points, or infrastructure locations.

How to use the Convert CSV to KML tool

  1. Load your CSV data: Drag and drop your CSV file, choose a file from your file explorer, or paste CSV data directly into the paste area.
  2. Configure input settings: Select the input delimiter (auto-detect or specific) and toggle whether the first row is a header.
  3. Convert to KML: Click the "Convert Data" button to create KML placemarks from your CSV latitude/longitude data for Google Earth.
  4. Export results: Copy the KML output to your clipboard or download it as a file.

Frequently asked questions

Can I import the generated KML directly into Google Earth?
Yes. The output is a valid KML file that can be opened directly in Google Earth Pro or uploaded to Google My Maps. The KML includes Placemark elements with coordinates, names, and descriptions.
How does the CSV-to-KML tool identify coordinate columns?
The parser looks for columns named lat, latitude, y, lon, lng, long, longitude, or x (case-insensitive). You can also manually specify custom column names.
What KML elements are generated?
Each CSV row becomes a <Placemark> element with a <Point> geometry (using longitude,latitude order per KML spec), a <name> from the name column, and a <description> from the description column.
Does the KML support custom properties?
Additional CSV columns beyond coordinates, name, and description are included in the Placemark ExtendedData element, making them accessible in Google Earth's property inspector.
Is the output KML 2.2 compliant?
Yes. The generated KML follows the KML 2.2 specification with proper namespace declarations (http://www.opengis.net/kml/2.2) and coordinate formatting.

Related tools