KML to GeoJSON
Convert KML files to GeoJSON format — supports Points, LineStrings, and Polygons
KML Input
GeoJSON Output
Convert Google Earth KML files to GeoJSON format for use in web mapping libraries like Leaflet, Mapbox, and OpenLayers.
Key Features
- ✓KML file upload or paste
- ✓Point, LineString, Polygon support
- ✓Property preservation (name, description)
- ✓Pretty-printed JSON output
- ✓Copy to clipboard
- ✓Client-side processing
How to KML to GeoJSON Converter | Xonvert
- 1
Upload or paste KML
Upload a KML file or paste KML content directly.
- 2
Click Convert to GeoJSON
The tool parses KML and converts geometries and properties.
- 3
Review the output
Check the GeoJSON in the right panel for correctness.
- 4
Copy the GeoJSON
Use the copy button to get the result for your project.
Common Use Cases
- •Migrating Google Earth data to web maps
- •Converting KML for Leaflet/Mapbox
- •Extracting geographic data from KML files
- •GIS data format standardization
Frequently Asked Questions
Does it support KMZ files?▼
KMZ files are ZIP archives containing KML. Extract the .kml file from the KMZ first, then use this converter.
Are styles preserved?▼
Currently, geometry and properties (name, description) are preserved. KML styles are not converted as GeoJSON does not have a standard styling format.