Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

KML to GeoJSON Converter

  • Free
  • Runs in your browser
  • No account needed

Convert KML to RFC 7946 GeoJSON in your browser without uploads. Paste KML or open a .kml file; choose pretty JSON or a single-line output. Example: convert a 15 KB KML file and copy the GeoJSON in one click.

KML to GeoJSON Converter runs in your browser. Your text is never uploaded or stored.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the KML to GeoJSON Converter

The KML to GeoJSON Converter turns KML XML into GeoJSON in your browser. You paste KML text or open a .kml file and the tool outputs a GeoJSON FeatureCollection. Choose a readable JSON layout or a single-line version. The tool copies <name>, <description> and <ExtendedData> into feature.properties and preserves coordinates as longitude, latitude and optional altitude. Nothing you type or open is uploaded to a server; conversion runs locally in the page. You can copy the result with one click or download the GeoJSON file. Web developers, GIS analysts, map authors and students use this tool when they need RFC 7946 GeoJSON for web maps or APIs. The page works offline after it loads in your browser.

How to use it

  1. 1Paste your KML XML into the input box or open a .kml file.
  2. 2Select GeoJSON or GeoJSON on one line.
  3. 3Click Convert to produce a GeoJSON FeatureCollection.
  4. 4Click Copy to copy the output or Download to save the file.
Advertisement

Worked example

<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Sample Point</name> <Point> <coordinates>-122.0822035425683,37.42228990140251,0</coordinates> </Point> </Placemark> </kml> converts to { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "name": "Sample Point" }, "geometry": { "type": "Point", "coordinates": [ -122.0822035425683, 37.42228990140251, 0 ] } } ] }

How it works

Text tool that runs in the browserOptions: GeoJSON, GeoJSON on one lineOne click copies the outputVisitors can also open a file and download the resultNothing typed is uploaded

Source: RFC 7946 GeoJSON standard (IETF)OGC KML standard. Last checked 7 November 2026.

What it is good for

  • Runs entirely in your browser so no data leaves your device.
  • Quick one-click copy plus a download option.
  • Choose readable JSON or compact one-line output.
  • Accepts KML text or .kml/.xml files only; KMZ handling is not provided here.
  • Very large files may hit browser memory limits and slow the page.
Advertisement

Questions people ask

Will my KML be uploaded to a server?

No. Conversion runs in your browser and nothing you paste or open is uploaded to a server.

Does the tool follow the GeoJSON standard?

Yes. The output follows RFC 7946 ordering: coordinates are longitude, latitude and optional altitude.

Are KML styles like icons and line colors preserved?

Styles are not natively part of GeoJSON. The converter copies name and ExtendedData into properties, but visual styles are not fully preserved.

Can I convert KMZ files here?

No. This tool accepts KML text or .kml/.xml files. KMZ zip containers are not handled by this page.

How are polygons with holes handled?

Inner rings in KML map to subsequent arrays inside GeoJSON polygon coordinates, so holes are preserved as per GeoJSON rules.

Does the tool change coordinate reference systems?

No. KML and GeoJSON usually use WGS84 lon/lat. If your source uses a different CRS you must reproject before or outside this tool.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement