KML to Interactive HTML Map
Turn a KML file into one standalone HTML map — placemarks become clickable markers, paths become lines, and polygons become colored areas. The exported file inlines the map engine, styles and all features, so it double-clicks open and works offline with zero external requests. Drop in .kml files from Google Earth, Google My Maps, QGIS or GPS tools — including MultiGeometry and gx:Track. Everything runs locally; your file is never uploaded.
What Is a KML File?
KML (Keyhole Markup Language) is an XML format for geographic data — it is what Google Earth and Google My Maps export when you save your pins, routes and areas. A KML file stores Placemarks: named points, lines (paths) and polygons, optionally with descriptions and custom data fields.
The catch is that KML usually needs a desktop application to open: Google Earth, QGIS or a CAD tool. This page replaces that — drag in a KML file and see it on a map instantly, without installing anything. If you need to share the result, export it as a single HTML file the recipient can open in any browser, online or offline.
KML Fields This Tool Reads
| KML part | How it is used | Required? |
|---|---|---|
Placemark > name | Marker label and popup title | Optional |
Placemark > description | Popup text (HTML is stripped) | Optional |
Point · LineString · Polygon | The geometry — at least one per Placemark; coordinates use longitude,latitude order | ✅ Yes |
MultiGeometry | Split into one feature per shape | Optional |
ExtendedData > Data | Custom fields shown in the popup | Optional |
gx:Track | GPS tracks, drawn as lines | Optional |
How to Convert KML to an HTML Map
- Drop your .kml file — drag & drop, or click to browse. Placemarks inside Folders are found automatically, and each Placemark's name, description and custom data become popup fields.
- Check the summary — the status bar lists how many features and which geometry types your file contains. MultiGeometry placemarks are split into their individual shapes.
- Preview the map — points render as colored markers, paths as polylines, and polygons as translucent fills. The view auto-frames everything.
- Pick a basemap — "Offline (no basemap)" keeps the export fully self-contained; OSM street tiles or satellite imagery are available for online viewing.
- Download single HTML — one
.htmlfile containing everything. Double-click it, email it, or host it anywhere.
View KML Without Google Earth
Google Earth is a heavyweight install, and it isn't available on every platform. For the common case — "I just want to see what's in this KML" — a browser tab is enough. Drop the file above and the map renders in seconds, with no account, no install and no upload. That also makes this page safe for sensitive data: the KML never leaves your device, so internal site plans, customer locations or field data stay private.
Working with .kmz (the zipped KML format)? Use the KMZ to HTML map tool instead — it unpacks the archive in your browser. Coming from a Garmin device? GPX, TCX and FIT files are covered too.
Features
- All core KML geometry — Point, LineString, Polygon (with holes), MultiGeometry and gx:Track all render correctly.
- Folder-aware — Placemarks nested inside Document/Folder hierarchies are all picked up.
- ExtendedData becomes popups — custom
<Data>fields, names and descriptions show when you click a feature. - Zero dependencies in the export — the map engine, styles and your features are inlined into one HTML file. No CDN, no tracking, no expiry.
- Works offline — export in "no basemap" mode and the file opens on a plane, on a USB stick or in an air-gapped network.
- Free, no account — unlimited preview, exports the first 1,000 features, and no data ever leaves your browser.
FAQ
Can I view a KML file without Google Earth?
Yes — that is exactly what this page is for. Drop the .kml file into the zone above and it renders as an interactive map in your browser: no Google Earth, no QGIS, no install of any kind. You can then export the map as a standalone HTML file to share.
What's the difference between KML and KMZ?
KMZ is simply a ZIP archive containing one or more KML files (plus optional images and icons). This tool reads plain .kml text; for .kmz archives use the KMZ to HTML map tool, which unzips them locally in your browser.
My placemarks have custom data fields — are they preserved?
Yes. KML ExtendedData entries (<Data name="…">) are turned into popup fields alongside the placemark name and description. Click any feature on the preview or in the exported map to see them.
Does it handle gx:Track and MultiGeometry?
Yes. GPS tracks recorded with the Google KML extension (gx:Track) are converted to line features, and MultiGeometry placemarks are split into one feature per shape — a placemark with a point plus a path becomes two map features sharing the same name and data.
Is the KML uploaded anywhere?
No. The file is read and parsed entirely inside your browser — nothing is sent to any server, and the exported HTML is generated locally as well. You can even use this page with the network tab open and watch that no request carries your data.
Can the exported map be viewed offline?
Yes — choose "Offline (no basemap)" before exporting and the HTML file is fully self-contained: double-click it anywhere (no internet, no server) and your points, lines and polygons still render. Basemap tiles are only needed if you pick OSM or satellite imagery.