KML viewer: how to view a KML file online
Drag the file onto the map or use the open button. RadiusMapTools detects the format from the file extension or, if the extension is missing, from the first lines of the file. Placemarks, paths and polygons appear at once, and RadiusMapTools summarizes the file: how many features it holds, the total length of its lines and the area of its polygons. KML stands for Keyhole Markup Language, named after Keyhole, the company whose viewer became Google Earth, and the format is still the default for a KML file from Google Earth or My Maps.
Because the file is read with your browser's file API, it does not travel to any server. That matters for property boundaries, client sites, utility lines or any data you would rather not upload to an unknown website.
KML, GPX and GeoJSON compared
KML was created for Google Earth and became an Open Geospatial Consortium standard, version 2.2, in 2008. It carries styling, folders and descriptions, which makes it the common export format for Google My Maps and many GIS tools. GPX 1.1, published by TopoGrafix in 2004, is the format of GPS units, watches and fitness apps, with waypoints, routes and recorded tracks with timestamps and elevation.
GeoJSON, standardized by the IETF as RFC 7946 in 2016, is the format of web maps and developers. It is compact and easy to read in code, and it requires WGS-84 longitude and latitude. All three store coordinates as longitude first, then latitude, which is the single most common source of "my points are in the ocean" problems.
Worked example: opening a GPX hike from a watch
Export a hike from your watch app as GPX and drop it here. A typical 2-hour hike recorded every second holds about 7,200 track points. RadiusMapTools draws the track, reports its length measured point to point on the ellipsoid, and lists any waypoints you marked. If the watch recorded elevation, those values stay in the data when you convert the file.
Want to share it with someone who uses Google Earth? Save it as KML. Want to load it into a web map or a script? Save it as GeoJSON. The coordinates are carried over unchanged.
Track lengths from GPX files usually run 1 to 3 percent longer than a mapped route, because GPS jitter adds tiny zigzags. That is the file being honest, not the viewer being wrong.
How to open a KML or KMZ file from Google Earth or My Maps
If you drop a KML or KMZ file on the map, a KML opens at once and a KMZ is caught with a short prompt, because a KMZ file is a zip archive that holds a doc.kml plus any icons or images. To open a KML that is packed inside a KMZ, rename the file from .kmz to .zip, extract it (right-click and choose Extract All on Windows, or double-click it on a Mac), and drop the doc.kml from the extracted folder here.
You can also skip the KMZ step at the source. In Google Earth Pro, choose File, then Save Place As, and pick KML instead of KMZ in the file type list. In Google My Maps, open the menu, choose Export to KML/KMZ, and tick the option to export a .KML file instead of a KMZ.
- KML file: opens directly with its points, lines and polygons.
- KMZ file: unzip first, then open the doc.kml inside.
- Network link KML: only a pointer to another server, so it appears empty.
What if the file will not open or looks wrong?
A KMZ file is a zipped KML. Rename it from .kmz to .zip, extract it, and open the doc.kml file inside. Network links in KML, which point to data on another server, are not followed, so a file that is only a network link will appear empty.
If features appear off the coast of Africa near 0°, 0°, the coordinates are probably missing or swapped. If a DXF drawing appears in the wrong place or at a tiny size, it was drawn in local CAD units such as feet from a site origin rather than in latitude and longitude, and needs to be georeferenced in CAD or GIS software first. Very large files, tens of megabytes, may be slow on phones because everything is processed in the browser's memory.
- Points near 0°, 0°: check for empty or swapped coordinates.
- Lines across the whole map: a track may cross the ±180° meridian.
- Old GeoJSON with a "crs" member: may not be in WGS-84.
KML and KMZ, GPX, GeoJSON: geo file formats at a glance
| Format | Standard | Coordinate order | Typical source | Opens here |
|---|---|---|---|---|
| KML | OGC KML 2.2 (2008) | lon, lat, alt | Google Earth, My Maps, GIS | Yes |
| KMZ | Zipped KML | lon, lat, alt | Google Earth | After unzipping |
| GPX | GPX 1.1, TopoGrafix (2004) | lat and lon attributes | GPS units, watches, fitness apps | Yes |
| GeoJSON | IETF RFC 7946 (2016) | lon, lat | Web maps, scripts, GIS | Yes |
| DXF | Autodesk CAD exchange | Drawing units | CAD site plans | Yes, if in lon/lat |
Methodology
How RadiusMapTools reads KML and GPX files (WGS-84 and open standards)
Files are read with the browser's File API and parsed locally: KML and GPX with the built-in XML parser, GeoJSON with the JSON parser and DXF with a lightweight entity reader. Every format is converted into a GeoJSON feature collection in WGS-84 longitude and latitude, which is what the map draws and what the summary measures.
Line lengths are summed segment by segment with Vincenty's inverse formula on the WGS-84 ellipsoid; polygon areas use an ellipsoidal equal-area method with holes subtracted. Conversion writes standard KML 2.2, GPX 1.1 or RFC 7946 GeoJSON. Styling that has no equivalent in the target format, such as KML icon styles in GPX, is dropped during conversion.
length = Σ Vincenty inverse(Pᵢ, Pᵢ₊₁); area = |outer ring| − Σ |holes| on the WGS-84 authalic surfaceFrequently asked questions
How can I view a KML file?
Drag it onto the RadiusMapTools map or use the open button. The points, lines and polygons appear immediately, with names, descriptions, lengths and areas, and the file is never uploaded.
How can I view a KML file online without installing anything?
Use a browser-based viewer like this one. It works on Windows, Mac, Chromebooks and phones, with no plug-in or account required.
What app will open a KML file?
Google Earth, QGIS, ArcGIS and Google My Maps all open KML. For a quick look without installing anything, this online KML viewer is the fastest option.
Can I open KML in Google Maps?
Not in regular Google Maps. Create a map in Google My Maps and import the KML as a layer, or view it here and in Google Earth.
What is the difference between KML and KMZ?
KML is a plain XML text file. KMZ is the same KML compressed into a zip archive, often with icons or images packed alongside it. Unzip a KMZ to get the doc.kml inside, which this KML viewer opens directly.
How do I open a GPX file?
Drop it onto the map. RadiusMapTools shows tracks, routes and waypoints, measures the track length, and can convert the file to KML or GeoJSON.
Can I open a KMZ file?
A KMZ is a zipped KML. Rename it to .zip, extract it, and open the doc.kml file inside with this viewer.
Official sources
- Open Geospatial Consortium — KML standard Official KML 2.2 specification.
- TopoGrafix — GPX: the GPS Exchange Format Home of the GPX 1.1 schema.
- IETF — RFC 7946, The GeoJSON Format GeoJSON specification, including WGS-84 and antimeridian rules.