How to Convert MS Excel to KML

Written by ken burnside Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Convert MS Excel to KML
Tagging things in Google Earth is fun, but a bit fiddly. (earth image by Orlando Florin Rosu from Fotolia.com)

KML is Google's Keyhole Markup Language, and is a variant of XML, used to provide coordinate information for Google Earth and similar geography applications. Converting existing data into KML is fairly straightforward, and there are a number of freely available Excel spreadsheets that will let you output KML files ready for import.

Skill level:
Easy

Other People Are Reading

Things you need

  • Excel 2003 or later.

Show MoreHide

Instructions

  1. 1

    Download the XLS2KML.xls spreadsheet file (the URL is in the References section). This file uses a VBA macro and Excel's XML export functionality to pull information from specific ranges of cells and put them into appropriate KML tags.

  2. 2

    Unzip the spreadsheet, then open it. Make sure you enable macros.

  3. 3

    Enter the name of the item you want to see on Google Earth in the Name column. Do not leave any Name columns blank between entries, as the script will use the first blank line in the Name column as the end of range indicator.

  4. 4

    Enter the latitude information in the appropriate column.

  5. 5

    Enter the longitude information in the appropriate column.

  6. 6

    Enter the description element into the appropriate column.

  7. 7

    Enter the altitude information into the appropriate column.

  8. 8

    Click on the button marked Create KML, and save the file to where you want it to be.

  9. 9

    Load the KML file into Google Earth, and then save the KML file from Google Earth. (Google Earth will sort the KML elements for you, by location, and alphabetise them, saving a lot of tedious cutting and pasting in a text editor).

  1. 1

    Download MapExcelData.xls from the URL in the References section. This file uses a VBA macro and Excel's XML export functionality to pull information from specific ranges of cells and put them into appropriate KML tags. Unzip the file and launch the spreadsheet.

  2. 2

    Enable macros (to use the full functionality of the sheet) by selecting "Yes" on the Excel security pop-up.

  3. 3

    Switch to the Data tab.

  4. 4

    Enter the latitude in the Latitude column.

  5. 5

    Enter the longitude in the Longitude column.

  6. 6

    Enter the other information in the other columns as appropriate. Only latitude and longitude are required; fill the others as you deem necessary.

  7. 7

    Press the button that says generate KML file. You will be prompted to save the KML file and give it a name.

  8. 8

    Upload the KML file to Google Earth.

Tips and warnings

  • If you already have name, latitude and longitude information recorded in another Excel spreadsheet, you can copy and paste it into the columns of XLS2KML and save yourself a lot of typing.
  • The second spreadsheet mentioned is somewhat more full-featured, and can support geocaching information, and more interactivity.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.