Binary, Hex, Decimal, Octal, ASCII, Text Converter

Converter
To

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/ Decimal/ Binary/ Octal/ Hexadecimal Conversion Table
ASCII Character Decimal Binary Octal Hexadecimal
NUL00000000000000
SOH10000000100101
STX20000001000202
ETX30000001100303
EOT40000010000404
ENQ50000010100505
ACK60000011000606
BEL70000011100707
BS80000100001008
HT90000100101109
LF10000010100120A
VT11000010110130B
FF12000011000140C
CR13000011010150D
SO14000011100160E
SI15000011110170F
DLE160001000002010
DC1170001000102111
DC2180001001002212
DC3190001001102313
DC4200001010002414
NAK210001010102515
SYN220001011002616
ETB230001011102717
CAN240001100003018
EM250001100103119
SUB26000110100321A
ESC27000110110331B
FS28000111000341C
GS29000111010351D
RS30000111100361E
US31000111110371F
Space320010000004020
!330010000104121
340010001004222
#350010001104323
$360010010004424
%370010010104525
&380010011004626
390010011104727
(400010100005028
)410010100105129
*42001010100522A
+43001010110532B
,44001011000542C
45001011010552D
.46001011100562E
/47001011110572F
0480011000006030
1490011000106131
2500011001006232
3510011001106333
4520011010006434
5530011010106535
6540011011006636
7550011011106737
8560011100007038
9570011100107139
:58001110100723A
;59001110110733B
<60001111000743C
=61001111010753D
>62001111100763E
?63001111110773F
@640100000010040
A650100000110141
B660100001010242
C670100001110343
D680100010010444
E690100010110545
F700100011010646
G710100011110747
H720100100011048
I730100100111149
J74010010101124A
K75010010111134B
L76010011001144C
M77010011011154D
N78010011101164E
O79010011111174F
P800101000012050
Q810101000112151
R820101001012252
S830101001112353
T840101010012454
U850101010112555
V860101011012656
W870101011112757
X880101100013058
Y890101100113159
Z90010110101325A
[91010110111335B
\92010111001345C
]93010111011355D
^94010111101365E
_95010111111375F
`960110000014060
a970110000114161
b980110001014262
c990110001114363
d1000110010014464
e1010110010114565
f1020110011014666
g1030110011114767
h1040110100015068
i1050110100115169
j106011010101526A
k107011010111536B
l108011011001546C
m109011011011556D
n110011011101566E
o111011011111576F
p1120111000016070
q1130111000116171
r1140111001016272
s1150111001116373
t1160111010016474
u1170111010116575
v1180111011016676
w1190111011116777
x1200111100017078
y1210111100117179
z122011110101727A
{123011110111737B
|124011111001747C
}125011111011757D
~126011111101767E
DEL127011111111777F

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