Categories

GeoJSON to KML Converter

Convert GeoJSON format to KML (Keyhole Markup Language) format

Key Facts

Category
Format Conversion
Input Types
textarea, text, checkbox
Output Type
text
Sample Coverage
4
API Ready
Yes

Overview

The GeoJSON to KML Converter is a streamlined utility designed to transform geographic data from GeoJSON format into KML (Keyhole Markup Language), ensuring your spatial data is ready for use in Google Earth and other mapping applications.

When to Use

  • When you need to visualize GeoJSON spatial data within Google Earth.
  • When migrating geographic datasets between different GIS software platforms.
  • When preparing location-based data for presentations or collaborative map sharing.

How It Works

  • Paste your GeoJSON code into the input field.
  • Specify a custom document name to organize your KML file.
  • Toggle the 'Pretty Print' option if you require human-readable, indented XML output.
  • Click the convert button to generate and download your KML file.

Use Cases

Importing custom map boundaries into Google Earth for site analysis.
Sharing project site locations with stakeholders who use KML-compatible software.
Converting web-based map exports into files suitable for offline GIS viewing.

Examples

1. Visualizing Site Boundaries

Urban Planner
Background
An urban planner has a GeoJSON file containing proposed zoning boundaries for a new development project.
Problem
The project team needs to review these boundaries in Google Earth, which requires KML format.
How to Use
Paste the GeoJSON coordinates into the input area, set the document name to 'Zoning_Proposal_2026', and click convert.
Example Config
documentName: 'Zoning_Proposal_2026', prettyPrint: true
Outcome
A clean, well-formatted KML file is generated, ready to be dragged and dropped directly into Google Earth.

2. Mapping Field Survey Points

Environmental Researcher
Background
A researcher collected GPS coordinates in GeoJSON format during a field survey.
Problem
The researcher needs to overlay these points onto satellite imagery in a desktop mapping application that only accepts KML.
How to Use
Input the GeoJSON data, keep the default settings, and generate the KML output.
Outcome
The researcher receives a valid KML file that correctly maps all survey points as placemarks.

Try with Samples

json

Related Hubs

FAQ

What is the difference between GeoJSON and KML?

GeoJSON is a JSON-based format for encoding geographic data structures, while KML is an XML-based format primarily used for displaying geographic data in Google Earth.

Can I convert multiple GeoJSON files at once?

This tool is designed to process one GeoJSON input block at a time.

What does the 'Pretty Print' option do?

It formats the resulting KML code with line breaks and indentation, making the XML structure easier to read and debug.

Is my data stored on your servers?

No, the conversion is performed locally in your browser, ensuring your geographic data remains private.

Will this tool work with complex GeoJSON geometries?

Yes, the converter supports standard GeoJSON geometry types including points, lines, and polygons.

API Documentation

Request Endpoint

POST /en/api/tools/geojson-to-kml

Request Parameters

Parameter Name Type Required Description
geojsonInput textarea Yes -
documentName text No -
prettyPrint checkbox No -

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-geojson-to-kml": {
      "name": "geojson-to-kml",
      "description": "Convert GeoJSON format to KML (Keyhole Markup Language) format",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=geojson-to-kml",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]