From Mode S code to tail number

FoxCharlie
3 min readMay 8, 2021
From Mode S code to tail number

No tail number. After installing your first receiver and connecting it to main flight tracking sites — such as FlightRadar24 and FlightAware — once you start playing with the dump1090 feed by yourself, one of the most frustrating part is that you only get a 6 digit hex code — the Mode S code of the aircraft — and sometimes a flight number, but no more information about the aircraft (type, airline, origin, destination). You can access many of them through the flight tracking sites you are contributing too, but with a lot of limitations. How to get from the 6 digit mode-s code in hex format to the tail number / registration, aircraft type, airline…?

From Mode S code to tail number

There are quite a few solutions to get the tail number (or registration) of an aircraft from its Mode S code. Here are the solutions I have been using so far. It goes from manual search into online databases, downloading and installing big databases and finally using dedicated APIs to make that automatically. I made the codes I found over the years available, the links are listed below.

Manual lookup

Some websites have an extensive database of aircrafts, but they don’t have API and limit the use to a manual search:

- The Gatwick Aviation Society

- Airframes.org

- FlightRadar24 (if you are a feeder)

- Planefinder — just enter the mode-s code in hex format into the search box

- absbexchange — no real search solution, but simply replace XXXXXX by the mode-s hex code at the end of the URL (globe.adsbexchange.com/?icao=XXXXXX)

- Foxtrotcharlie — more than 500 000 aircraft available through the search page (civilian and military)

- MilRadioComms — over 80,000 military and about 280,000 civilian mode-s hexcodes in a searchable database

Most of them are pretty up to date, meaning their databases are updated regularly with new aircraft.

Downloadable databases

There are also some free databases available online that you can use locally. You need to download the file and import it into a MySQL database or use Excel to lookup for the code you are I retested in. This is a great place to start, but this is static: there are many new aircrafts registered every day, and these databases are getting obsolete very fast.

- FlightAirMap

- Opensky-network. There is even a Python library to make the best use of it.

- Planeplotter

Some databases are behind a paywall.

APIs

More interesting if you are into coding, are some available APIs.

- JoshDouch API

- FlightRadar24 API available in Python

- Foxtrotcharlie — more than 35 000 aircraft available through the API

Other APIs are available to get data about routes and airports. We will cover that in another post.

As usual, I very welcome your feedback if you know some other ways to get access to those databases. Even with all my efforts, I have more than 6000 Mode S codes that I was not able to identify, from all countries.

Also, be careful with the data you get from all these free sources. Data can be obsolete, there are many mistakes (you see them when you are using them for plane spotting). That great for a fun use, not really for a professional or business one. In case you need accurate data, you should register to paid services that keep their databases up to date.

--

--