Convert CSV data with coordinates to GeoJSON format.
About CSV to GeoJSON
Web maps built with Leaflet, Mapbox GL, OpenLayers or Google Maps expect GeoJSON, not a spreadsheet. This tool reads a CSV that has longitude and latitude columns and produces a FeatureCollection of Point features, keeping every other column as a property of the feature so pop-ups and filters keep working.
Paste the CSV, check the detected coordinate columns, click Convert and download or copy the GeoJSON. The conversion runs in your browser, so location data stays private.
How to use CSV to GeoJSON step by step
Paste the comma-separated CSV with a header line. The tool detects the columns whose names contain lon, lng, x, lat or y and pre-selects them.
Correct the longitude and latitude column selections if the detection picked the wrong ones.
Click "Convert to GeoJSON". The pretty-printed FeatureCollection appears in the result box.
Copy the result or download it as a .geojson file.
100% free and online: no payments, no software or extensions to install.
Privacy-first: processing happens in your browser, your data never leaves your device.
No sign-up: paste your data and get the result in one click.
Fast and reliable: handle small or large files in seconds, ready for Excel and other tools.
Common use cases
Add a layer of shops, stations or events to a Leaflet or Mapbox map from a spreadsheet.
Upload points to Mapbox Studio, geojson.io or a Kepler.gl visualisation.
Convert a list of geocoded addresses into a file that QGIS or ArcGIS opens directly.
Publish a small open-data set of locations in a format web developers can consume.
Limits and tips
Coordinates must be decimal degrees with a dot as decimal separator. Rows where longitude or latitude cannot be parsed as a number are skipped.
Rows whose number of cells differs from the header are ignored, which usually reveals unquoted commas in a value. Quoted values are supported.
All properties are strings, including the coordinate columns, which are also kept as properties. Convert types in your map code if needed.
Only Point geometries are produced; there is no way to build lines or polygons from a CSV here.
Frequently asked questions
Which order do coordinates use in GeoJSON?
GeoJSON coordinates are [longitude, latitude], the reverse of the lat, lon order used in conversation and in Google Maps URLs. The tool writes them correctly as long as you select the right columns; swapping them places points in the ocean or in Antarctica.
How does the automatic column detection work?
The header names are compared in lower case: the first column containing lon, lng or x is proposed as longitude and the first containing lat or y as latitude. A column called tax would match x, so always check the selection.
What is the difference between GeoJSON and KML?
GeoJSON is JSON, lightweight and native to web mapping libraries; KML is XML, includes styling and is native to Google Earth. Many tools read both. This site offers CSV to KML as well if your destination is Google Earth or My Maps.
Can I convert addresses without coordinates?
No. The CSV must already contain longitude and latitude. Geocode the addresses first with a service such as Nominatim, Google Geocoding or a spreadsheet add-on, then convert.
Is the CSV uploaded?
No. Parsing and JSON generation happen in your browser; the file is created locally.