What Is KML To GeoJSON Converter?
KML to GeoJSON Converter is a free online tool by TechnSols that turns KML files into GeoJSON in your browser, with no install or sign-up. You have a KML file from Google Earth, and the map tool you want to use next will not open it. KML works well in Google Earth, but many web maps, code libraries and data tools speak GeoJSON instead, so your places, lines and shapes stay locked inside a file the next tool cannot read. KML to GeoJSON Converter is a free online tool that turns a KML file into GeoJSON in your browser, so you can convert kml to geojson in a minute and move on with your map. It is the simple way to take a google earth kml to geojson result and use it anywhere GeoJSON is accepted.
KML is the Keyhole Markup Language, the XML format Google Earth uses for placemarks, paths and polygons. GeoJSON is a JSON format for geographic data, built for the web, and it stores points, lines and polygons with their properties in plain text that browsers and map libraries read easily. The OGC KML standard defines how KML describes places on Earth, and the GeoJSON specification defines the GeoJSON format in RFC 7946. This tool reads your KML and writes the same geography as GeoJSON, which is also why people call the job kml to json, since GeoJSON is JSON with geography inside it.
Some things do not carry over, and it is better to know them before you convert. KML styles, icons and colours are dropped, because GeoJSON has no style model of its own, so a red pin and a blue line both become plain geometry with properties. A third altitude coordinate is kept where your KML has one. NetworkLinks are not fetched, so a KML that only points at a web address will not bring that remote data along. The sample file used to test this tool holds two placemarks, one Point and one Polygon, and both convert cleanly with their names kept as properties.
How To Use KML To GeoJSON Converter
Using KML to GeoJSON Converter takes three simple steps, and you need no account and no sign up. The whole job usually takes less than a minute, and your file never leaves your device. If your track data starts life as a GPX file instead, the GPX to CSV tool turns GPS tracks into a table first.
Step 1: Choose Your KML File
Click Choose KML files and pick a .kml file from your device, or drop the file onto the box. The tool reads the first part of the file and checks it is real KML before it does any work, so a wrong file is refused at once with a plain message. A kml file to geojson online job starts here, with one file at a time, and you can convert another file straight after the first one finishes. If you need the reverse direction for a table of places, the CSV to GPX tool builds a GPS track from a CSV file.
Step 2: Click Convert To GeoJSON
Click the Convert to GeoJSON button and the tool parses the KML placemarks, paths and polygons in your browser and writes them out as a GeoJSON FeatureCollection, keeping each name and description as a property. The result shows as a list, with the file name and a Download button for the .geojson file. If you also work with raw GPS tracks, the GPX track simplifier trims extra track points before you convert the track.
Step 3: Download Your GeoJSON File
Click Download beside the file to save the GeoJSON, then open it in your map tool or code editor and check the places land where they should. The Convert button hides once the file is converted, and it comes back when you choose a new file. Keep the original KML safe, because the GeoJSON is a copy for the web, not a replacement for your Google Earth file.
Why Convert KML To GeoJSON?
KML is a fine format for Google Earth, but the wider web runs on GeoJSON. Converting your file opens it up to web maps, code and data tools that never learned to read KML, and it keeps your geography in a plain text format that any developer can open and check.
Use Your Places In Web Maps
Web map libraries such as Leaflet and MapLibre read GeoJSON directly, while KML needs an extra step or a plugin. Once your file is GeoJSON, you can drop it onto a web map, style it with code and share the map as a web page. That is the main reason people convert kml to geojson, and it is the fastest route from a Google Earth drawing to a map on a website.
Work With Your Data In Code
GeoJSON is plain JSON, so any programming language can load it, filter it and change it with a few lines of code. A KML file needs an XML parser and a good deal more care. Developers who build maps, dashboards and location apps start from GeoJSON because it fits straight into their code, and this tool gives them that starting point without a desktop GIS app.
Share Geography Without Google Earth
Not everyone you work with has Google Earth, and they should not need it just to see your places. A GeoJSON file opens in web viewers, code editors and GIS apps, and it can be pasted into many tools as text. Sending GeoJSON means the person at the other end can use your data at once, on any device, with no special app.
What Can You Do With KML To GeoJSON Converter?
KML to GeoJSON Converter fits the everyday jobs where a Google Earth file meets the wider web. The three situations below are the ones users describe most often.
Move A Google Earth Map To A Website
You drew places, paths and areas in Google Earth for a project, and now the project needs a web map. You convert the KML here, download the GeoJSON and hand it to your developer or your web map, and the same places appear on the site. If the coordinates need a different form first, the decimal degrees converter changes decimal degrees into degrees, minutes and seconds.
Prepare Map Data For Analysis
You need to count, filter or join your places with other data, and a table or a script is the right tool for that job. GeoJSON loads straight into code, so you can pull out every placemark, read its properties and run your checks. If the places must move into a projected grid, the UTM converter turns latitude and longitude into UTM coordinates.
Check Distances Between Your Places
Once your places are GeoJSON, you can load them into a map and measure the gaps between them, or work out which places sit closest together. The conversion keeps the coordinates exact, so the distances you measure from the GeoJSON match the ones in Google Earth. To work out a distance between two points, the GPS distance calculator gives you the answer in metres or kilometres.
Quality And Settings
There are no quality settings to choose, because the tool does not redraw your geography. It reads the coordinates from your KML and writes them into GeoJSON exactly as they are, so a point stays a point and a polygon keeps its shape. What matters is the state of the KML you start with, and these checks keep the output clean.
- Check the KML opens in Google Earth before you convert it.
- Keep placemark names short, because they become GeoJSON properties.
- Remove NetworkLinks first, since they are not fetched by this tool.
- Use WGS84 coordinates, which is what KML and GeoJSON both expect.
- Open the GeoJSON after download and confirm every placemark is there.
Coordinate order is one detail worth knowing: GeoJSON always writes longitude first, then latitude, while KML also stores longitude first, so the two formats agree and no swapping is needed. If a place lands in the wrong spot after conversion, check that the original KML used WGS84, because a file in another datum will be read as if it were WGS84.
How KML To GeoJSON Converter Converts Your File
When you choose a file, the tool first checks that it is a KML document, then it reads every placemark in the file with a KML parsing library that runs in your browser. Each Point becomes a GeoJSON Point, each LineString becomes a LineString, and each Polygon becomes a Polygon, with the name and description of the placemark stored as properties on the matching feature. The features are gathered into a single GeoJSON FeatureCollection, which is the standard container for a set of geographic features.
The library used here is togeojson, a small open source library built for exactly this job. It understands the KML geometry types that Google Earth writes, and it keeps a third altitude coordinate when one is present in the KML. Styles, icons and screen overlays are left out on purpose, because GeoJSON has nowhere to store them. Everything happens in your browser, and no file is ever uploaded to a server.
Privacy
Your files never leave your device. The conversion runs entirely in your browser, and nothing is uploaded to TechnSols or to any other server. There is no account and no sign up, and no copy of your map data is kept anywhere after you close the page.
Because nothing is uploaded, your places, routes and areas are never stored, shared or used for any other purpose. The only file your browser saves is the GeoJSON you ask it to download. Close the tab and the work is gone from memory.
Tips
A few small habits make every conversion smoother. Use this free kml to geojson tool the same way each time, and the job becomes routine.
- Keep one KML file per map, so the GeoJSON stays easy to use.
- Give every placemark a clear name before you export from Google Earth.
- Simplify very detailed polygons in Google Earth before converting.
- Test the GeoJSON in a web map viewer before you share it.
- Save the original KML as your master copy, and treat GeoJSON as the web copy.
If a placemark is missing from the output, check that it was a real placemark and not a NetworkLink or a screen overlay, because those are not converted. When the data needs to become a table instead of a map file, the JSON to CSV tool turns JSON data into a spreadsheet table. When a table needs to become JSON, the CSV to JSON tool does the reverse job. And when you need to check that a JSON file is valid, the JSON formatter tidies it up and shows any errors.
More Tools For The Same Job
These tools sit beside KML to GeoJSON Converter and cover the jobs that come just before or just after it.
You can also use the GeoJSON to KML tool, which turns GeoJSON files into KML.
- GeoJSON to KML Converter: turns GeoJSON back into KML for Google Earth.
- GPX to CSV Converter: turns GPS tracks into a table of coordinates.
- CSV to GPX Converter: builds a GPS track from a table of coordinates.
- GPX Track Simplifier: trims extra points from a GPS track.
- GPS Distance Calculator: measures the distance between two GPS points.
- Decimal Degrees to DMS Converter: changes decimal degrees into degrees, minutes and seconds.
- Latitude Longitude to UTM Converter: turns latitude and longitude into UTM coordinates.
- JSON to CSV Converter: turns JSON data into a spreadsheet table.
- CSV to JSON Converter: turns a spreadsheet table into JSON data.
- SHP to GeoJSON Converter: turns an ESRI shapefile into GeoJSON.
Frequently Asked Questions
These are the questions people ask most about turning a KML file into GeoJSON.
Is KML To GeoJSON Converter Free?
Yes, KML to GeoJSON Converter is free to use, with no account and no sign up. You can convert kml to geojson free as often as you like, and there is no watermark on the GeoJSON you download, because the output is a plain text file.
How Do I Convert KML To GeoJSON Online?
Choose your .kml file, click Convert to GeoJSON, and download the .geojson file. That is the whole job, and it runs in your browser, so your file is never uploaded. The result is a standard GeoJSON FeatureCollection that web maps and code libraries can read at once.
Do KML Styles And Icons Carry Over To GeoJSON?
No. GeoJSON has no style model, so KML colours, icons and line widths are dropped during conversion, while the geometry and the placemark names are kept. If the look of the map matters, style the GeoJSON again in your web map or map tool after converting.
Can I Convert A KML File With Altitude Data?
Yes. Where a KML coordinate has a third altitude value, it is kept as the third coordinate of the GeoJSON geometry. Flat KML files with only longitude and latitude convert to two coordinate GeoJSON, which is the normal form for most web maps.
Why Does My KML File Fail To Convert?
The most common reason is a KML file that only holds a NetworkLink, which points at data on the web instead of holding places itself, and this tool does not fetch remote links. The next most common reason is a file that is not KML at all, such as a KMZ archive or a plain text file, which needs its own tool.
Is KML To GeoJSON Converter By TechnSols Free?
Yes, KML to GeoJSON Converter by TechnSols is completely free to use. There is no account, no sign-up and no install, and you can convert as often as you like in your browser. Your files stay on your device, and the converted file you download has no watermark or usage limit.
KML to GeoJSON Converter exists for one simple job: take the places, paths and areas from a Google Earth file and hand them back as GeoJSON that the whole web can read. Choose your KML file, click Convert to GeoJSON, and download a file that drops straight into a web map, a script or a GIS app. Keep the original KML for Google Earth, and keep the GeoJSON for everything else.