CSV to GeoJSON Converter

Free CSV to GeoJSON converter. Transform CSV files with latitude, longitude coordinates to GeoJSON. Supports custom column mapping and properties.

Upload
Drag and drop CSV file here
or click to browse

What is CSV to GeoJSON Converter?

The CSV to GeoJSON Converter is a free online tool that transforms CSV files containing latitude and longitude coordinates into GeoJSON format. This is essential for converting spreadsheet data, GPS logs, or database exports into map-ready GeoJSON files.

GeoJSON is the standard format for web mapping libraries like Leaflet, Mapbox, Google Maps, and OpenLayers. By converting your CSV coordinate data to GeoJSON, you can easily visualize and analyze geographic information on interactive maps.

The tool automatically detects coordinate columns, preserves all additional data as feature properties, and handles various CSV formats including different delimiters and coordinate orders.

How to Use CSV to GeoJSON Converter

Converting CSV to GeoJSON is simple:

  • Paste your CSV data or upload a CSV file
  • The tool automatically detects latitude and longitude columns
  • Adjust column mapping if needed (lat, lon, latitude, longitude are auto-detected)
  • Click Convert to generate GeoJSON FeatureCollection
  • Preview the result on the map or download the GeoJSON file

All additional CSV columns are automatically included as feature properties in the GeoJSON output, preserving your data attributes.

CSV Format Requirements

Your CSV file should have:

  • Header row with column names
  • Latitude column (named: lat, latitude, y, etc.)
  • Longitude column (named: lon, lng, longitude, x, etc.)
  • Valid decimal coordinates (e.g., 21.0278, 105.8342)
  • Optional: name, description, or other attribute columns

The tool supports various CSV formats, including comma, semicolon, and tab-separated values.

Example CSV Format

Here's an example CSV that can be converted:

name,lat,lon,population,country
Hanoi,21.0278,105.8342,8000000,Vietnam
Ho Chi Minh City,10.8231,106.6297,9000000,Vietnam
Da Nang,16.0544,108.2022,1200000,Vietnam
Bangkok,13.7563,100.5018,10500000,Thailand
Singapore,1.3521,103.8198,5700000,Singapore

This will be converted to a GeoJSON FeatureCollection with 5 Point features, each containing the name, population, and country as properties.

Applications and Use Cases

This converter is useful for:

  • Visualizing spreadsheet location data on web maps
  • Converting GPS logs or tracking data to GeoJSON
  • Preparing location data for Leaflet or Mapbox applications
  • Transforming database exports with coordinates
  • Creating GeoJSON from survey data with GPS coordinates
  • Converting store locations, POI data, or field measurements to map format

Features and Options

Key features of this CSV to GeoJSON converter:

  • Automatic column detection for lat/lon fields
  • Custom column mapping for non-standard headers
  • Preserve all CSV columns as GeoJSON properties
  • Skip invalid coordinates automatically
  • Handle different coordinate orders (lat,lon or lon,lat)
  • Preview results on interactive map
  • Download as .geojson file for use in GIS applications