HomeMIDIMIDI Tutorials

Hexadecimal Tutorial

The simplest explanation of hexadecimal is this:

In "decimal" we have ten digits, 0 through 9. In "hexadecimal" we have sixteen digits, 0 through F. That is literally all there is to it. Everything else works exactly the same!

A point of clarification before the example. To differentiate between decimal and hexadecimal numbers, an "h" is appended to hexadecimal numbers. Hexadecimal is quite a jaw-breaker to repeat, so it is often simply called "hex".

Another point of interest is that hex numbers are usually presented as two digits, since one "byte" can have a hex value between 00h and FFh (0 through 255 decimal).

When counting in decimal, once we run out of digits we start combining them by putting a 1 to the left and starting at 0 on the right; thus 10 follows 9. In the same way, in hex once we run out of digits we do the same, thus 10h follows Fh.

Decimal : 0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16  17  etc.
     Hex: 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh 10h 11h etc.

Note that 10h is not said aloud as "ten" because it is not ten, it is sixteen! Generally hex numbers are said as the individual digits; thus 10h is "one zero hex".

To convert between decimal and hex is quite simple with the following chart:

Find the decimal number you want to convert and look at the top hex digit first then at the left hex digit and you have the hex equivalent!

Do the reverse to convert from hex to decimal, find the left hex digit on the top position and find the right hex digit along the left side; where the two meet is the decimal equivalent!

The more you work with hex the easier it will become.

If you know for a fact that I have made any mistakes above, please let me know.

Feed back on clarity and semantics will also be greatly appreciated.

Thanks, Eddie Lotter

Glossary MIDI Tutorials Roland System Exclusive Messages