More games at WuGames.ioSponsoredDiscover free browser games — play instantly, no download, no sign-up.Play

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

Frequently Asked Questions

It converts a CSV (or TSV/semicolon-delimited) spreadsheet of geographic data into a valid GeoJSON FeatureCollection. The CSV must contain at least two columns holding longitude and latitude in decimal degrees; all other columns become properties on the resulting Feature. Common use cases include geocoded store locators, survey results with coordinates, sensor readings, and birding observations. The output is a FeatureCollection of Points (or LineStrings/Polygons if you provide ordered coordinate groups), ready to drop into Leaflet, Mapbox GL, Google Maps, or any GIS desktop application. Everything runs in your browser; nothing is uploaded.

Coordinates must be in WGS84 decimal degrees (EPSG:4326) per the GeoJSON specification (RFC 7946). Acceptable forms include 37.7749, 40.7128, -122.4194, and so on. Degrees-minutes-seconds notation (37 deg 46 min 30 sec N) must be converted to decimal before importing; the tool can auto-detect and convert simple DMS strings when you tick the Parse DMS checkbox. The longitude column normally comes first per GeoJSON convention, but the tool autodetects the order from the column names (lon, lng, x, longitude vs lat, y, latitude). If your CSV uses a comma as the decimal separator (common in Europe), select semicolon as the field delimiter.

The first row of the CSV should be a header row. The tool auto-detects standard longitude column names (lon, lng, x, longitude) and latitude names (lat, y, latitude). If your headers use non-English words or unusual abbreviations, the column-picker UI lets you point at the right column manually. Any remaining columns become properties on the resulting Feature with their original header name as the key. Numeric values are parsed as numbers, ISO date strings as strings, and quoted text as strings. The properties object preserves the row order so that downstream visualisation tools can colour by category or filter by attribute.

Yes. Switch the geometry mode to LineString or Polygon and assign a column that identifies which rows belong to the same feature (commonly called track_id, group, or geometry_id). The rows must be in sequence order; the tool concatenates them into the geometry of the parent feature. For Polygons, the first and last coordinates must match to close the ring, and the tool will auto-close them if they do not. MultiLineString and MultiPolygon are supported by giving an extra column identifying which line or polygon part each row belongs to. The output preserves topology as expected by RFC 7946.

For CSVs under 100 MB, the tool parses and converts in under 10 seconds on most laptops. Between 100 and 500 MB, expect 1 to 5 minutes of processing and significant memory use (roughly 3 to 5 times the file size in JavaScript heap). Above 500 MB, the browser may run out of memory and crash the tab, so we recommend splitting the CSV by row range or by region before uploading. For massive datasets (millions of rows), use a server-side tool like GDAL's ogr2ogr with the -f GeoJSON output driver or a Python script using geopandas, which can stream rows without buffering them all.

Rows with missing, blank, or non-numeric longitude or latitude are flagged in a side panel and excluded from the output by default. You can switch the policy to include such rows as Features with a null geometry, which is valid GeoJSON and preserves the row count in the output. Coordinates outside the valid range (longitude outside ±180 degrees, latitude outside ±90 degrees) are also flagged; these may indicate a swapped column or a degree-minute-second value not converted to decimal. The tool gives a CSV-format error report you can download for cleanup before re-running.

No. The conversion happens entirely in your browser using JavaScript; no part of the CSV file is uploaded to any server. You can verify this by opening the network tab of your browser developer tools and watching for outgoing requests during conversion (you will see none). The page itself is cached after first visit, so subsequent conversions can run fully offline. This is important when your CSV contains sensitive data such as customer addresses, medical-patient locations, or proprietary survey results. Closing the browser tab discards all in-memory data; nothing persists on the server side.

When you enable the distance analysis option, the tool computes the great-circle distance between consecutive rows using the haversine formula on the WGS84 ellipsoid. The formula treats Earth as a sphere of mean radius 6371.0088 km; the result is within 0.5 percent of the true geodesic distance for any pair of points, which is well within the precision of consumer GPS. For higher accuracy, the tool can optionally use Vincenty's inverse formula, which solves the geodesic exactly on the ellipsoid but is 10 to 20 times slower. For most analytical purposes, haversine is the right choice.
CSV to GeoJSON Converter — Free CSV to GeoJSON converter. Transform CSV files with latitude, longitude coordinates to GeoJSON. Supports custom colu
CSV to GeoJSON Converter