We use cookies to understand how DevToolsHub is used and to improve your experience. You can choose which types of cookies to allow.
Convert KML, KMZ to GeoJSON and GeoJSON to KML. 100% client-side, no uploads.
Loading...
Loading...
KML (Keyhole Markup Language) is an XML-based format developed by Keyhole Inc. (later acquired by Google) for expressing geographic annotation and visualization. KML is the native format for Google Earth and is widely used for displaying geographic data in applications like Google Maps, Google Earth, and other GIS software. KML files can contain points, lines, polygons, 3D models, images, and styling information. KMZ is simply a zipped KML file (often with embedded images), which reduces file size and bundles resources together.
GeoJSON is an open standard format for encoding geographic data structures using JSON. It is the de facto standard for web mapping and is supported by every major mapping library, including Leaflet, Mapbox, D3.js, OpenLayers, Turf.js, and many others. GeoJSON supports points, lines, polygons, multi-part geometries, and collections of features, each with associated properties. Its JSON foundation makes it trivially easy to parse in any programming language and ideal for use in web APIs and JavaScript applications.
Converting between KML and GeoJSON bridges the gap between the Google Earth ecosystem (which uses KML) and the web mapping ecosystem (which uses GeoJSON). Whether you’re importing Google Earth data into a Leaflet map, exporting spatial data from a GIS pipeline into a web application, or migrating geographic annotations between systems, this converter handles the transformation accurately and instantly — all within your browser.
| Aspect | KML | GeoJSON |
|---|---|---|
| Format | XML-based | JSON-based |
| Primary use | Google Earth, GIS desktop apps | Web maps, APIs, JavaScript apps |
| File size | Larger (XML verbosity) | Smaller (JSON is compact) |
| Parsing | XML parser required | Native JSON.parse() |
| Styling | Built-in (icons, colors, labels) | External (handled by mapping library) |
| 3D support | Yes (altitude, extrude, models) | Limited (coordinates can have Z) |
| Compressed form | KMZ (zipped KML + resources) | Not standard (can be gzipped) |
This tool processes everything entirely in your browser. KML parsing uses the browser’s built-in DOMParser API. GeoJSON parsing uses native JSON.parse(). KMZ decompression uses JSZip, which runs entirely in the browser. Your geographic data, coordinates, and placemark information never leave your device and are never transmitted to any server. This makes it safe to use with sensitive or proprietary geographic datasets.
Loading...