Convert KML to GeoJSON Online — Free & Instant
KML files from Google Earth need to be in GeoJSON format for use in modern web maps powered by Leaflet, Mapbox GL JS, or Turf.js. GeoJSON is also the format used by GitHub's automatic map rendering. Maparz converts KML and KMZ files to GeoJSON instantly, preserving all geometry and attribute data.
Converter
When to convert KML to GeoJSON
- Converting Google Earth KML to GeoJSON for Leaflet web maps
- Uploading KML exports to GitHub for automatic map rendering
- Using KML data with Turf.js or other GeoJSON-based tools
- Converting My Maps exports for use in web applications
How to convert KML to GeoJSON
- 1
Upload KML or KMZ
Drop your .kml or .kmz on the upload zone.
- 2
Select GeoJSON
GeoJSON is pre-selected for this page.
- 3
Download
The .geojson file downloads automatically. Open in geojson.io to verify.
About KML format
Keyhole Markup Language (KML) is an XML-based format developed for Google Earth and now maintained by the OGC. It is widely used in Google Maps, Google Earth, and many consumer-facing mapping applications. KML supports styled geometry, network links, folders, and time-based animations. It always uses geographic coordinates (WGS 84) and is stored as plain XML text. KMZ is simply a ZIP-compressed KML file, which can also include embedded images and other resources.
Strengths
- +Native in Google Earth and Google Maps
- +Supports rich styling and labels
- +Human-readable XML
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
Does the GeoJSON include KML placemark names?
Yes. KML placemark names are converted to a 'name' property in each GeoJSON feature.
Is KMZ supported?
Yes. Upload .kmz files directly — they are decompressed and converted automatically.
What CRS does the output GeoJSON use?
GeoJSON always uses WGS 84 (EPSG:4326). KML already uses WGS 84, so no reprojection is needed.