EditSafely

Convert CSV to GeoJSON

Convert a CSV file to a GeoJSON file. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

Options

How to use Convert CSV to GeoJSON

  1. 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. 2. Point at the coordinate columns. If your headers are named something like lat and lon, leave Latitude column and Longitude column blank and the tool detects them. Otherwise type the exact column names to be explicit.
  3. 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. 4. Copy the GeoJSON. Copy the output and drop it into Mapbox, Leaflet, QGIS or geojson.io to see your rows plotted on a map right away.

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 2 settings, including Latitude column (blank = auto-detect) and Longitude column (blank = auto-detect), 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,658 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. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

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.

Related tools

All CSV Tools