This page is for my programming projects related to ham radio.


ADIF to KML project

A fun project I'm working on is an ADIF to KML converter. It allows you to convert your ADIF log files into a KML format for viewing on Google Earth. I am writing this program in the Perl programming language, because of its speed in processing text files. Link to the actual perl script. Link to a text version of the perl script.


I am releasing this code under the GNU GENERAL PUBLIC LICENSE Copyright (C) 2009  Doug Phillips WE6Z
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
Contact the author for more information.

If you have perl installed on your machine just type:

perl nameoflog.adi

Most Linux machines come with some version of perl installed. If you are using windows try the Active Perl distribution.


It will then create a KML file with the same name with the .kml extension on the end of the file name.

If you have google earth installed, just double click the KML file and it should show up with little pins for each contact on the earth.


This program works with the ADIF format.

To view ADIF format specifications


The ADIF file format does not specify a minimum required set of fields for log data. But a record should contain at least :


My perl program keys on the fields <STATE: and <DXCC: not all logbook programs export these two fields, but downloading your adif formatted log from LOTW with details should work.


Currently if both of those fields are missing a default location of 0,0,0 is generated in the KML file.


This program is a work in progress. I plan to add support for records that don't contain one of these fields.


Feel free to give me suggestions. Email me at mycall at