To use this hex to binary converter tool, just type a hex value like 1E into the left field below, and then hit the Convert button. Therefore, you can convert up to 16 hex characters (max. value of 7fffffffffffffff).
Hex to binary conversion result in base numbers
This IP address converter takes an IP address in the dotted-decimal format and converts it into the corresponding binary, octal, hexadecimal and dword/decimal IP addresses. How to use the converter Enter the dotted-decimal IP address in the 'IP address' field located at the top and hit enter or click the 'Convert IP Address' button. Convert text to binary, decimal to octal, binary to hexadecimal & vice a versa online with BinaryTranslator.com binary converter online for free. Now, it's easy to convert text (ASCII) to binary with our tool. Free online binary to IP converter. Just load your binary and it will automatically get converted to an IP. There are no ads, popups or nonsense, just an awesome binary address to IP converter. Load a binary IP address, get a human readable IP address.
Hexadecimal System (Hex System)
The hexadecimal system (shortly hex), uses the number 16 as its base (radix). As a base-16 numeral system, it uses 16 symbols. These are the 10 decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the first six letters of the English alphabet (A, B, C, D, E, F). The letters are used because of the need to represent the values 10, 11, 12, 13, 14 and 15 each in one single symbol.
Hex is used in mathematics and information technologies as a more friendly way to represent binary numbers. Each hex digit represents four binary digits; therefore, hex is a language to write binary in an abbreviated form.
Four binary digits (also called nibbles) make up half a byte. This means one byte can carry binary values from 0000 0000 to 1111 1111. In hex, these can be represented in a friendlier fashion, ranging from 00 to FF.
In html programming, colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white whereas 000000 represents black.
Binary System
The binary numeral system uses the number 2 as its base (radix). As a base-2 numeral system, it consists of only two numbers: 0 and 1.
While it has been applied in ancient Egypt, China and India for different purposes, the binary system has become the language of electronics and computers in the modern world. This is the most efficient system to detect an electric signal's off (0) and on (1) state. It is also the basis for binary code that is used to compose data in computer-based machines. Even the digital text that you are reading right now consists of binary numbers.
Reading a binary number is easier than it looks: This is a positional system; therefore, every digit in a binary number is raised to the powers of 2, starting from the rightmost with 20. In the binary system, each binary digit refers to 1 bit.
How to Convert Hex to Binary
Converting from hex to binary is straightforward since hexadecimal numbers are simplified versions of binary strings. You just need to remember that each hex value will produce four binary digits.
- Step 1: Write down the hex number. If there are any, change the hex values represented by letters to their decimal equivalents.
- Step 2: Each hex digit represents four binary digits and therefore is equal to a power of 2. The rightmost digit equals to 20 (1), the next one equals to 21 (2), the next one equals to 22 (4) and the leftmost one equals to 23 (8). Write these numbers (8, 4, 2 and 1) below the hex values.
- Step 3: Determine which powers of two (8, 4, 2 or 1) sum up to your hex digits. For example, if one of your hex values is 10, this means 8 and 2 sum up to 10 (4 and 1 are not used). If your hex number is 2, only 2 is used; 8, 4 and 1 are not.
- Step 4: Write down 1 below those 8, 4, 2 and 1's that are used. Write down 0 below those that are not used.
- Step 5: Read the 1's and 0's from left to right to get the binary equivalent of the given hex number.
Let's apply these steps to the hex number (4FA)16
Hex to binary conversion examples
Related converters: Binary To Hex Converter
Hexadecimal to Binary Conversion Chart
Hexadecimal | Binary |
---|---|
1 | 00000001 |
2 | 00000010 |
3 | 00000011 |
4 | 00000100 |
5 | 00000101 |
6 | 00000110 |
7 | 00000111 |
8 | 00001000 |
9 | 00001001 |
A | 00001010 |
B | 00001011 |
C | 00001100 |
D | 00001101 |
E | 00001110 |
F | 00001111 |
10 | 00010000 |
11 | 00010001 |
12 | 00010010 |
13 | 00010011 |
14 | 00010100 |
15 | 00010101 |
16 | 00010110 |
17 | 00010111 |
18 | 00011000 |
19 | 00011001 |
1A | 00011010 |
1B | 00011011 |
1C | 00011100 |
1D | 00011101 |
1E | 00011110 |
1F | 00011111 |
20 | 00100000 |
21 | 00100001 |
22 | 00100010 |
23 | 00100011 |
24 | 00100100 |
25 | 00100101 |
26 | 00100110 |
27 | 00100111 |
28 | 00101000 |
29 | 00101001 |
2A | 00101010 |
2B | 00101011 |
2C | 00101100 |
2D | 00101101 |
2E | 00101110 |
2F | 00101111 |
30 | 00110000 |
31 | 00110001 |
32 | 00110010 |
33 | 00110011 |
34 | 00110100 |
35 | 00110101 |
36 | 00110110 |
37 | 00110111 |
38 | 00111000 |
39 | 00111001 |
3A | 00111010 |
3B | 00111011 |
3C | 00111100 |
3D | 00111101 |
3E | 00111110 |
3F | 00111111 |
40 | 01000000 |
Hexadecimal | Binary |
---|---|
41 | 01000001 |
42 | 01000010 |
43 | 01000011 |
44 | 01000100 |
45 | 01000101 |
46 | 01000110 |
47 | 01000111 |
48 | 01001000 |
49 | 01001001 |
4A | 01001010 |
4B | 01001011 |
4C | 01001100 |
4D | 01001101 |
4E | 01001110 |
4F | 01001111 |
50 | 01010000 |
51 | 01010001 |
52 | 01010010 |
53 | 01010011 |
54 | 01010100 |
55 | 01010101 |
56 | 01010110 |
57 | 01010111 |
58 | 01011000 |
59 | 01011001 |
5A | 01011010 |
5B | 01011011 |
5C | 01011100 |
5D | 01011101 |
5E | 01011110 |
5F | 01011111 |
60 | 01100000 |
61 | 01100001 |
62 | 01100010 |
63 | 01100011 |
64 | 01100100 |
65 | 01100101 |
66 | 01100110 |
67 | 01100111 |
68 | 01101000 |
69 | 01101001 |
6A | 01101010 |
6B | 01101011 |
6C | 01101100 |
6D | 01101101 |
6E | 01101110 |
6F | 01101111 |
70 | 01110000 |
71 | 01110001 |
72 | 01110010 |
73 | 01110011 |
74 | 01110100 |
75 | 01110101 |
76 | 01110110 |
77 | 01110111 |
78 | 01111000 |
79 | 01111001 |
7A | 01111010 |
7B | 01111011 |
7C | 01111100 |
7D | 01111101 |
7E | 01111110 |
7F | 01111111 |
80 | 10000000 |
Hexadecimal | Binary |
---|---|
81 | 10000001 |
82 | 10000010 |
83 | 10000011 |
84 | 10000100 |
85 | 10000101 |
86 | 10000110 |
87 | 10000111 |
88 | 10001000 |
89 | 10001001 |
8A | 10001010 |
8B | 10001011 |
8C | 10001100 |
8D | 10001101 |
8E | 10001110 |
8F | 10001111 |
90 | 10010000 |
91 | 10010001 |
92 | 10010010 |
93 | 10010011 |
94 | 10010100 |
95 | 10010101 |
96 | 10010110 |
97 | 10010111 |
98 | 10011000 |
99 | 10011001 |
9A | 10011010 |
9B | 10011011 |
9C | 10011100 |
9D | 10011101 |
9E | 10011110 |
9F | 10011111 |
A0 | 10100000 |
A1 | 10100001 |
A2 | 10100010 |
A3 | 10100011 |
A4 | 10100100 |
A5 | 10100101 |
A6 | 10100110 |
A7 | 10100111 |
A8 | 10101000 |
A9 | 10101001 |
AA | 10101010 |
AB | 10101011 |
AC | 10101100 |
AD | 10101101 |
AE | 10101110 |
AF | 10101111 |
B0 | 10110000 |
B1 | 10110001 |
B2 | 10110010 |
B3 | 10110011 |
B4 | 10110100 |
B5 | 10110101 |
B6 | 10110110 |
B7 | 10110111 |
B8 | 10111000 |
B9 | 10111001 |
BA | 10111010 |
BB | 10111011 |
BC | 10111100 |
BD | 10111101 |
BE | 10111110 |
BF | 10111111 |
C0 | 11000000 |
Hexadecimal | Binary |
---|---|
C1 | 11000001 |
C2 | 11000010 |
C3 | 11000011 |
C4 | 11000100 |
C5 | 11000101 |
C6 | 11000110 |
C7 | 11000111 |
C8 | 11001000 |
C9 | 11001001 |
CA | 11001010 |
CB | 11001011 |
CC | 11001100 |
CD | 11001101 |
CE | 11001110 |
CF | 11001111 |
D0 | 11010000 |
D1 | 11010001 |
D2 | 11010010 |
D3 | 11010011 |
D4 | 11010100 |
D5 | 11010101 |
D6 | 11010110 |
D7 | 11010111 |
D8 | 11011000 |
D9 | 11011001 |
DA | 11011010 |
DB | 11011011 |
DC | 11011100 |
DD | 11011101 |
DE | 11011110 |
DF | 11011111 |
E0 | 11100000 |
E1 | 11100001 |
E2 | 11100010 |
E3 | 11100011 |
E4 | 11100100 |
E5 | 11100101 |
E6 | 11100110 |
E7 | 11100111 |
E8 | 11101000 |
E9 | 11101001 |
EA | 11101010 |
EB | 11101011 |
EC | 11101100 |
ED | 11101101 |
EE | 11101110 |
EF | 11101111 |
F0 | 11110000 |
F1 | 11110001 |
F2 | 11110010 |
F3 | 11110011 |
F4 | 11110100 |
F5 | 11110101 |
F6 | 11110110 |
F7 | 11110111 |
F8 | 11111000 |
F9 | 11111001 |
FA | 11111010 |
FB | 11111011 |
FC | 11111100 |
FD | 11111101 |
FE | 11111110 |
FF | 11111111 |
In this video, we're going to be looking at Binary!
Ok so, in the last video, we looked at IP addresses. Now we're going to take it up a notch.
Binary is how computers process data. It's just a whole bunch of 1s and 0s.
You've likely seen or heard about binary, especially in those cheesy hacker or cybersecurity videos.
It can look intimidating at first, but don't worry, it's very simple.
IPv4 Address
An IPv4 address is 32 bits long. This means the address is made up of 32 binary digits. Each digit is called a bit.
The IP address contains 4 octets. Each octet contains 8 binary bits.
When we type in an IP address, the computer will convert that into binary. To fully understand how IP addresses work, we need to be able to do the same.
We're going to just use one octet for our conversation, and then the same process is repeated for the rest of the IP address.
Binary Chart
So here we have 8 binary bits. These bits can either be a 1 or a 0.
So how do we make numbers like 192 from 1's and 0's?
Well, each bit represents a value. That value doubles in size from right to left. This is called the power of 2.
Using this chart, we can see that each bit is assigned its own column. It's important to know, that 1 means on, and 0 means off. This means we can turn columns on or off, just by adding either a 1 or a 0.
So let's try it. All of our columns currently 0, which means they're all off.
What value does 8 0s give us? We'll, because all columns are off, there's nothing to add up, so our value is 0.
If we turn on the 1 column by adding a 1, what value does that give us? It gives us 1.
If we put a 1 in the 2 columns, this gives us a value of 2.
Pretty straight forward so far right?
Ok this time, let's turn on the 1 and 2 columns. What do we do here?
We need to add up all of the columns that have a 1 in it. So our value here would be 3.
Hopefully, that makes sense.
Let's try one that's a bit more difficult. Our binary value is 0 0 1 0 1 1 0 1
Again, we just need to add up all of our columns.
32 + 8 = 40
Ip Address Convert To Binary
40 + 4 = 44
44 + 1 = 45
So 45 is our number.
IPv4 Address
An IPv4 address is 32 bits long. This means the address is made up of 32 binary digits. Each digit is called a bit.
The IP address contains 4 octets. Each octet contains 8 binary bits.
When we type in an IP address, the computer will convert that into binary. To fully understand how IP addresses work, we need to be able to do the same.
We're going to just use one octet for our conversation, and then the same process is repeated for the rest of the IP address.
Binary Chart
So here we have 8 binary bits. These bits can either be a 1 or a 0.
So how do we make numbers like 192 from 1's and 0's?
Well, each bit represents a value. That value doubles in size from right to left. This is called the power of 2.
Using this chart, we can see that each bit is assigned its own column. It's important to know, that 1 means on, and 0 means off. This means we can turn columns on or off, just by adding either a 1 or a 0.
So let's try it. All of our columns currently 0, which means they're all off.
What value does 8 0s give us? We'll, because all columns are off, there's nothing to add up, so our value is 0.
If we turn on the 1 column by adding a 1, what value does that give us? It gives us 1.
If we put a 1 in the 2 columns, this gives us a value of 2.
Pretty straight forward so far right?
Ok this time, let's turn on the 1 and 2 columns. What do we do here?
We need to add up all of the columns that have a 1 in it. So our value here would be 3.
Hopefully, that makes sense.
Let's try one that's a bit more difficult. Our binary value is 0 0 1 0 1 1 0 1
Again, we just need to add up all of our columns.
32 + 8 = 40
Ip Address Convert To Binary
40 + 4 = 44
44 + 1 = 45
So 45 is our number.
Binary Conversion
Ok so now we've gone over the basics, let's bring in an IP address and convert it to binary.
Remember, there are 8 bits in each octet so we are going to do this one at a time.
The first number in our IP address is 192. So this is the number we need to generate from our binary bits.
We always start with the highest value we can. In this case 128, so we put a 1 in that column. That leaves us with 64 remaining and that just happens to be the next column. So we add a 1 there as well. Our binary value for 192 is 1 1 00 00 00
The next number in our IP address is 54. Again, we start with the highest number possible. This time, that's 32. That leaves us with 22, so we can add 16 as well. Then we have 6 left. We can get that by adding in the 4, and then the 2. So the binary value for 54 is 00 11 01 10
The next number is 103. We start at 64 because that is the highest we can use. Add a 32 in there, that gives us 96, so only 7 to go. We will add 4, 2 and 1. Meaning the answer is 01 10 01 11
And the last one to do is 29. So we need 16, 8, 4 and 1. Meaning our last binary value is 00 01 11 01
And we have now converted our IP address into binary.
Don't worry though, this isn't something you'll need to do all the time.
But it is extremely important you understand how this works as we progress.
If you're not great with maths, again don't worry. The more you practice; you will start to memorize this. Without thinking, you will know that 128 + 64 = 192.
Subnet Masks Bits
IP addresses are split into a network section and a host section. The way we know which bit is which is with a subnet mask.
Our IP is a class C address so we should know that the default subnet mask is 255.255.255.0
The way to see which part of an IP address is the network section is by looking at the subnet mask bits. Anytime you see a 1 value, this bit is the network section. Anytime you see a 0 it's the host section.
It may seem overkill with this example, but as we move on to subnetting, it's extremely important you understand how this works.
Now, instead of the full subnet mask, you will often see it written as a forward slash and then the number of network bits. In this case, instead of 255.255.255.0, we could write it as /24.
Binary To Ip Address Converter
Host Bits
Let's take a closer look at our host section. You can see we have 8 bits.
Thinking back to our chart, how many host addresses can we have with 8 bits? We can have all 0s, all 1s or anything in between. 255 is the number we get if we add all columns together. This means we have a total of 256 possible combinations. That's including 0.
There is a catch though, you cannot use the first or last IP address for a host. These are reserved. The first address (192.54.103.0) is the network address and the last address (192.54.103.255) is a broadcast address. So we only have 254 usable hosts.
So just remember, you cannot assign the first or the last address to a host.
OK, so that's the basics of binary.
We will be using this a lot as we go. Especially when we move on to subnetting.