Convert CSV to GeoJSON in your browser
This tool turns a plain CSV with latitude and longitude columns into a valid
GeoJSON FeatureCollection of point features, ready to drop into Leaflet,
Mapbox, QGIS, or any GIS tool that reads GeoJSON. It is built for analysts and
developers who have tabular location data and need map-ready output without writing a
script.
How it works
The converter first parses the CSV, respecting quoted fields that contain commas or
line breaks (RFC 4180 quoting). It reads the header row, then scans those headers to
auto-detect the latitude and longitude columns by matching common names such as
lat, latitude, lon, lng and longitude. For every data row it builds a
Point geometry with coordinates written in [longitude, latitude] order — the
order the GeoJSON spec mandates — and copies all remaining columns into the feature’s
properties. Values that look numeric are converted to numbers so they work with
data-driven styling.
Example
This CSV:
name,lat,lon,population
London,51.5074,-0.1278,8900000
Hanoi,21.0278,105.8342,8050000
becomes a FeatureCollection where each city is a Point feature with name and
population in its properties. All of this happens locally — nothing is uploaded.