Skip to content
Menu
Esc

KML Viewer

This KML viewer shows a KML, KMZ, GPX or GeoJSON file on a map: drop it here to see its placemarks, paths and polygons, measure them and convert. Nothing is uploaded.

KML viewer tool

Drop a KML, KMZ, GPX or GeoJSON file here

Files are read on your device and never uploaded. Up to 10 files of 25 MB each.

Drop a file here or press Open files.

Basemap
Example

© OpenStreetMap contributors · OpenFreeMap © OpenMapTiles

Files, folders and items

Open a file to list its folders and items.

No file open yet.

Arrow keys move through the list, Right and Left open and close folders, Space shows or hides, Enter selects and zooms.

Details

Select an item in the list or on the map to read its name, description and measurements.

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.

Convert

Conversions keep names, descriptions as plain text, extended data (GeoJSON and CSV), colors and line widths (KML and KMZ), coordinates and altitude. They drop folders (each description gets its folder name), track times, icons and other styles.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Frequently asked questions

How do I open a KML file?

Drop the file on this page or press Open files and choose it. The viewer opens KML, KMZ, GPX and GeoJSON files, up to 10 at a time. Its folders and items appear in the list, the map draws them, and a click on an item shows its name, description and measurements. Nothing is uploaded: the file is read in your browser.

Is there a KML viewer for Windows or a phone app?

No download is needed. This KML viewer runs in any current browser on Windows, Mac, iPhone or Android, with no account or install. On a phone, press Open files and pick the file from your files app or a cloud drive; on a computer you can also drag it onto the page. The file is read on your device.

What is the difference between KML and KMZ?

A KMZ file is a zipped KML file. The zip can also hold images, icons or other files that the KML refers to. This viewer unzips the KMZ in your browser and reads the first KML inside. The images are not shown and nothing the file links to is downloaded, so you see the placemarks, paths and polygons.

How do I convert GPX to KML?

Open the GPX file here. The Convert bar switches to KML, so press Download. Tracks, routes and waypoints carry over with their names, descriptions and altitudes, and each item gets a color and line width. Track times and heart rate are not kept. The same bar also converts the file to KMZ, GeoJSON or CSV.

Can I open a KML file in Google Earth or Google Maps?

Yes. Google Earth opens KML and KMZ files directly. In Google Maps, use My Maps on a computer: it imports a KML file into a map layer, with limits on file size and up to 10 layers, and it skips folders, tours, time data, overlays and 3D models. Importing isn't available in the phone apps. This viewer needs neither.

Is my KML file uploaded?

No. The file is read on your device and never uploaded. Remote icons, images and network links in the file are never requested. Descriptions are shown as plain text, so a script in a file cannot run, and a link in a description opens only when you click it. File names and contents are never sent to analytics.

Why are some things in my file missing?

The viewer draws placemarks, paths and polygons. Ground overlays, screen and photo overlays, network links, 3D models and tours are not drawn, and a notice under the buttons counts them. Coordinates that are not valid numbers are skipped and counted too. To see a file that a network link points to, get that file and open it here.

  • GPX Viewer

    Open a GPX file to see its tracks, routes and waypoints on a map with the track length, then convert it to KML or GeoJSON.

  • Draw on Map

    Draw lines, shapes, circles, markers and text notes on a map, measure as you draw, and export KML or GeoJSON.

  • Measure Distance on a Map

    Click points on a street map to measure a straight-line path in miles or feet and kilometers or meters.

  • Map Multiple Locations

    Paste a list of addresses, ZIP codes or coordinates to plot them all on one map, then download the points as a CSV file.

  • Elevation Profile

    Draw a route or open a GPX or KML file to get its elevation profile with total climb and descent and more.

All radius and area tools

Built and checked by Handy Map Tools. Each tool names its method and data source, and every map page lists its credits.

Updated · How we measure · Report a problem