An introduction to Bits, Bytes and Hexadecimal

Sometimes it’s easier to explain concepts by breaking them down into smaller pieces. This article will attempt to introduce bits, bytes and hexadecimal notation to the reader without becoming overcomplicated.

Binary and Bits

At their fundamental level, computers use a numeral system whose digits consist of only two possible values. These digits can either be zeros or ones.

This system is known as Binary. It may seem limiting at first, but any number can be represented in Binary. In most cases, you simply need more zeros and ones.

Binary digits have been given the nickname of Bits : a term built from combining the two words “Binary” and “digITS“.

Decimal Value Binary Equivalent
0 0
1 1
2 10
3 11
983 1111010111
1000000 11110100001001000000


Having ten fingers (or digits) on our hands, humans have made decimal the most popular numeral system in use by modern civilizations. Decimal consists of ten digits that we are all familiar with : 0,1,2,3,4,5,6,7,8 and 9.


A Byte consists of 8 bits and can represent any of 256 different values. Bytes were originally used as a convenient and Human-friendly way to represent text characters rather than having to use Binary.

Ascii (the Amercian Standard Code for Information Interchange) is an old standard of characters that requires 128 values to represent the entire character set. Although this could be accomplished using only 7 bits, later computers often used 8 bits and added their own characters beyond the Ascii characters. This allowed a single byte to represent 256 unique characters.

Historically, bytes have not always consisted of only 8 bits. An Octet was a more accurate term for 8 bits. Today however, 8 bit bytes are widely considered the unofficial standard.

Hexadecimal Notation

Binary consists of two numerical digits and is known as base 2. Decimal consists of ten digits and is known as base 10. Hexadecimal contains sixteen digits and is therefore known as Base 16.

Binary uses the zero and one not unlike decimal. Hexadecimal does as well, but is a superset of decimal. This means it uses the same digits as decimal (0,1,2,3,4,5,6,7,8,9) plus six more additional digits : A,B,C,D,E, and F.

Base 16
Base 10
Base 2
0 0 0
1 1 1
2 2 10
3 3 11
4 4 100
5 5 101
6 6 110
7 7 111
8 8 1000
9 9 1001
A 10 1010
B 11 1011
C 12 1100
D 13 1101
E 14 1110
F 15 1111

The table above contains all the digits of the hexadecimal, decimal and binary numeral systems. The digits that appear in bold are the unique digits for each of their respective systems.

As you can see, the number of binary digits required to match the value of the single hexadecimal digit of A is four. Even our trusty decimal system requires two digits to match hexadecimal digits A to F.

The purpose of hexadecimal is to provide a short hand for binary. You can describe the equivalent value of 4 bits using only a single hexadecimal digit. As a result hexadecimal is more compact. This was quite convenient for programmers of early 4 bit computers.

Another benefit of hex (hexadecimal) is realized when a programmer is faced with sifting through a lot of data. It is easier for the human eye to find a particular hex value than it is to find a matching pattern containing a long string of zeros and ones (binary).

Arguably the most common use of hexadecimal notation today comes in the form of describing color online using what is known as Webhex. We will be releasing an article describing Webhex in the near future. It will help to demonstrate how to use a pair of hexadecimal digits to represent one byte (which may contain up to 3 decimal digits).


  1. Elenora Heatwole says:

    I’m still learning from you, while I’m making my way to the top as well. I absolutely liked reading everything that is posted on your blog.Keep the stories coming. I loved it!

  2. Eufemia Emory says:

    I got what you mean , regards for posting .Woh I am thankful to find this website through google. “Being intelligent is not a felony, but most societies evaluate it as at least a misdemeanor.” by Lazarus Long.

  3. Otis Prince says:

    Absolutely composed content , Really enjoyed reading through .

  4. WOW just what I was searching for. Came here by searching for bit.

  5. Excellent web site you’ve got here. It’s hard to find quality writing like yours these days.
    I honestly appreciate people like you! Take care!

  6. taichouvik says:

    Nice easy to understand post. Very much appreciated.


  1. Visit This Link…

    […]Hi, I do think this is a great web site. I stumbledupon it 😉 I am going to revisit yet again since I bookmarked it. Money and freedom is the best way to change, may you be rich and continue to help others.[…]…

  2. Clicking Here…

    […]Everything is very open with a very clear description of the challenges. It was definitely informative. Your site is very helpful. Thank you for sharing![…]…

Speak Your Mind


Read previous post:
The Palette Color Matcher

Specify a Color and the Palette Color Matcher will help you find the closest match for that Color in the...