ADS-B message decoder
Every position on a flight tracker starts as a 112-bit radio message. Paste one below in hexadecimal and this tool takes it apart: who sent it, what kind of message it is, and the callsign, position, altitude or speed inside. Nothing is sent anywhere; the decoding happens in your browser.
8D4840D6202CC371C32CE0576098
format and capability · address · message · parity
- Format
- DF 17: ADS-B extended squitter from a Mode S transponder
- Length
- 112 bits
- Aircraft address
- 4840D6 · Netherlands what an address tells you →
- Error check
- Passed: the remainder is zero.
- Type code
- 4: Aircraft identification
- Callsign
- KLM1023
- Category
- No category sent
What is in a message
An ADS-B message is 112 bits long, which is 28 hexadecimal characters. The first five bits give the format, 17 for ADS-B from a transponder. Three bits of capability follow, then the aircraft’s 24-bit address, a 56-bit message field and 24 bits of parity. The first five bits of the message field are the type code, which says what the rest holds: 1 to 4 for identification, 9 to 18 for a position in the air with barometric altitude, 19 for velocity.
The address is the same six-character hex code a tracker shows beside each aircraft. The hex code lookup turns it into a country and, for American aircraft, a tail number.
Why a position takes two messages
The message field has room for 17 bits each of latitude and longitude, too few to place an aircraft anywhere on the globe. So positions are sent in a compact form that repeats across the Earth in zones, in two alternating versions called even and odd frames. One frame of each kind from the same aircraft, sent a few seconds apart, pins down a single spot. Paste both, and the tool combines them.
With only one frame the tool needs a rough idea of where the aircraft is. Enter a reference point, such as your own receiver, and it resolves the position, provided the aircraft is within 180 nautical miles of that point.
How altitude fits in 12 bits
In most messages one of the twelve altitude bits, called the Q bit, is set. The other eleven then count in steps of 25 feet, starting 1,000 feet below zero. In the “Position pair” example those eleven bits read 1,560, and 1,560 times 25, minus 1,000, is 38,000 feet.
The check at the end
The last 24 bits are a cyclic redundancy check. Divide the whole message by a fixed 25-bit pattern, 1FFF409 in hex, and an intact message leaves no remainder. The tool does the division and reports the result. A single flipped bit is enough to fail it, which is what the “Damaged message” example shows.
Where to find messages
A home receiver running dump1090 or readsb will print raw messages on request, each beginning with an asterisk and ending with a semicolon. The tool ignores both marks, so lines can be pasted as they are. How ADS-B flight tracking works explains the receivers, and the range calculator shows how far one can hear.
What it does not decode
Surface positions, aircraft status, target state and operational status messages are named and their raw fields shown, but not interpreted. Altitudes sent in the older 100-foot code are flagged and left alone. Short 56-bit messages are named by format only, because in most of them the aircraft’s address is folded into the parity bits and cannot be read directly.
How it was checked
The four examples are the worked examples in Junzi Sun’s open textbook on the subject, and the tool reproduces the book’s answers: the callsign KLM1023; a position of 52.2572° N, 3.9194° E at 38,000 feet; a ground speed of 159.2 knots on a track of 182.88° while descending 832 feet a minute; and a failed check on the damaged message.