MapTools
file convertersFastFree · No signup

CSV to GeoJSON Coordinate Converter

Convert tabular CSV spreadsheets containing latitude and longitude columns into valid GeoJSON Point FeatureCollections with metadata attributes.

From:
To:
Input (CSV)Paste or edit code
Output Result (GEOJSON)

Runs entirely in your browser — your inputs never leave this page.

How this tool works

  1. 1

    Parses CSV rows and headers, auto-detecting latitude (lat, latitude, y) and longitude (lng, lon, longitude, x) columns.

  2. 2

    Transforms each record into a GeoJSON Feature with a Point geometry and custom properties.

  3. 3

    Provides a live syntax preview and one-click .geojson file download.

Common uses

  • Transforming store location spreadsheets into web map layers.
  • Importing sensor coordinate logs into Mapbox, Leaflet, or QGIS.
  • Converting customer address datasets with coordinates for spatial analytics.

Frequently asked questions

Yes, you can manually select which columns represent latitude and longitude if they are named non-standardly.

More in File Converters

View all →
Worked example

Turning a Vermont Farmers Market Spreadsheet into a Map File

A farmers market association in Vermont keeps its member list in a spreadsheet: 18 markets with columns for name, town, latitude, longitude, and market day. The group wants those markets on the interactive map on its website. The volunteer in charge uploads the CSV, points the converter at the latitude and longitude columns, and keeps the name, town, and day as properties.

The output is a clean GeoJSON FeatureCollection with 18 point features. One detail worth knowing: GeoJSON always stores coordinates as longitude first, then latitude. The Burlington market comes out as [-73.2121, 44.4759], which is correct GeoJSON order even though it looks backwards to anyone used to saying lat, long. The converter handles the flip automatically.

One market plots in the middle of a lake. Looking back at the spreadsheet, that row had its two coordinate columns swapped, so 45.01 was sitting in the longitude column. The volunteer fixes the two cells, runs the conversion again, and this time all 18 markets land in their proper Vermont towns, from Brattleboro in the south to Burlington on the lake.

Before handing the file over, she opens the GeoJSON in a text editor for a ten-second inspection. The structure is easy to follow: a FeatureCollection holding 18 features, each with a Point geometry and a properties block carrying the name, town, and day exactly as the spreadsheet spelled them. The whole file is only about 9 kilobytes, small enough to email to the web volunteer without a second thought.

She also plans ahead while the columns are fresh in her mind. Next season the association wants a website link for each market, so she adds a spare column to the spreadsheet now and fills it in over winter. Because the converter carries every column across as a property, adding that field later means one fresh conversion, not a rebuild of the map by hand.

To prove the pipeline end to end before trusting it, she runs one deliberate test. She adds a temporary nineteenth row for the Vermont State House in Montpelier, at 44.2601, -72.5754, converts the file, and watches that point land precisely on the golden dome in the map preview. Then she deletes the test row and converts the real eighteen one last time. It is a two-minute ritual, but it means no market can silently drift a town away without her noticing, because she has seen with her own eyes that the converter puts a known address exactly where it belongs.

Loaded into the website map, each point now opens a popup with the market name and day, pulled straight from the spreadsheet columns. When two new markets join in spring, the job takes five minutes: add two rows, reconvert, and replace the file. The spreadsheet stays the single list the association maintains. When a market moves to a new fairground, she edits two cells, reconverts, and the website is correct the same afternoon, with no web developer involved and no stale pins haunting the map. It also means the printed flyer and the website finally agree, because both are drawn from the same rows.

Common mistakes to avoid

  • Swapping the lat and lng columns. Picking the wrong column for latitude is the most common CSV mapping error, and it scatters points across oceans and wrong continents.
  • Messy coordinate cells. Degree symbols, trailing spaces, or notes typed into a coordinate cell can stop a row from converting. Keep those two columns as plain decimal numbers.
  • Losing the header row. If the spreadsheet has no header row, the first market's data may be swallowed as column names and never appear on the map.

Pro tips

  • Sort the spreadsheet by latitude to spot outlier rows before converting.
  • Use decimal degrees for every coordinate, never a mix of formats.
  • After converting, click one town you know well to confirm the points landed correctly.
Geospatial Engineering Reference & Field Manual

GIS Files & Interoperability: Speaking Every Map Format

GeoJSON, KML, GPX, Shapefiles — what each format is for, how to convert between them without losing data, and how to fix the files that refuse to open. Written for CSV to GeoJSON Coordinate Converter and the everyday mapping tasks around it.

1

Vector vs. Raster: The Two Tribes

Every map file belongs to one of two families. Vector formats store geometry as math: points with coordinates, lines as point sequences, polygons as closed rings. They scale forever, stay tiny, and carry attributes like names and populations. GeoJSON, KML, and Shapefiles are all vector.

Raster formats store grids of cells, like digital photos. Satellite imagery, scanned paper maps, and elevation models are raster. They capture continuous reality beautifully but balloon in size and pixelate when zoomed. GeoTIFF is the GIS world's raster workhorse.

Choose vector when your data is discrete things — stores, boundaries, routes. Choose raster when it is continuous — imagery, terrain, temperature surfaces. Converting vector to raster is easy (just draw it); going the other way needs tracing, by hand or with image-processing algorithms.

2

GeoJSON: The Web's Native Tongue

GeoJSON is a map format written as JSON, the same notation web developers use for data. A point looks like this — readable by humans and parseable by every browser with zero libraries. That simplicity made it the default for web maps.

{"type": "Point", "coordinates": [-74.006, 40.7128]}

Its structure is small but complete: Feature objects pair geometry with a properties dictionary, and FeatureCollections bundle many features into one file. The properties can hold anything — names, dates, measurements — which makes GeoJSON a fine carrier for analysis results, not just shapes.

GeoJSON has quirks to respect. Coordinates are always longitude-first, which trips up everyone once. It officially supports only the WGS84 datum, so reproject anything else before exporting. And it has no built-in styling — colors and icons live in a separate layer of your application, not in the file.

For big data, look at its cousins: newline-delimited GeoJSON streams features one per line for huge datasets, and FlatGeobuf packs the same model into a fast binary format. But for files under a few megabytes, plain GeoJSON remains unbeatable for simplicity.

This page shows the first two chapters. Read the complete this category field guide →