Convert CSV to GeoJSON
Convert a CSV file to a GeoJSON file. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert a CSV file to a GeoJSON file.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert CSV to GeoJSON is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a customer export full of names and emails is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert CSV to GeoJSON
- 1. Paste CSV with coordinates. Put your data in the input pane with a header row. Each record needs a latitude and a longitude value; every other column comes along as feature properties.
- 2. Point at the coordinate columns. If your headers are named something like lat and lon, leave Latitude column and Longitude column empty and the tool detects them. Otherwise tap the right column chips. If the points land in the wrong place, tick Swap latitude and longitude; a warning appears when a latitude is outside -90 to 90.
- 3. Review the FeatureCollection. Each row becomes a Point feature with coordinates in GeoJSON's longitude-first order, a detail that trips up many hand-rolled converters. Remaining columns appear under properties.
- 4. Copy the GeoJSON. Open the Preview tab to see the points on a longitude and latitude grid, then copy the output or download data.geojson for Mapbox, Leaflet, QGIS or geojson.io.
When to use Convert CSV to GeoJSON
Convert CSV to GeoJSON is for turning tabular location data into the format mapping libraries actually consume. Spreadsheets are where coordinates tend to live, but Leaflet, Mapbox and QGIS all want FeatureCollections, and this tool bridges the two without a Python geopandas detour.
- Plotting store locations on a web map. Marketing keeps the branch list in a spreadsheet with lat and lng columns. Convert it here and feed the FeatureCollection straight into a Leaflet layer on the company site.
- Sanity-checking coordinates visually. Before trusting a scraped dataset, convert it and paste the result into geojson.io. Points landing in the ocean reveal swapped latitude and longitude columns in seconds.
- Importing points into QGIS. QGIS reads GeoJSON natively with all attributes intact. Converting a field-survey CSV first means every extra column arrives as a queryable property on each point.
- Prototyping a geo API response. Your frontend expects a FeatureCollection from an endpoint that is not built yet. Generate realistic fixture data from a CSV of sample locations and mock the API with it.
Examples
Rows become Point features
Input
name,lat,lon Berlin,52.52,13.405
Output
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.405,
52.52
]
},
"properties": {
"name": "Berlin"
}
}
]
}About the Convert CSV to GeoJSON tool
Convert CSV to GeoJSON runs as plain JavaScript in your browser tab, with no server behind it. Convert a CSV file to a GeoJSON file. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's CSV Tools section, 133 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 3 settings, including Latitude column (blank = auto-detect), Longitude column (blank = auto-detect) and Swap latitude and longitude, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Convert CSV to GeoJSON free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.