KML / KMZ File Viewer Online — View Google Earth Files on Map

Upload a .kml or .kmz file to instantly render your geodata on an interactive map — points, lines, and polygons with popup attribute windows. No software installation required. Open fullscreen ↗

Loading map…
Formats
Supports both .kml (plain text) and .kmz (compressed) files
Colour
Change the colour of all map features with the built-in colour picker
Attributes
Click any feature to see its name, description, and all stored attributes
Rate this tool:

View KML and KMZ Data on an Interactive Map

KML (Keyhole Markup Language) was originally created for a 3D earth visualisation product called Keyhole Earth Viewer. When Google acquired Keyhole Inc. in 2004 and relaunched the product as Google Earth, KML became the de-facto interchange format for geographic data across the entire Google ecosystem. Today virtually every mapping tool that connects to Google Earth or Google Maps can export KML — from saved projects and My Maps exports to GPS devices, drone flight planners, field survey apps, and government open data portals. If someone has sent you a .kml or .kmz file, they want you to see a map.

The traditional barrier was that viewing KML properly required Google Earth Desktop — a large application to install just to inspect a file. This free browser-based viewer removes that friction entirely. Upload any .kml or .kmz file and all its geometry — points, lines, and polygons — renders instantly on an interactive Leaflet map. KMZ archives are decompressed automatically inside the browser; nothing is ever uploaded to a server. You can change feature colours, switch basemaps, click any feature to inspect its stored attributes, and export the entire dataset as GeoJSON with one click.

Key Features of the KML / KMZ Viewer

  • KML & KMZ Support — upload .kml plain text files or .kmz compressed archives
  • Interactive Map — all geometries rendered via Leaflet with auto-zoom to data extent
  • Colour Picker — change the colour of all map features with a single click
  • Hover Highlight — features highlight in amber when hovered
  • Feature Popup — click any feature to see its name, description, and stored attributes
  • Basemap Switcher — Street, Satellite (Esri), and Terrain map styles with automatic fallback
  • Export as GeoJSON — download the loaded KML as a .geojson file
  • Drag & Drop — drag a file directly onto the map to load it
  • Fullscreen Mode — expand the map to fill the entire viewport
  • 100% Client-Side — your file never leaves your device

How to View KML / KMZ Data on Map — Step by Step

1Browse and select your KML or KMZ file

Click the "Upload KML / KMZ" button. A file browser will open — browse to your file location, select it, and press Open. The file loads automatically.

Browse and select your KML or KMZ file
2View your data on the map

After uploading, the map zooms to fit all features. Points, lines, and polygons are all rendered with the default red colour.

View your data on the map
3Change the feature colour

Click the colour swatch next to "Feature colour" in the toolbar. A colour picker will appear — choose any colour and all features update instantly.

Change the feature colour
4See the updated colours on the map

The map immediately reflects your chosen colour across all rendered features — useful for distinguishing layers when comparing datasets.

See the updated colours on the map
5Switch the basemap

Use the Street / Satellite / Terrain buttons to change the background map. Satellite view is useful for identifying real-world context behind your KML data.

Switch the basemap
6Explore with Satellite or Terrain basemap

Satellite imagery helps verify feature locations against real-world imagery; Terrain shows relief for elevation-related datasets.

Explore with Satellite or Terrain basemap
7Click a feature to view attributes

Click any point, line, or polygon on the map. A popup window opens showing the feature name, description, and all attribute data stored in the KML file.

Click a feature to view attributes

Key Differences Between KML and KMZ Files

Although KML and KMZ files are closely related, they serve slightly different purposes in how geographic data is stored and shared.

FeatureKML FileKMZ File
Full NameKeyhole Markup LanguageKeyhole Markup Zipped
Extension.kml.kmz
FormatPlain text (XML)Compressed (ZIP)
ContentsGeographic data — placemarks, paths, polygons, stylesKML file(s) plus linked images, icons, and overlays
File SizeLarger — uncompressedSmaller — ideal for sharing
EditableYes — open in any text editorMust unzip first to edit
Best UseSimple, lightweight maps or data sharingComplete map packages with multiple resources

A Brief History of the KML File Format

KML was originally developed by Keyhole Inc. in the early 2000s for their 3D Earth visualisation software, Keyhole Earth Viewer. In 2004, Google acquired Keyhole Inc. and rebranded the software as Google Earth, making KML the standard format for sharing geographic information such as placemarks, paths, and polygons. In 2008 the Open Geospatial Consortium (OGC) officially adopted KML as an international standard, ensuring compatibility across multiple GIS and mapping platforms. Today, KML and KMZ remain popular formats for sharing and visualising geospatial data across the web, mobile apps, and desktop mapping software.

Who Can Benefit from This Tool?

GIS ProfessionalsQuickly preview KML exports from GIS software before sharing with clients.
Google Earth UsersView and inspect KMZ project files saved from Google Earth in a browser.
Urban PlannersShare site or zone boundary KML files with stakeholders who lack desktop GIS.
ResearchersVisualise field data collected as KML placemarks and paths on an interactive map.
EducatorsDemonstrate geographic datasets to students without needing to install software.
DevelopersValidate KML output from applications before deploying to production maps.

Understanding the KML Data Model

KML is valid XML — open any .kml file in a text editor and you will find a structured hierarchy of elements. Understanding this structure helps you know what to expect when a file loads in the viewer.

At the top level is the <kml> root element, usually containing a <Document> or <Folder> that organises content into logical groups. Individual geographic features are defined as <Placemark> elements — each contains exactly one geometry type:

  • <Point> — a single coordinate pair, rendered as a marker on the map
  • <LineString> — an ordered sequence of coordinates forming a path or route
  • <LinearRing> — a closed loop used as the boundary of a polygon
  • <Polygon> — an area defined by an outer boundary and optional inner holes
  • <MultiGeometry> — a container for multiple geometry types within one Placemark

Attribute data — the equivalent of columns in a spreadsheet — is stored in <ExtendedData> blocks inside each Placemark, as key-value pairs. The click-to-inspect popup in this viewer reads and displays all ExtendedData entries stored in each feature.

Visual styling (stroke colour, fill colour, line width, point icon) is defined in <Style> and <StyleMap> elements embedded in the Document or referenced externally. This viewer applies a uniform colour override via the colour picker — useful when a received KML has very faint or conflicting styles that are hard to see against the basemap.

Where You Encounter KML Files in the Real World

Google Earth & Earth ProSave any project, placemark collection, or tour as .kml or .kmz via File → Save Place As.
Google Maps My MapsCustom maps built in My Maps can be exported as KML via the three-dot menu on the map.
Garmin GPS DevicesRoutes and saved tracks can be exported via Garmin BaseCamp or Garmin Connect as KML.
Drone Flight PlannersApps like DJI Ground Station and Litchi export flight paths and waypoints as KML.
Field Survey & Hiking AppsGAIA GPS, Avenza Maps, and OsmAnd export surveyed points, tracks, and areas as KML.
Government Open Data PortalsMany councils and agencies publish boundary and infrastructure datasets as KML alongside shapefiles.

KML vs GeoJSON — When to Use Each

KML and GeoJSON are both widely used for sharing geographic data on the web, but they serve different purposes. KML is self-describing: it bundles geometry, attributes, and visual styling in a single file, making it the natural choice for sharing a finished, styled map with non-technical recipients. GeoJSON is a lean JSON format that carries only geometry and attributes — styling is left to the rendering application. It is smaller, natively understood by browsers, and rendered automatically by GitHub when committed to a repository.

For web development and data pipelines, GeoJSON is almost always preferable. For sharing a visually styled map with someone who has Google Earth, KML is the better choice. The Export as GeoJSON button in this viewer makes it trivial to convert a KML file to GeoJSON in one step — no desktop software needed.

Frequently Asked Questions

Is my KML or KMZ file uploaded to a server?
No. All parsing and rendering runs entirely inside your browser. Your KML or KMZ file never leaves your device and is never transmitted to any external server — not even temporarily.
What types of KML geometry does the viewer support?
The viewer supports all standard KML geometry types: Point (placemark marker), LineString (path or route), LinearRing (polygon boundary), Polygon (filled area), and MultiGeometry (mixed types in one Placemark). NetworkLinks, GroundOverlays, and ScreenOverlays are not rendered.
Can I view KMZ files exported from Google Earth?
Yes. KMZ is a ZIP-compressed KML file. The viewer automatically decompresses the archive in the browser, extracts the embedded KML, and renders all features on the map. No manual unzipping is needed.
Why does my KML file show no features on the map?
This usually means the file contains only style definitions, NetworkLinks, or ScreenOverlays without any Placemark geometry. Open the file in a text editor and look for <Placemark>, <LineString>, or <Polygon> elements — if none are present, there is no renderable geometry. Some KML files are also empty templates or link to external data via NetworkLinks, which this viewer does not follow.
How do I export a KML file from Google Earth?
In Google Earth Pro (free desktop app): right-click the place, folder, or project in the left panel and select Save Place As. Choose KML or KMZ as the format and save to your computer. In Google Earth on the web: open the project, click the three-dot menu beside the project name, and select Export as KML.
How do I export a KML from Google Maps My Maps?
Open your My Maps project on maps.google.com. Click the three-dot menu icon next to the map name in the left panel, then select Export to KML/KMZ. You can choose to export the entire map or individual layers. Download the file and drop it into this viewer.
Can I export the KML as GeoJSON?
Yes. Once your file is loaded, click the GeoJSON button in the toolbar to download the entire dataset as a .geojson file. GeoJSON is natively supported by Mapbox, rendered automatically by GitHub, and importable into QGIS, ArcGIS, and most modern web mapping libraries.
Why is my KML displaying in the wrong location?
KML files always use WGS84 geographic coordinates (decimal degrees latitude and longitude) by default. Location errors are rare but can occur if the file was generated by software that wrote coordinates in the wrong order (longitude, latitude instead of latitude, longitude) or embedded a non-standard coordinate system. Check the raw coordinate values in a text editor — valid global latitude values are between -90 and 90, and longitude between -180 and 180.
Can I edit the attributes or geometry in this viewer?
This viewer is read-only — it is designed for inspection and export, not editing. To edit KML data or geometry, use Google Earth Pro (free) for visual editing, or QGIS (free, open-source) for full attribute and geometry editing with re-export to KML, GeoJSON, or shapefile.
What is the difference between KML and a Shapefile?
KML is a single XML text file that bundles geometry, attributes, and visual styling together — optimised for the Google Earth/Maps ecosystem and easy to share. A Shapefile is a set of at least three binary files (.shp, .dbf, .shx) developed by ESRI, dominant in desktop GIS workflows, with no built-in styling. KML is better for sharing finished styled maps; shapefiles are better for data exchange between GIS platforms. Both can be loaded and exported as GeoJSON from their respective viewers on this site.

Open Source & Credits

KML / KMZ Viewer Online — View Google Earth Files Free | Maplity