Binary, Hex, Decimal, Octal, ASCII, Text Converter
Being a student, developer, freelancer, IT expert, coder, and data programmer, we always need to convert one unit into another. Unlike other tools offering a single format conversion, this online converter allows you to quickly convert between Binary, Hexadecimal, Decimal, Octal, ASCII, and Text formats. You can convert each of these formats into one another with just a single click.
Using this Tool
Step 1: There are two ways to input your data/text. One is to type or paste the text. Or “Choose File” option to upload your file from the device.
Step 2: Choose the format (from drop down menu) that you want to convert from. For example you may choose “Binary”.
Step 3: Choose the format (from drop down menu) that you want to convert to. For example you may choose “Text”.
Step 4: Click the “Convert” button, this will convert the “Binary” units/numbers into “Text”.
Step 5: Click the “Copy” button to get the converted text. Alternatively, use the “Download File” button to download the converted text into your device.
Converting Binary to Text
It involves translating binary code (sequences of 0s and 1s) into readable text characters using a specific encoding scheme, such as ASCII (American Standard Code for Information Interchange). Let see how the process works
Suppose we have the binary sequence: 01001000 01100101 01101100 01101100 01101111 (which represents the word “Hello” in binary).
Break into 8-bit groups: Binary code is often grouped into sets of 8 bits (1 byte) since many encoding schemes, like ASCII, use 8-bit characters. In our example, we have five 8-bit groups: 01001000, 01100101, 01101100, 01101100, and 01101111.
Convert to Decimal: Convert each 8-bit group to its decimal equivalent. For instance:
01001000 = 72
01100101 = 101
01101100 = 108
01101100 = 108
01101111 = 111
Lookup in ASCII Table: Use the ASCII table to find the character corresponding to each decimal value. For example:
72 corresponds to the letter ‘H’
101 corresponds to ‘e’
108 corresponds to ‘l’
111 corresponds to ‘o’
Combine Characters: Put the characters together to form the text: “Hello.”
Converting Binary to Decimal
Converting binary to decimal involves translating a binary number into its equivalent decimal representation.
Let’s take the binary number: 110101.
Step 1: Write Down the Binary Number: Start by writing down the binary number you want to convert. In our example, it’s 110101.
Step 2: Assign Place Values: Assign place values to each bit in the binary number. The rightmost bit corresponds to 2^0 (which is 1), the next bit to the left corresponds to 2^1 (which is 2), the next to 2^2 (which is 4), and so on.
Step 3: Calculate Decimal Equivalent: Multiply each bit by its corresponding place value and sum up the results. For our example:
1 * 2^0 = 1
0 * 2^1 = 0
1 * 2^2 = 4
0 * 2^3 = 0
1 * 2^4 = 16
1 * 2^5 = 32
Step 4: Add Up the Results: Add up the values from step 3:
1 + 0 + 4 + 0 + 16 + 32 = 53
So, the binary number 110101 is equivalent to the decimal number 53.
Converting Binary to Octal
The octal uses digits from 0 to 7.
Example of binary number: 10111010.
Step 1: Write Down the Binary Number: Begin by writing down the binary number you want to convert. In our example, it’s 10111010.
Step 2: Group into 3-Bit Segments: Start from right and group the binary digits into sets of three. If the leftmost group has fewer than three digits, you can add leading zeros like below:
101 110 10
Step 3: Assign Place Values: Assign place values to each group of three bits. The rightmost group corresponds to 2^0 (which is 1), while the next group to the left corresponds to 2^3 (which is 8), and the next to 2^6 (which is 64), and so on.
Step 4: Calculate Decimal Equivalent: Convert each group of three bits to its decimal equivalent. See the below example to understand.
101 = 1 * 2^2 + 0 * 2^1 + 1 * 2^0 = 5
110 = 1 * 2^2 + 1 * 2^1 + 0 * 2^0 = 6
10 = 1 * 2^1 + 0 * 2^0 = 2
Write Octal Digits: Write down the decimal equivalents from step 4 which are 5 6 2.
So, the binary number 10111010 is equivalent to the octal number 562.
Converting Binary to Hexadecimal
Hexadecimal uses digits from 0 to 9 and letters A to F.
Binary number as an example: 110101110010.
Step 1: Write Down the Binary Number: Start from right, and write the complete binary number.
Step 2: Group into 4-Bit Segments: Group the binary digits into sets of four starting from the right. If the leftmost group has fewer than four digits, you can add leading zeros as shown below:
1101 0111 0010
Step 3: Assign Place Values: Assign place values to each group of four bits. The rightmost group corresponds to 2^0 (which is 1), the next group to the left corresponds to 2^4 (which is 16), the next to 2^8 (which is 256), and so on.
Step 4: Calculate Decimal Equivalent: Convert each group of four bits to its decimal equivalent. For our example:
1101 = 1 * 2^3 + 1 * 2^2 + 0 * 2^1 + 1 * 2^0 = 13
0111 = 0 * 2^3 + 1 * 2^2 + 1 * 2^1 + 1 * 2^0 = 7
0010 = 0 * 2^3 + 0 * 2^2 + 1 * 2^1 + 0 * 2^0 = 2
Step 5: Write Hexadecimal Digits: Convert the decimal equivalents from step 4 to their hexadecimal representations. In hexadecimal, numbers from 0 to 9 are represented as usual, and numbers from 10 to 15 are represented as A, B, C, D, E, and F, respectively. For our example:
13 = D
7 = 7
2 = 2
So, the binary number 110101110010 is equivalent to the hexadecimal number D72.
Converting Binary to ASCII
Use the below ASCII conversion table which allows you to convert the ASCII characters not only into Binary, but also Decimal, Octal, Hex, and Text too.
Binary, Hex, Decimal, Octal, ASCII, Text Conversion Table
ASCII Character | Decimal | Binary | Octal | Hexadecimal |
---|---|---|---|---|
NUL | 0 | 00000000 | 000 | 00 |
SOH | 1 | 00000001 | 001 | 01 |
STX | 2 | 00000010 | 002 | 02 |
ETX | 3 | 00000011 | 003 | 03 |
EOT | 4 | 00000100 | 004 | 04 |
ENQ | 5 | 00000101 | 005 | 05 |
ACK | 6 | 00000110 | 006 | 06 |
BEL | 7 | 00000111 | 007 | 07 |
BS | 8 | 00001000 | 010 | 08 |
HT | 9 | 00001001 | 011 | 09 |
LF | 10 | 00001010 | 012 | 0A |
VT | 11 | 00001011 | 013 | 0B |
FF | 12 | 00001100 | 014 | 0C |
CR | 13 | 00001101 | 015 | 0D |
SO | 14 | 00001110 | 016 | 0E |
SI | 15 | 00001111 | 017 | 0F |
DLE | 16 | 00010000 | 020 | 10 |
DC1 | 17 | 00010001 | 021 | 11 |
DC2 | 18 | 00010010 | 022 | 12 |
DC3 | 19 | 00010011 | 023 | 13 |
DC4 | 20 | 00010100 | 024 | 14 |
NAK | 21 | 00010101 | 025 | 15 |
SYN | 22 | 00010110 | 026 | 16 |
ETB | 23 | 00010111 | 027 | 17 |
CAN | 24 | 00011000 | 030 | 18 |
EM | 25 | 00011001 | 031 | 19 |
SUB | 26 | 00011010 | 032 | 1A |
ESC | 27 | 00011011 | 033 | 1B |
FS | 28 | 00011100 | 034 | 1C |
GS | 29 | 00011101 | 035 | 1D |
RS | 30 | 00011110 | 036 | 1E |
US | 31 | 00011111 | 037 | 1F |
Space | 32 | 00100000 | 040 | 20 |
! | 33 | 00100001 | 041 | 21 |
“ | 34 | 00100010 | 042 | 22 |
# | 35 | 00100011 | 043 | 23 |
$ | 36 | 00100100 | 044 | 24 |
% | 37 | 00100101 | 045 | 25 |
& | 38 | 00100110 | 046 | 26 |
‘ | 39 | 00100111 | 047 | 27 |
( | 40 | 00101000 | 050 | 28 |
) | 41 | 00101001 | 051 | 29 |
* | 42 | 00101010 | 052 | 2A |
+ | 43 | 00101011 | 053 | 2B |
, | 44 | 00101100 | 054 | 2C |
– | 45 | 00101101 | 055 | 2D |
. | 46 | 00101110 | 056 | 2E |
/ | 47 | 00101111 | 057 | 2F |
0 | 48 | 00110000 | 060 | 30 |
1 | 49 | 00110001 | 061 | 31 |
2 | 50 | 00110010 | 062 | 32 |
3 | 51 | 00110011 | 063 | 33 |
4 | 52 | 00110100 | 064 | 34 |
5 | 53 | 00110101 | 065 | 35 |
6 | 54 | 00110110 | 066 | 36 |
7 | 55 | 00110111 | 067 | 37 |
8 | 56 | 00111000 | 070 | 38 |
9 | 57 | 00111001 | 071 | 39 |
: | 58 | 00111010 | 072 | 3A |
; | 59 | 00111011 | 073 | 3B |
< | 60 | 00111100 | 074 | 3C |
= | 61 | 00111101 | 075 | 3D |
> | 62 | 00111110 | 076 | 3E |
? | 63 | 00111111 | 077 | 3F |
@ | 64 | 01000000 | 100 | 40 |
A | 65 | 01000001 | 101 | 41 |
B | 66 | 01000010 | 102 | 42 |
C | 67 | 01000011 | 103 | 43 |
D | 68 | 01000100 | 104 | 44 |
E | 69 | 01000101 | 105 | 45 |
F | 70 | 01000110 | 106 | 46 |
G | 71 | 01000111 | 107 | 47 |
H | 72 | 01001000 | 110 | 48 |
I | 73 | 01001001 | 111 | 49 |
J | 74 | 01001010 | 112 | 4A |
K | 75 | 01001011 | 113 | 4B |
L | 76 | 01001100 | 114 | 4C |
M | 77 | 01001101 | 115 | 4D |
N | 78 | 01001110 | 116 | 4E |
O | 79 | 01001111 | 117 | 4F |
P | 80 | 01010000 | 120 | 50 |
Q | 81 | 01010001 | 121 | 51 |
R | 82 | 01010010 | 122 | 52 |
S | 83 | 01010011 | 123 | 53 |
T | 84 | 01010100 | 124 | 54 |
U | 85 | 01010101 | 125 | 55 |
V | 86 | 01010110 | 126 | 56 |
W | 87 | 01010111 | 127 | 57 |
X | 88 | 01011000 | 130 | 58 |
Y | 89 | 01011001 | 131 | 59 |
Z | 90 | 01011010 | 132 | 5A |
[ | 91 | 01011011 | 133 | 5B |
\ | 92 | 01011100 | 134 | 5C |
] | 93 | 01011101 | 135 | 5D |
^ | 94 | 01011110 | 136 | 5E |
_ | 95 | 01011111 | 137 | 5F |
` | 96 | 01100000 | 140 | 60 |
a | 97 | 01100001 | 141 | 61 |
b | 98 | 01100010 | 142 | 62 |
c | 99 | 01100011 | 143 | 63 |
d | 100 | 01100100 | 144 | 64 |
e | 101 | 01100101 | 145 | 65 |
f | 102 | 01100110 | 146 | 66 |
g | 103 | 01100111 | 147 | 67 |
h | 104 | 01101000 | 150 | 68 |
i | 105 | 01101001 | 151 | 69 |
j | 106 | 01101010 | 152 | 6A |
k | 107 | 01101011 | 153 | 6B |
l | 108 | 01101100 | 154 | 6C |
m | 109 | 01101101 | 155 | 6D |
n | 110 | 01101110 | 156 | 6E |
o | 111 | 01101111 | 157 | 6F |
p | 112 | 01110000 | 160 | 70 |
q | 113 | 01110001 | 161 | 71 |
r | 114 | 01110010 | 162 | 72 |
s | 115 | 01110011 | 163 | 73 |
t | 116 | 01110100 | 164 | 74 |
u | 117 | 01110101 | 165 | 75 |
v | 118 | 01110110 | 166 | 76 |
w | 119 | 01110111 | 167 | 77 |
x | 120 | 01111000 | 170 | 78 |
y | 121 | 01111001 | 171 | 79 |
z | 122 | 01111010 | 172 | 7A |
{ | 123 | 01111011 | 173 | 7B |
| | 124 | 01111100 | 174 | 7C |
} | 125 | 01111101 | 175 | 7D |
~ | 126 | 01111110 | 176 | 7E |
DEL | 127 | 01111111 | 177 | 7F |
Try our other tools:
Notepad, Word Counter, Text Transpose, Space Remover, Speech Timer, Remove Line Breaks, Unicode Text Converter, Bold Text Generator, Fancy Text Generator, Italic Text Generator, Morse Code Translator, Text Case Converter, Column to Comma Separated List, Age Calculator, Hours Calculator