.KLM

KLM File

Misspelled KML (Keyhole Markup Language) File
Ask a question
QUICK ANSWER

A .klm file is almost always a .kml file with its last two letters transposed - the same Keyhole Markup Language geographic data, just with the wrong extension. Rename it from .klm to .kml, then open it in Google Earth, Google My Maps, or QGIS. No conversion tool is needed; the file contents are already correct KML.

Developer: Keyhole, Inc. / Google (KML maintained by the Open Geospatial Consortium) Category: GIS Files Open standard MIME: application/vnd.google-earth.kml+xml
OPENS ON Windows macOS Linux Android iOS Web
Related: .GPX · .GML · .KML · .SHP

On this page

19k+ extensions indexed
Last reviewed Jun 17, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the KLM file format?

A .klm file is almost always a .kml file whose extension letters were accidentally transposed - "kml" becoming "klm". There is no independently defined .klm format; the underlying data is Keyhole Markup Language (KML), an XML-based standard for storing and exchanging geographic information such as placemarks, paths, polygons, and image overlays.

KML was created by Keyhole, Inc. and became part of Google when the company was acquired in 2004. KML 2.2 was adopted as an Open Geospatial Consortium (OGC) standard in 2008; version 2.3 followed in 2015. Files are plain UTF-8 XML, beginning with <?xml version="1.0" encoding="UTF-8"?> and a <kml> root element with the namespace http://www.opengis.net/kml/2.2. Coordinates are expressed in WGS 84 as longitude,latitude[,altitude] tuples.

The fix is simple: rename the file from .klm to .kml, then open it in Google Earth Pro, QGIS, or any mapping tool. If the file is compressed, it would use the .kmz extension instead (a ZIP archive containing one or more .kml files).

Before renaming, open the file in a text editor to confirm it begins with <?xml and contains a <kml> element. In rare cases a .klm extension may belong to a completely unrelated application, in which case the XML check will immediately reveal the difference.

Related open geographic formats include .gpx (GPS Exchange Format) and .geojson.

Security & safety

RISK: LOW

A .klm file is plain XML with no executable code, so it is safe to open. The only KML caveats apply: a <NetworkLink> element can make the file fetch remote content from a URL when opened (a privacy/tracking vector - be cautious with files from untrusted sources), and shared map data can reveal a home address or routine movements. Confirm the file is really KML by opening it in a text editor before trusting it; if it isn't XML at all, it may belong to a different, unrelated program.

Format details

in a nutshell
FULL NAMEMisspelled KML (Keyhole Markup Language) Fileaka KLM file, KML typo
DEVELOPERKeyhole, Inc. / Google (KML maintained by the Open Geospatial Consortium)since KML: 2004 (Google acquired Keyhole); KML 2.2 became an OGC standard in 2008
CATEGORYGIS Files
MIME TYPEapplication/vnd.google-earth.kml+xml
TYPEAlmost always a mistyped .kml - XML text geographic data (or, if real, an arbitrary app file)
STANDARDOpen · royalty-free

Programs that open KLM files

Windows3 apps
Google Earth Pro (desktop) Free Rename the file from .klm to .kml, then File > Open in Google Earth Pro to load it onto the globe.
QGIS Open-source After renaming to .kml, Layer > Add Vector Layer to view it as GIS data and convert it.
Notepad / VS Code Open-source Open the .klm as text to confirm it's <?xml … <kml …> map data before renaming to .kml.
macOS2 apps
Google Earth Pro (desktop) Free Rename .klm to .kml, then File > Open to load the map.
QGIS Open-source Rename to .kml and add it as a vector layer to view/convert.
Linux1 app
QGIS Open-source Rename to .kml, then add as a vector layer (GDAL/OGR handles KML/KMZ).
Android1 app
Google Earth (app) Free Rename to .kml and open via the Projects menu to view it on the mobile globe.
iOS1 app
Google Earth (app) Free Rename to .kml and import through the Projects menu on iPhone/iPad.
Web2 apps
Google Earth (web) Free Rename to .kml, then in earth.google.com use Projects > Import KML file to view it in the browser.
Google My Maps Free Rename to .kml, create a new map and Import to view/edit the pins and lines.

Technical details

deep spec
Format natureMisspelled extension for KML (Keyhole Markup Language); no independent format definition exists - always a transposed spelling of .kml
Underlying file typePlain UTF-8 XML geographic data, identical in structure to a .kml file
MIME typeapplication/vnd.google-earth.kml+xml (same as KML; also accepted as application/xml or text/xml)
XML root element<kml> with namespace http://www.opengis.net/kml/2.2 (KML 2.2) or http://www.opengis.net/kml/2.3
File signatureStarts with <?xml at byte offset 0; <kml followed by a namespace attribute appears in the XML body
Coordinate systemWGS 84 - coordinates stored as comma-separated lon,lat[,alt] text tuples inside <coordinates> elements
Supported geometry typesPoint, LineString, LinearRing, Polygon, MultiGeometry - all expressed as child elements of <Placemark>
Document hierarchy<kml> > <Document> > <Folder> > <Placemark> (or NetworkLink / Overlay at any level)
Style elements<Style> and <StyleMap> blocks control icon image, color, line width, and polygon fill for each feature
Overlay typesGroundOverlay (georeferenced image), ScreenOverlay (HUD image), PhotoOverlay (360/panoramic image)
CompressionNone - this is raw XML; the compressed ZIP-wrapped equivalent uses the .kmz extension
Typical file sizeA few KB for simple placemarks up to several MB for datasets with many polygons or large coordinate arrays
Fix actionRename the extension from .klm to .kml; no re-encoding or conversion is required
KML version declared in fileSet by the xmlns attribute value - typically KML 2.2 (2008 OGC standard) or KML 2.3 (2015)
ReleasedKML: 2004 (Google acquired Keyhole); KML 2.2 became an OGC standard in 2008
Latest versionKML 2.3 (OGC, 2015) - '.klm' is not a separate format, just a transposed spelling of .kml
Open standardYes · royalty-free
Specificationwww.ogc.org

KLM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with KLM files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about KLM files.

Frequently asked questions

What is a .klm file?
It's almost always a misspelled .kml - a Keyhole Markup Language map file with the letters transposed. Rename it to .kml and open it in Google Earth or any mapping tool.
How do I open a .klm file?
Rename the file extension from .klm to .kml, then open it in Google Earth (desktop or web), Google My Maps, or QGIS. Since it's plain XML, a text editor can confirm it's map data first.
Is .klm different from .kml?
No - there is no separate .klm format. It's the same Keyhole Markup Language; the extension just has its last two letters swapped. Renaming to .kml fixes it.
Why won't Google Earth open my .klm file?
Google Earth looks for the .kml (or .kmz) extension. Rename the file to .kml and it will open normally. If renaming doesn't help, open it in a text editor to check it really is KML XML.
How do I convert .klm to .kml?
Just rename the file - change the extension from .klm to .kml. No conversion tool is needed because the contents are already KML.
My .klm file isn't map data - what is it?
Rarely, a program unrelated to maps may have used the .klm extension. Open it in a text editor: if it doesn't start with '<?xml … <kml', identify the application that created it instead of treating it as KML.

References

1OGC - KML standardwww.ogc.org
2Google - KML documentation & referencedevelopers.google.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.BINCD/DVD Disc Image (BIN/CUE)
6.DATProgram Data File (generic)
7.RPMSGRestricted Permission Message
8.MDMarkdown Document
9.NOMEDIAAndroid No-Media Marker File
10.TXTPlain Text File

Related extensions

.GPXGPS Exchange Format
.GMLGeography Markup Language
.KMLKeyhole Markup Language
.SHPEsri Shapefile (geospatial vector data)
.RTMAPCompeGPS / TwoNav Tiled Raster Map
.KMZKeyhole Markup Language Zipped (Google Earth)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z