NewGeoMiner API is live! Process GIS Data programmatically.View Features & Pricing →
MapKmlTools Logo
MapKmlTools

KML to GeoJSON Converter — Free Online

Convert KML or KMZ files to GeoJSON format instantly. Perfect for Leaflet, Mapbox, and web mapping apps. Private — processed in your browser, no upload.
Pro is Only 3$ per Month. Premium Tool Access, Ad Free, Bulk Conversion!
Upgrade

Select KML/KMZ file

or drag and drop them here

Select File
Pro is Only 3$ per Month. Premium Tool Access, Ad Free, Bulk Conversion!
Upgrade
4.8(104 ratings)
Was this helpful?

What is KML to GeoJSON?

GeoJSON is the standard format for web-based mapping. While Google Earth uses KML, libraries like Leaflet, Mapbox GL JS, and OpenLayers permit GeoJSON.

This tool parses your KML structure and converts it into a flat, usable GeoJSON FeatureCollection.

When Should You Use This Tool?

  • You are building a web map and need data from Google Earth.
  • You are importing data into QGIS or ArcGIS Online.
  • You need to process map data in Python or JavaScript.

How to Use KML to GeoJSON

  1. Upload your KML/KMZ file.
  2. The map preview shows the data.
  3. Click 'Convert' to generate JSON.
  4. Copy the code or download the .geojson file.

Frequently Asked Questions

Q:How do I convert KML to GeoJSON?

Upload your .kml or .kmz file. The tool instantly converts all geometries (points, lines, polygons) and attributes to a valid GeoJSON FeatureCollection. Download the .geojson file or copy the raw JSON.

Q:Is KML to GeoJSON conversion free?

Yes, completely free with no file size limits and no account required.

Q:Does it upload my KML file to a server?

No. The entire conversion runs locally in your browser. Your spatial data never leaves your device.

Q:Does it preserve all my KML attributes and data?

Yes. All KML ExtendedData attributes (name, description, custom data fields) are mapped to the properties object of each GeoJSON Feature.

Q:Will GeoJSON work with Leaflet, Mapbox, or OpenLayers?

Yes. The output is standard RFC 7946 GeoJSON, fully compatible with Leaflet, Mapbox GL JS, OpenLayers, Turf.js, QGIS, PostGIS, and all modern web mapping libraries.

Q:Can I convert KMZ to GeoJSON?

Yes. Upload your .kmz file directly — the tool automatically extracts and converts the KML inside it.

Q:Why convert KML to GeoJSON?

GeoJSON is the standard format for web mapping. Libraries like Leaflet, Mapbox GL JS, OpenLayers, and frameworks like React Map GL all use GeoJSON natively. KML is primarily for Google Earth. Converting to GeoJSON lets you use your map data on any web platform.

Q:Is styling preserved in GeoJSON?

Basic styles (stroke color, fill color, line width) are preserved as properties in the GeoJSON output. Most web map renderers allow you to apply styles from these properties using expressions.

Q:Is my data uploaded to your servers?

No. The conversion runs entirely in your browser using JavaScript. Your KML file never leaves your device.

Q:What geometry types are supported?

All standard KML geometry types are supported: Points, LineStrings, Polygons, MultiGeometry, and nested folders. The output is a standard GeoJSON FeatureCollection.

Q:What file size limits apply?

KML files up to 50MB are supported for conversion. The resulting GeoJSON is typically similar in size to the original KML since both are text formats.

Pro is Only 3$ per Month. Premium Tool Access, Ad Free, Bulk Conversion!
Upgrade