KML Viewer
Open a KML or KMZ file on a map in your browser and see its folders, colors, icons, descriptions and data fields, without uploading the file.
How to open a KML or KMZ file
Add your file
Drop a KML or KMZ file on the map above, or anywhere on the page, or press Choose a file. GPX and GeoJSON files open the same way, and several files open together, each as its own layer. To use KML text instead, press Or paste KML, GPX or GeoJSON, paste the text into the box and press Open pasted map. Try a sample opens a small KML file built into the page.
See what is inside
The map zooms to the file. The panel, beside the map on a wide screen and over the lower part of the map on a narrow one, lists the file's folders as a tree with a tick box on each, and every placemark with its name and a small drawing of its kind and color. Untick a folder to hide it, or type in the Search names and descriptions box to narrow the list.
Open a placemark
Choose a placemark in the list, or click it on the map, to zoom to it and open its details: the description, its length or area, and its data fields under Properties.
Save or convert it
Press Export and choose Download GeoJSON, Download KML, Download KMZ, Download GPX, Download CSV or Download Shapefile (ZIP). The Export scope at the top of the menu sets what goes in: Everything visible, the Selected folder (press Choose folder beside a folder in the panel first) or the Selected feature, the placemark that is open.
What KML and KMZ files are, and how to open one in Google Earth, Google My Maps or on a phone: how to open a KML or KMZ file.
What the viewer shows from your file
A KML file can hold placemarks, paths, polygons and image overlays, sorted into folders, each with its own style and description. The viewer draws them as the file describes them: line colors, widths and transparency, fill colors and their transparency, and the icons and overlay images packed inside a KMZ. Folders start shown or hidden as the file sets them, and each has a tick box to change that.
Descriptions are shown as text, paragraphs, line breaks, lists, tables, bold and italic. A link in a description appears as its text with an Open link button, which opens the address in a new tab only when you press it. Images and frames in descriptions are not loaded, and a line under the description says how many were left out.
In the panel, a line under each file's name gives the facts: the kind of file and how many placemarks and folders it has (for example "KML · 214 placemarks · 6 folders"), then what was skipped, such as network links that were not followed or 3D models. Under it, a list gives every web address in the file that was not loaded. The full list of what is drawn and what is not is on how the viewer works.
The map under your file
The viewer starts on the Outline map: country borders and coastlines from Natural Earth's public-domain map data, and the names of 12 large cities from a list in the site's own code, drawn in your browser from files that are part of this site. It works offline, and it tells no server where your file is.
For streets, satellite pictures or a topographic map, press Base map and choose Streets from OpenStreetMap, Satellite (world) from EOX, or Satellite (United States) or Topographic (United States) from the U.S. Geological Survey. Each loads map pictures from that organization's server, and none loads until you choose it: in the menu, each one names its server before you press it. While one is on, a line under the map names the server again, with a Back to Outline button. Your choice is remembered, but the next time you open the site it still starts on Outline and shows a button to turn the remembered map back on, so opening the site requests no map pictures. What a remote base map sends.
Measure lengths and areas
Open a path to see its length in miles or kilometers, or a polygon to see its area in acres and square miles, or in hectares and square kilometers, with any holes in it taken out. The units button in the toolbar, which reads US or Metric, switches every figure and the scale bar at the bottom of the map, where the latitude and longitude under the pointer are shown too. Copy coordinates in a placemark's details copies its coordinates as text, one position per line, with longitude first as in KML.
KMZ, GPX and GeoJSON files
A KMZ file is a ZIP archive with one main KML file inside, usually named doc.kml, and the images and icons it uses. The viewer opens the KMZ as it is, with no unzipping first, and draws the icons and image overlays from inside it. To take the KML out of a KMZ, use KMZ to KML.
GPX files from GPS devices and apps open on the same map; on the GPX viewer page, the first track opens by itself with its distance and elevation profile. GeoJSON opens here too and is checked against the GeoJSON standard; the GeoJSON viewer page starts with the paste box open. Drop several files at once to see them together: each file is a layer in the panel, under its own name, with a tick box to show or hide it and a button to remove it.
Large files, no account
Google My Maps imports KML and KMZ files of up to 5 MB unzipped, after you sign in. Google Earth on the web imports a file as editable features only up to 10,000 features and 250,000 vertices, and makes anything larger a read-only data layer. This viewer needs no account and opens files of up to 200 MB with up to 2,000,000 vertices, drawn on a canvas. A browser test opens 100,000 points and checks that they can still be searched, zoomed and exported whole. The panel lists 75 placemarks of each file at a time, with a Show more features button.
View a KML file without Google Earth
The viewer runs in your browser, so there is nothing to install and nothing to sign in to. It is tested in Chrome, Firefox and WebKit, the engine of Safari, on a computer. If you have Google Earth or a Google account, the guide gives Google's own steps for Google Earth on the web, Google Earth Pro, My Maps and the Google Earth phone app.
Your file is not uploaded
Many online KML viewers send your file to their server and draw it from there. This one reads the file in your browser, on your own device, and the file never leaves it. With the Outline map on, the viewer keeps working with no internet connection once the page has loaded.
You can check this. Open your browser's developer tools and watch the Network tab while you open a file: no request carries the file, its name, its placemarks or its coordinates. The only requests to other servers are Google Analytics' script and its visit counts, and map pictures if you choose a base map other than Outline. How to check that your file stays on your device has the steps.
Frequently asked questions
Is this KML viewer free?
Yes. There is no charge, no account and no daily limit, because the file is opened on your own device, not on a server.
Are my files uploaded?
No. The file is read in your browser and never leaves your device. The site counts visits with Google Analytics, which never receives your file, its name, its placemarks or its coordinates. Map pictures are requested from another server only if you choose a base map other than Outline.
What is a KML file?
KML (Keyhole Markup Language) is a text format based on XML for geographic data: placemarks, paths, polygons and image overlays, with their names, descriptions and styles, made for Earth browsers such as Google Earth. It is an open standard, the OGC KML Encoding Standard, maintained by the Open Geospatial Consortium.
What is the difference between KML and KMZ?
A KMZ is a KML file zipped together with the images, icons and other files it uses, so that everything can be stored and sent as one file. Google's KML documentation says zipping typically makes the file ten times smaller. This viewer opens both; the guide compares them.
Can Google Maps open a KML file?
Through Google My Maps. Google's steps: on a computer, sign in to My Maps, open or create a map, add a layer and import the file (KML and KMZ files can be up to 5 MB unzipped). The map then appears in the Google Maps app on your phone under You, then Maps. The guide has each step.
Can I open a KML file in Excel?
Turn it into a table first. KML to CSV writes a row for each point and each vertex of a path or polygon, with the name, latitude, longitude, altitude, description and data fields as columns, in a CSV file that opens in Excel.
Can I convert a KML file to PDF?
Yes, through your browser's print dialog. Press Print in the map's controls: the printed page holds the map and, under it, the names of the placemarks that are shown. Then save it as a PDF from the dialog; on a Mac, Apple's steps are the PDF pop-up menu, then Save as PDF.
Why are some icons shown as plain dots?
An icon that the file gives as a web address is not fetched, because the request would tell that server someone opened the file. The viewer draws a plain dot in the style's color instead, and the line of facts in the panel counts them (for example "2 remote icons shown as pins"). Icons packed inside a KMZ are drawn as they are.