Coordinate Extractor
Input GeoJSON
or drag & drop
How to Use
- Upload or Paste GeoJSON: Drop a GeoJSON file or paste the content into the text area
- Configure Options: Choose whether to include feature properties and coordinate order
- Extract Coordinates: Click "Extract Coordinates" to process the file
- Download CSV: Download the resulting CSV file with all coordinates
Features
✓ Extract from Any Geometry: Works with Points, LineStrings, Polygons, MultiPolygons, and GeometryCollections ✓ Feature Properties: Optionally include feature properties in the CSV output ✓ Flexible Column Order: Choose between lat/lon or lon/lat column order ✓ Coordinate Indexing: Each coordinate is numbered for easy reference ✓ Property Preservation: Include feature ID and custom properties in output ✓ Instant Processing: All processing happens in your browser — no server uploads
Use Cases
- Debugging GeoJSON: Quickly inspect all coordinates in a complex GeoJSON file
- Data Analysis: Export coordinates for statistical analysis in Excel, R, or Python
- Plotting: Create scatter plots or heatmaps from geographic data
- Validation: Check coordinate ranges and identify outliers
- Migration: Convert GeoJSON coordinates to CSV for import into other systems
- Documentation: Generate coordinate lists for reports or specifications
Output Format
The extracted CSV includes the following columns:
- index: Sequential number for each coordinate
- feature_id: ID of the feature (if available)
- geometry_type: Type of geometry (Point, LineString, Polygon, etc.)
- lat / lon: Coordinate values (order configurable)
- altitude: Z-coordinate if present in 3D geometries
- properties_*: Feature properties (if enabled)
Example Output
csv
index,feature_id,geometry_type,lat,lon
1,country_1,Polygon,52.5200,13.4050
2,country_1,Polygon,52.5210,13.4060
3,country_1,Polygon,52.5220,13.4070
4,country_2,Point,48.8566,2.3522Technical Details
- Input Format: GeoJSON FeatureCollection, Feature, or Geometry
- Output Format: CSV with configurable columns
- Coordinate Extraction: Recursive extraction from all geometry types
- Property Handling: Optional inclusion of feature properties
- Performance: Handles large files efficiently with streaming output
Tips
- Large Files: For very large GeoJSON files (>100MB), consider splitting first using the GeoJSON Splitter
- Coordinate Order: Most GIS tools expect lon/lat, but spreadsheets often work better with lat/lon
- Property Filtering: Include properties to maintain context for each coordinate
- 3D Data: Altitude values are automatically included if present
Related Tools
- GeoJSON → CSV - Convert GeoJSON features to CSV
- GeoJSON Minifier - Reduce GeoJSON file size
- CRS Converter - Transform coordinate reference systems
- Coordinate Formats - Convert between lat/lon, UTM, MGRS, DMS
FAQ
Q: What's the difference between this and GeoJSON → CSV converter? A: The CSV converter exports feature-level data with one row per feature. This tool exports coordinate-level data with one row per coordinate point.
Q: Can I extract coordinates from TopoJSON? A: First convert your TopoJSON to GeoJSON using the TopoJSON → GeoJSON converter, then use this tool.
Q: How are nested geometries handled? A: All coordinates are flattened. For MultiPolygons or GeometryCollections, each coordinate is extracted with its geometry type preserved.
Q: Does this preserve the order of coordinates? A: Yes, coordinates are extracted in the exact order they appear in the GeoJSON structure.
Q: Can I use this for LineString path analysis? A: Absolutely! The index column preserves coordinate order, making it easy to analyze paths and distances in Excel or other tools.
Q: What if my GeoJSON has invalid coordinates? A: Invalid coordinates (non-numeric, null, or undefined) are skipped with a warning in the browser console.
Q: How do I import the CSV into Excel? A: Open Excel → Data → From Text/CSV → Select the downloaded file → Excel will auto-detect the format.
Q: Can I filter coordinates by bounding box? A: Currently, this tool extracts all coordinates. Use a GIS tool to filter by bounding box first, or filter the CSV after export.