RICE Learn

Formats · 7 min read

KML vs Shapefile

By the RICE team · Published 30 September 2026 · Reviewed 14 October 2026

Both formats carry points, lines and polygons, and both open almost everywhere. But they were built for different people, and each quietly drops something the other keeps. Here is how to pick the right one before you hit send.

Where they came from

KML (Keyhole Markup Language) was created for the program that became Google Earth, and was adopted as an open OGC standard in 2008. It is XML: a readable text file that describes not just shapes but how to draw them — colours, icons, labels, pop-up balloons, even camera views and tours. Zipped with its icons, it becomes a .kmz.

The Shapefile was published by Esri in the early 1990s and became the de facto exchange format of desktop GIS. It is binary, fast to read, and understood by every GIS package ever written. It describes data, not presentation: there is no styling in a Shapefile at all.

A Shapefile is never one file

This catches people out constantly. A "Shapefile" is a set of files with the same name and different extensions, and they must travel together:

FileHoldsNeeded?
.shpThe geometryRequired
.shxAn index into the geometryRequired
.dbfThe attribute tableRequired
.prjThe coordinate systemOptional — but without it the layer may land in the wrong place
.cpgThe text encoding of the tableOptional — without it accented names can garble

Email only the .shp and the recipient gets nothing usable. Always zip the whole set. RICE reads a Shapefile as one .zip for exactly this reason.

What each one loses

Shapefile limits come from its 1990s dBase table:

KML limits come from being built for a globe viewer:

Side by side

KML / KMZShapefile
Opens in Google EarthYes, directlyOnly Google Earth Pro, via import
Opens in QGIS / ArcGISYesYes
Coordinate systemsWGS 84 onlyAny, declared in .prj
StylingBuilt inNone
Attribute typesMostly textTyped, but 10-character names
Mixed geometryYesNo
Files to sendOneThree to five, zipped

So which should you send?

If you are unsure, send both. A KMZ for viewing and a zipped Shapefile for working costs you one extra conversion and saves a round of emails.

Try it
Convert between KML and Shapefile

Drop either format into Convert. RICE warns you about field names that will be shortened, reprojects to WGS 84 for KML, and checks every feature made it across.

Open Convert
Keep reading What is GeoJSON? A practical guide South African topo sheets: what a reference like 2628AA means Cape datum to Hartebeesthoek94: why old layers sit 300 m off The SG 21-digit code: reading a South African land parcel key All guides →

Written and maintained by the RICE team at LocalID IQ Pty Ltd. Questions or corrections: info@rice.org.za. About RICE.