Convert CSV to GeoJSON Online — Free & Instant
CSV files with latitude and longitude columns can be converted to GeoJSON for use in web maps, Leaflet, and GitHub. Maparz detects common coordinate column names (lat, lng, lon, latitude, longitude, x, y) automatically and generates a GeoJSON FeatureCollection with a Point feature for each CSV row, including all other columns as properties.
Converter
When to convert CSV to GeoJSON
- Converting exported spreadsheet data with coordinates to web-ready GeoJSON
- Plotting business location data on an interactive Leaflet map
- Converting OpenStreetMap CSV exports to GeoJSON for analysis
- Mapping survey results exported from Google Forms or Kobo Toolbox
How to convert CSV to GeoJSON
- 1
Prepare your CSV
Ensure your CSV has columns for latitude (lat, latitude, y) and longitude (lon, lng, longitude, x). Any other columns become GeoJSON properties.
- 2
Upload the CSV
Drop your .csv file on the upload zone.
- 3
Select GeoJSON
GeoJSON is pre-selected for this page.
- 4
Download and use
The .geojson file contains one Point feature per CSV row.
About CSV format
CSV (Comma-Separated Values) files containing geometry data typically include latitude and longitude columns (or X/Y columns for projected data). Many data providers distribute point datasets as CSV because they are easy to open in Excel, Python, and R. When converting from a vector format to CSV, Maparz outputs an X (longitude) and Y (latitude) column along with all attribute data. To convert CSV to GeoJSON, your file must have columns identifiable as longitude (x, lon, lng, longitude) and latitude (y, lat, latitude).
Strengths
- +Opens in Excel, Google Sheets, any spreadsheet
- +Human-readable and editable
- +Lightweight for point data
About GeoJSON format
GeoJSON is an open standard geospatial data format based on JSON, defined in RFC 7946. It supports all geometry types (Point, LineString, Polygon, MultiPolygon, etc.) and arbitrary properties per feature. GeoJSON is the preferred format for web mapping because browsers can parse it natively and libraries like Leaflet, Mapbox GL, and D3 consume it directly. GitHub renders GeoJSON files on a map automatically. It uses WGS 84 (EPSG:4326) as its coordinate reference system.
Strengths
- +Native browser support (JSON)
- +Human-readable and editable
- +Single file — easy to share
- +First-class support in web mapping libraries
Frequently asked questions
What column names does Maparz recognise as coordinates?
Maparz recognises: lat, latitude, y for latitude; lon, lng, longitude, x for longitude. Column names are case-insensitive.
What if my CSV uses a different delimiter (semicolon, tab)?
For best results, ensure your CSV uses comma delimiters. Most spreadsheet tools can save CSV with comma separators.
Can I convert polygon or line geometry from CSV?
CSV is inherently a point format. For polygon or line data, use Shapefile or GeoJSON as the source format.
How many rows are supported?
Files up to 50 MB are supported. A 50 MB CSV typically contains hundreds of thousands of point features.