How to Convert Coordinates to GeoJSON
Paste latitude and longitude coordinate pairs (one per line) and this tool creates a GeoJSON FeatureCollection with a Point feature for each pair. Coordinates can be separated by commas, spaces, or tabs.
Enter coordinates in latitude, longitude order (the natural way humans read coordinates). The tool automatically converts them to GeoJSON's required [longitude, latitude] format.
Supported Input Formats
40.7484, -73.9857— comma-separated40.7484 -73.9857— space-separated40.7484\t-73.9857— tab-separated (paste from spreadsheets)
Each line should contain exactly one coordinate pair. Blank lines are ignored. The tool processes any number of coordinate pairs.
Common Use Cases
- Converting spreadsheet columns of coordinates into map-ready GeoJSON
- Creating GeoJSON from geocoding API results
- Importing GPS coordinate lists from text files or logs
- Building marker datasets from address lookup results
To extract coordinates back out of GeoJSON, use the GeoJSON to lat/long extractor.
Try It
Paste these three coordinate lines representing landmarks in San Francisco. Each line is a latitude/longitude pair:
CSV37.8199, -122.4783
37.7749, -122.4194
37.8024, -122.4058The converter produces a FeatureCollection with three Point features:
GeoJSON{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-122.4783, 37.8199]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-122.4194, 37.7749]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-122.4058, 37.8024]
}
}
]
}Notice that the input uses latitude-first order (37.8199, -122.4783) but the GeoJSON output uses longitude-first order ([-122.4783, 37.8199]) as required by the RFC 7946 specification.
How the Parsing Works
The parser splits the input text on newlines and processes each non-empty line as a coordinate pair. It detects the delimiter (comma, space, or tab) and extracts two numeric values. The first value is treated as latitude and the second as longitude. Each pair is wrapped in a GeoJSON Point Feature with an empty properties object, and all features are collected into a FeatureCollection.
After conversion, you can view the points on a map to verify their positions, or use the pretty printer to format the output for documentation.