A KML file can hold a hike, a delivery zone, a drone flight plan or a set of property corners. This KML viewer online opens it without desktop software: the file is read on your device, drawn on a map, measured, and converted only when you ask. Press Open a sample to see every part of the page with made-up data first.
How to open a KML file
- Drop the file or press Open files. KML, KMZ, GPX and GeoJSON files work, up to 10 at a time and 25 MB each. Each file gets its own color, unless its items set their own.
- Check the list and the notice. The list shows each file, its folders and its items, with a letter for the type: P for a placemark, L for a line, A for an area. A notice under the buttons names anything the viewer skipped.
- Click an item. The details panel shows its name, folder, description, extended data and measurements. Zoom to moves the map to it, and Copy details copies the text.
- Turn files, folders or items on and off. Their boxes show or hide them on the map, and the totals line under the list counts only what is shown. The search box filters the list by name, folder or description.
- Convert and download. Pick a format and a scope (the selected item, the visible items or all of them), then press Download.
The list also works from the keyboard: the arrow keys move through it, Space shows or hides a row, and Enter selects an item and zooms to it.
KML, KMZ, GPX and GeoJSON: what is the difference?
KML is an XML language for showing geographic data in earth browsers such as Google Earth; the Open Geospatial Consortium maintains it as a standard. The four formats this page opens overlap a lot, but each one keeps different details.
| Format | What it holds | In this viewer |
|---|---|---|
| KML | XML with placemarks, lines, polygons, styles, folders and descriptions | Google Earth style files: folders, colors, descriptions and extended data are read |
| KMZ | A zipped KML, often with images or icons beside it | Unzipped in your browser; the first KML inside opens and the images are skipped |
| GPX | Tracks, routes and waypoints from GPS devices, often with times and elevation | Opens here too; it also opens in the GPX Viewer, which shows a track’s points and length |
| GeoJSON | Plain JSON geometry and properties, common in web maps | Properties show as extended data in the details panel |
Convert GPX to KML
Open the GPX file here: the Convert bar switches to KML for you, so you only press Download. Tracks and routes become KML lines and waypoints become placemarks, with their names, descriptions and altitudes. Each item keeps the color and line width it has on this map.
Track times, heart rate and other sensor data do not carry over, because the KML written here has no place for them. Keep the original GPX if you need them. The same steps turn a GPX into GeoJSON or CSV, and a KML or GeoJSON into GPX for a GPS device.
For an elevation chart along the track, open the same GPX in the Elevation Profile tool.
How the KML viewer works
Everything happens in your browser. The file is read with the browser’s own file reader, a KMZ is unzipped on your device, and a small parser walks the KML: folders, placemarks, styles and extended data. Nothing is uploaded, and nothing the file links to is requested. Remote icons become colored dots, and network links and overlay images stay unopened.
Descriptions in KML files often hold HTML. The viewer never puts that HTML into the page: it removes scripts, styles and tags, keeps the text and lists up to 10 web links, which open only when you click them. A file cannot run code here.
Conversions keep names, descriptions as plain text, colors and line widths (KML and KMZ), extended data (GeoJSON and CSV), coordinates and altitude. Folders are not written: each description gets its folder name instead. To make your own KML, draw on a map and download the drawing; to put a list of addresses on a map, use Map Multiple Locations.
Measuring in a KML file
A line’s length is the sum of its segments on the WGS84 ellipsoid, the earth model GPS uses. A polygon’s area is its outline minus any holes, and its perimeter is the length of the outline. Parts of a MultiGeometry are added up. Altitude is ignored, so a steep trail measures as its length on the map.
Measured on the WGS84 ellipsoid from the points in your file. Accuracy depends on the file’s data and the map imagery. This is not a land survey.
To measure a path you click out yourself, use the Map Distance Calculator. To see what lies within a set distance of a point, draw a circle on the Radius Map.
Understanding your results
| What you see | What it means | What to do |
|---|---|---|
| 12 placemarks, 3 lines (14.2 mi), 2 polygons (30.9 acres) | The totals of the items that are switched on | Untick items to leave them out of the totals and the download |
| Not shown: 2 network links | The file points to other files or images | Open those files separately |
| 3 coordinates were invalid and skipped | Some numbers in the file are not valid coordinates | Fix them in the app that made the file |
| Track times are missing after converting | GPX times have no place in the converted file | Keep the GPX file as well |
| Very large file: showing the first 100,000 features | Only the first 100,000 items open | Split the file into smaller files |
A KML file describes places; it is not a survey. The viewer reads common geometry and reports what it skipped, but it cannot repair a file with wrong coordinates. Check a converted file before you send it to someone who depends on it.