Live Online ConverterChannel: kmlgeojson

KML to GeoJSON Converter

Convert an XML-based KML file into a GeoJSON file.

Quickly translate XML-based Google Earth Keyhole Markup Language (KML) documents into standard, web-compatible GeoJSON formats. This tool helps remove nested XML complexities and outputs a clean coordinate hierarchy.

Drag file here to convert, or select file

Supported file extension: .kml • Max 50MB

Channel Tunnel: RAM Stream Mode
GDAL Driver Operational

Specification Rules

  • Migrate custom geographic overlays from Google Maps/Earth into web applications
  • Clean up nested XML tagging and convert to highly readable JSON objects
  • Pass route paths to mapping backends in coordinate structures
  • Visual style elements like custom icon colors and line weights are stripped
  • Nested folders inside KML schemas are flattened into a single list
  • Large tracking records containing many point coordinates are slow to parse

GDAL Direct Equivalent Terminal Command

sh console shell
$ogr2ogr -f GeoJSON output.geojson input.kml

Frequently Asked Queries

Are custom visual elements over Google Earth preserved?

No. KML visual stylings, icon mappings, and line colors are stripped. Only the raw geospatial geometries and standard descriptive parameters are saved.

Can I convert large zipped KMZ files directly?

KMZ is a zipped archive containing KML data. Currently, you need to unzip the KMZ locally and upload the inner KML file directly to this tool.

How are KML description HTML bubbles represented?

The plain text characters are extracted from CDATA sections and written into the standard 'Description' property of your output features.

Related Transformations Map