convert-csv.com logo convert-csv.com

Convert CSV to GeoJSON

Build GeoJSON FeatureCollections from CSV with latitude/longitude columns.

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)

Converting CSV data to GeoJSON is the standard way to bring tabular geographic data into web mapping applications. GeoJSON is an open format defined by RFC 7946 for representing geographic features. This tool reads CSV files with latitude and longitude columns and generates a GeoJSON FeatureCollection, where each row becomes a Feature with Point geometry and all other columns become properties. The converter auto-detects latitude/longitude column names (supporting common variations like lat, latitude, y, lon, lng, long, longitude, x) and handles coordinate pairs in either order. You can configure the input delimiter, toggle whether the first row is a header, and specify custom column names for coordinates. The output GeoJSON is ready for use with Leaflet, Mapbox, OpenLayers, or any GIS tool that reads GeoJSON. All processing happens in your browser, which is important when working with sensitive location data like property records, customer addresses, or field survey coordinates.

How to use the Convert CSV to GeoJSON 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 GeoJSON: Click the "Convert Data" button to build a GeoJSON FeatureCollection from your CSV with latitude/longitude columns.
  4. Export results: Copy the GeoJSON output to your clipboard or download it as a file.

Frequently asked questions

How does the tool detect latitude and longitude columns?
The parser looks for columns named lat, latitude, y, lon, lng, long, longitude, or x (case-insensitive). If found, those columns are used as coordinates. You can also manually specify the column names. The detection follows common GIS data conventions used by mapping libraries.
What GeoJSON geometry type is generated?
Each CSV row becomes a GeoJSON Feature with Point geometry (latitude/longitude coordinates). All other columns become properties of the Feature object. The output follows the RFC 7946 GeoJSON specification for geometry types.
Can I use the output directly with Leaflet or Mapbox?
Yes. The generated FeatureCollection is valid GeoJSON that can be loaded directly into Leaflet (L.geoJSON), Mapbox GL JS (map.addSource), or OpenLayers. These libraries implement the RFC 7946 specification for GeoJSON rendering.
Does the tool handle CSV files with non-standard coordinate column names?
Yes. You can specify custom column names for latitude and longitude if your CSV uses non-standard naming. The tool also supports columns in either lat/lon or lon/lat order, following the coordinate order conventions in RFC 7946.
Is the generated GeoJSON valid according to RFC 7946?
Yes. The output follows the GeoJSON specification (RFC 7946: GeoJSON: A Geospatial Data Interchange Format) with proper FeatureCollection, Feature, and Point geometry structure. Coordinates are in WGS 84 longitude/latitude order as required by the specification.

Related tools