Convert CSV to GeoJSON

Convert CSV to GeoJSON in seconds. Map latitude and longitude fields into GeoJSON point features for use in maps, APIs, and spatial data tools. No software or uploads required.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total characters: 0
Options

How to Use:

  • Paste your CSV data into the “Input CSV” box or click “Choose File” to upload a local file
  • Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
  • Ensure your CSV contains column headers (like lat and lon)
  • Use the Latitude column and Longitude column input fields to match your column names
    • Default values are lat and lon
    • You can change them to anything (like latitude and longitude) depending on your CSV
  • The output updates instantly and flashes blue when it changes
  • Output is a valid GeoJSON FeatureCollection with Point geometry
  • A character counter appears below the output for quick size reference
  • Click “Convert” to reprocess the current input
  • Click “Copy Output” to copy the GeoJSON to your clipboard
  • Click “Export to File” to save the output as a .geojson file
  • Click “Clear All” to reset input, output, options, and file state

What Convert CSV to GeoJSON can do:

Convert CSV to GeoJSON transforms structured CSV data into geographic point features for use with maps, GIS tools, and APIs. You just tell it which columns contain coordinates and it does the rest building proper GeoJSON structure while preserving other row data as properties. No complex setup, just paste and go.

Example:

CSV Input:

name,lat,lon
Park,40.7128,-74.0060
Museum,34.0522,-118.2437
Cafe,51.5074,-0.1278

GeoJSON Output:

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [-74.006, 40.7128] },
"properties": { "name": "Park" }
},
...
]
}

Common Use Cases:

Convert CSV to GeoJSON is ideal for preparing location-based data for Leaflet, Mapbox, OpenLayers, or custom web maps. It’s also useful for visualizing survey data, asset tracking, or transforming spreadsheet exports into spatial datasets.

Useful Tools & Suggestions:

If your CSV has coordinates, use Analyze CSV to make sure lat/lon columns are clean. And once it’s in GeoJSON, Convert GeoJSON to CSV lets you bring it back for editing anytime.