Skip to content

KML to GeoJSON Converter

Convert KML (Keyhole Markup Language) from Google Earth to GeoJSON for use in web maps. Also supports creating KMZ (zipped KML) from your original KML file for convenient sharing.

What is KML?

KML (Keyhole Markup Language) is an XML-based format used by Google Earth and many mapping applications. It stores:

  • Points, Lines, Polygons: Vector geometries
  • Styles: Colors, icons, line widths
  • Descriptions: HTML content for popups
  • Time data: For animated features
  • 3D models: Buildings and custom 3D objects

What is KMZ?

KMZ is simply a zipped KML file (like a .zip but with .kmz extension). It's more compact and can include images, icons, and other assets alongside the KML.

How to Convert

KML → GeoJSON

  1. Upload your .kml file (drag-and-drop or browse)
  2. Preview the converted GeoJSON on the map
  3. Download the GeoJSON file

KML → KMZ

  1. Upload your .kml file
  2. Select "Create KMZ" option
  3. Download the compressed .kmz file

Conversion Details

What Gets Converted

  • Geometries: Points, LineStrings, Polygons, MultiGeometry
  • Properties: Name, description, and other KML attributes
  • Folders: Converted to feature collections
  • ⚠️ Styles: Basic style info is preserved in properties
  • ⚠️ 3D data: Altitude modes may be simplified

What Doesn't Convert

  • Network Links: External KML references
  • Screen Overlays: UI elements from Google Earth
  • Tours: Animated flyovers
  • Custom icons: Image URLs are preserved but files aren't embedded

Common Use Cases

  • Google Earth exports: Convert your saved places to GeoJSON
  • Field data: GPS tracks and waypoints from mobile apps
  • Collaboration: Share map data with non-Google Earth users
  • Web mapping: Use Google Earth data in Leaflet, Mapbox, etc.
  • Data analysis: Import into GIS tools that prefer GeoJSON

Why Convert to GeoJSON?

  • Web standard: Works with all modern web mapping libraries
  • Simpler format: JSON is easier to parse and manipulate than XML
  • Better performance: Smaller file size, faster parsing
  • Developer-friendly: Easy to inspect, edit, and debug

FAQs

Do KML styles convert to GeoJSON? Basic style information is preserved in the properties, but web maps typically use their own styling.

Can I convert KMZ files? Upload a KMZ—the tool will extract and convert the KML inside.

What coordinate system does KML use? KML always uses WGS84 (same as GeoJSON), so no projection conversion is needed.

Is my data uploaded? No—all conversion happens in your browser. Your files never leave your device.

Can I create KMZ from my KML? Yes! Upload your KML and select the "Create KMZ" option to generate a compressed KMZ file.

See Also