Skip to content
Ads keep this site free 🙏

GeoJSON Splitter

Split large GeoJSON files into multiple smaller files based on properties like country, admin level, type, or any other attribute.

How to Use

  1. Upload GeoJSON file or paste data
  2. Select property to split by (e.g., "country", "admin_level", "type")
  3. Preview split — See how many files will be created
  4. Download all files as a ZIP archive

Features

Split by any property — Country, admin level, category, or custom field
Smart grouping — Automatically groups features by property value
Preview before split — See file count and feature distribution
Batch download — Download all files as ZIP
Property detection — Auto-detects available properties
Preserve structure — Maintains all feature properties and geometry

Use Cases

🗺️ Split by country — Divide world dataset into individual country files
🏛️ Split by admin level — Separate provinces, states, districts
🏙️ Split by city — Extract individual cities from national dataset
📊 Split by category — Group features by type (roads, buildings, parks)
🎯 Data distribution — Create manageable chunks for download
🔍 Focused analysis — Extract specific regions for detailed work

Common Split Properties

Geographic Properties

json
{
  "country": "United States",
  "admin_level": "1",
  "state": "California",
  "city": "San Francisco"
}

OpenStreetMap Properties

json
{
  "admin_level": "2",
  "ISO3166-1": "US",
  "name": "United States"
}

Custom Properties

json
{
  "category": "residential",
  "zone": "A",
  "district": "Downtown"
}

Example: Split World Countries

Input: Single GeoJSON with all world countries

Property: "ISO_A3" (ISO 3-letter code)

Output: 195+ files

  • USA.geojson
  • CAN.geojson
  • GBR.geojson
  • ...and so on

Tips

💡 Choose unique identifiers for clean splits (ISO codes, IDs)
💡 Check property values before splitting to avoid unexpected results
💡 Use admin_level for OpenStreetMap administrative boundaries
💡 Preview first to verify file count and distribution
💡 Name properties should be consistent across features

Technical Details

Input Format

  • GeoJSON FeatureCollection
  • Features with properties object
  • Any geometry type supported

Output Format

  • Individual GeoJSON files per unique property value
  • ZIP archive with all files
  • Filename based on property value (sanitized)

Limitations

  • Property must exist in all features (or will group as "undefined")
  • Maximum recommended: 1000 split files
  • Large files may take time to process

Frequently Asked Questions

Q: What happens if a feature doesn't have the split property?
A: Features without the property are grouped into an "undefined.geojson" file.

Q: Can I split by multiple properties?
A: Not directly, but you can split once, then split the results again by another property.

Q: How are filenames determined?
A: Filenames use the property value, sanitized to remove invalid characters (e.g., "/" becomes "_").

Q: Can I split very large files (>100MB)?
A: Yes, but processing may take time. For files >500MB, consider using command-line tools like GDAL.

Q: What if two features have the same property value?
A: They're grouped into the same output file (that's the whole point!).

Q: Can I split by numeric properties?
A: Yes, numeric values are converted to strings for filenames.

Q: Will splitting preserve coordinate precision?
A: Yes, all coordinates are preserved exactly as in the original file.

Q: How do I split OpenStreetMap data by country?
A: Use the "ISO3166-1" or "ISO3166-1:alpha2" property from OSM admin boundaries.