MapTools
file convertersConverterFree · No signup

GeoJSON to KML File Converter

Convert GeoJSON FeatureCollections, Points, LineStrings, and MultiPolygons into Google Earth compatible KML placemarks and overlays.

From:
To:
Input (CSV)Paste or edit code
Output Result (GEOJSON)

Runs entirely in your browser — your inputs never leave this page.

How this tool works

  1. 1

    Iterates through GeoJSON feature geometry hierarchies.

  2. 2

    Maps geometries into valid KML <Placemark>, <Point>, <LineString>, and <Polygon> tags.

  3. 3

    Embeds feature properties into KML <ExtendedData> for display in Google Earth popups.

Common uses

  • Exporting web GIS polygons for presentation in Google Earth Pro.
  • Sharing drone flight boundaries with clients using Google Earth.
  • Converting open data city boundaries into KML files.

Frequently asked questions

Yes, standard stroke and fill colors defined in feature properties are mapped to KML Style tags.

More in File Converters

View all →
Worked example

Sharing Peak District Trailheads with a Walking Group

A walking club leader in Derbyshire plans the group's Sunday route around Edale and Kinder Scout. Her planning file is GeoJSON: six trailhead points, a proposed path as a line, and a polygon marking the bracken area to avoid after rain. Most of the group, though, only knows Google Earth, so she converts the file to KML before sharing it.

The conversion keeps every feature. The six trailheads become placemarks, and the names she stored in the GeoJSON properties, like Edale Car Park and Jacob's Ladder Foot, become the placemark names. Inside the KML, the Edale car park sits at about -1.816, 53.366, because KML, like GeoJSON, lists longitude before latitude. Nobody in the group has to think about that, since the converter already handled the order.

In Google Earth she gives the route line a strong red color, because KML uses its own styling rather than carrying over the colors from the GeoJSON. Then she saves the file at just a few hundred kilobytes and emails it to twelve walkers, who open it on phones and laptops alike with no special software.

She also runs the route through Google Earth's measuring tool once it is imported. The path comes out at about 8.5 miles with roughly 2,400 feet of total ascent, which lets her grade the walk honestly in the group message: a proper hill day, not a stroll. Two walkers who were unsure quietly upgrade their boots, which is exactly the kind of decision good information is supposed to trigger.

One member does not use Google Earth at all, so the leader shows her the other door into the same file: KML imports into Google My Maps as well, giving her the identical route in the map app she already knows. Same converted file, two familiar tools, and nobody is left peering at a format they cannot open.

The avoid-area polygon earns its keep in the same viewing session. In Google Earth it renders as a translucent patch on the hillside, and measuring the path with the detour around it brings the day to about 9.1 miles instead of 8.5. The leader can show the group exactly why the route bends, and the extra 0.6 of a mile is a shared decision made on Tuesday night rather than a muddy surprise at the fence line. She also makes sure the route line is set to drape over the terrain, so when members tilt the 3D view, the climb up Jacob's Ladder looks as honest as it will feel.

On Sunday morning the group gathers at the right car park because everyone could spin the 3D view the night before and recognize the valley. The GeoJSON stays on the leader's computer as the master planning file, and a fresh KML gets exported each time the route changes. By spring the club's shared drive holds a small library of these handouts, one per walk, and new members can open any of them in Google Earth to preview a route before committing their Sunday to it. The leader's planning work, done once in GeoJSON, keeps paying out walk after walk.

Common mistakes to avoid

  • Expecting styles to survive. Colors, line widths, and icons from your GeoJSON usually do not carry into KML. Plan to restyle the file after opening it in Google Earth.
  • Unnamed placemarks. If the name property is empty in your GeoJSON, Google Earth fills with blank or generic labels. Fill in names before you convert.
  • Sending a stale file. Routes change. An old KML still sitting in someone's inbox leads them to last month's start point, so date your file names clearly.

Pro tips

  • Keep the GeoJSON as your editable master and treat each KML as a one-way handout.
  • Test-open the KML yourself before sending it to the group.
  • Put the meeting point first in the file and give it the clearest name.
Geospatial Engineering Reference & Field Manual

GIS Files & Interoperability: Speaking Every Map Format

GeoJSON, KML, GPX, Shapefiles — what each format is for, how to convert between them without losing data, and how to fix the files that refuse to open. Written for GeoJSON to KML File Converter and the everyday mapping tasks around it.

1

Vector vs. Raster: The Two Tribes

Every map file belongs to one of two families. Vector formats store geometry as math: points with coordinates, lines as point sequences, polygons as closed rings. They scale forever, stay tiny, and carry attributes like names and populations. GeoJSON, KML, and Shapefiles are all vector.

Raster formats store grids of cells, like digital photos. Satellite imagery, scanned paper maps, and elevation models are raster. They capture continuous reality beautifully but balloon in size and pixelate when zoomed. GeoTIFF is the GIS world's raster workhorse.

Choose vector when your data is discrete things — stores, boundaries, routes. Choose raster when it is continuous — imagery, terrain, temperature surfaces. Converting vector to raster is easy (just draw it); going the other way needs tracing, by hand or with image-processing algorithms.

2

GeoJSON: The Web's Native Tongue

GeoJSON is a map format written as JSON, the same notation web developers use for data. A point looks like this — readable by humans and parseable by every browser with zero libraries. That simplicity made it the default for web maps.

{"type": "Point", "coordinates": [-74.006, 40.7128]}

Its structure is small but complete: Feature objects pair geometry with a properties dictionary, and FeatureCollections bundle many features into one file. The properties can hold anything — names, dates, measurements — which makes GeoJSON a fine carrier for analysis results, not just shapes.

GeoJSON has quirks to respect. Coordinates are always longitude-first, which trips up everyone once. It officially supports only the WGS84 datum, so reproject anything else before exporting. And it has no built-in styling — colors and icons live in a separate layer of your application, not in the file.

For big data, look at its cousins: newline-delimited GeoJSON streams features one per line for huge datasets, and FlatGeobuf packs the same model into a fast binary format. But for files under a few megabytes, plain GeoJSON remains unbeatable for simplicity.

This page shows the first two chapters. Read the complete this category field guide →