Binary,octal,decimal,hex,converter

This converter can quickly convert hexadecimal, decimal, octal, and binary codes to each other. Negative and floating point numbers are supported. Entering any encoding in the four encoding boxes can immediately get the results of other conversions.

16
10
8
2

Knowledge of converter

In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically 0 (zero) and 1 (one).

The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit. Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used by almost all modern computers and computer-based devices.

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010. Two zeroes can be added at the left: (00)1 001 010, corresponding the octal digits 1 1 2, yielding the octal representation 112.

Hexadecimal is a representation of data in a computer. It is different from the representation in our daily life. It consists of 0-9, A-F, and the letters are case-insensitive. Correspondences with decimals are: 0-9 corresponds to 0-9; A-F corresponds to 10-15; N-ary numbers can be expressed as 0-(N-1) numbers, and more than 9 letters A-F.

Binary, octal, decimal, hex conversion table

DecimalHexOctalBinary
0000
1111
22210
33311
444100
555101
666110
777111
88101000
99111001
10A121010
11B131011
12C141100
13D151101
14E161110
15F171111
16102010000
17112110001
18122210010
19132310011
20142410100
21152510101
22162610110
23172710111
24183011000
25193111001
261A3211010
271B3311011
281C3411100
291D3511101
301E3611110
311F3711111
322040100000
332141100001
342242100010
352343100011
362444100100
372545100101
382646100110
392747100111
402850101000
412951101001
422A52101010
432B53101011
442C54101100
452D55101101
462E56101110
472F57101111
483060110000
493161110001
503262110010
513363110011
523464110100
533565110101
543666110110
553767110111
563870111000
573971111001
583A72111010
593B73111011
603C74111100
613D75111101
623E76111110
633F77111111
64401001000000
65411011000001
66421021000010
67431031000011
68441041000100
69451051000101
70461061000110
71471071000111
72481101001000
73491111001001
744A1121001010
754B1131001011
764C1141001100
774D1151001101
784E1161001110
794F1171001111
80501201010000
81511211010001
82521221010010
83531231010011
84541241010100
85551251010101
86561261010110
87571271010111
88581301011000
89591311011001
905A1321011010
915B1331011011
925C1341011100
935D1351011101
945E1361011110
955F1371011111
96601401100000
97611411100001
98621421100010
99631431100011
100641441100100
101651451100101
102661461100110
103671471100111
104681501101000
105691511101001
1066A1521101010
1076B1531101011
1086C1541101100
1096D1551101101
1106E1561101110
1116F1571101111
112701601110000
113711611110001
114721621110010
115731631110011
116741641110100
117751651110101
118761661110110
119771671110111
120781701111000
121791711111001
1227A1721111010
1237B1731111011
1247C1741111100
1257D1751111101
1267E1761111110
1277F1771111111
1288020010000000
1298120110000001
1308220210000010
1318320310000011
1328420410000100
1338520510000101
1348620610000110
1358720710000111
1368821010001000
1378921110001001
1388A21210001010
1398B21310001011
1408C21410001100
1418D21510001101
1428E21610001110
1438F21710001111
1449022010010000
1459122110010001
1469222210010010
1479322310010011
1489422410010100
1499522510010101
1509622610010110
1519722710010111
1529823010011000
1539923110011001
1549A23210011010
1559B23310011011
1569C23410011100
1579D23510011101
1589E23610011110
1599F23710011111
160A024010100000
161A124110100001
162A224210100010
163A324310100011
164A424410100100
165A524510100101
166A624610100110
167A724710100111
168A825010101000
169A925110101001
170AA25210101010
171AB25310101011
172AC25410101100
173AD25510101101
174AE25610101110
175AF25710101111
176B026010110000
177B126110110001
178B226210110010
179B326310110011
180B426410110100
181B526510110101
182B626610110110
183B726710110111
184B827010111000
185B927110111001
186BA27210111010
187BB27310111011
188BC27410111100
189BD27510111101
190BE27610111110
191BF27710111111
192C030011000000
193C130111000001
194C230211000010
195C330311000011
196C430411000100
197C530511000101
198C630611000110
199C730711000111
200C831011001000
201C931111001001
202CA31211001010
203CB31311001011
204CC31411001100
205CD31511001101
206CE31611001110
207CF31711001111
208D032011010000
209D132111010001
210D232211010010
211D332311010011
212D432411010100
213D532511010101
214D632611010110
215D732711010111
216D833011011000
217D933111011001
218DA33211011010
219DB33311011011
220DC33411011100
221DD33511011101
222DE33611011110
223DF33711011111
224E034011100000
225E134111100001
226E234211100010
227E334311100011
228E434411100100
229E534511100101
230E634611100110
231E734711100111
232E835011101000
233E935111101001
234EA35211101010
235EB35311101011
236EC35411101100
237ED35511101101
238EE35611101110
239EF35711101111
240F036011110000
241F136111110001
242F236211110010
243F336311110011
244F436411110100
245F536511110101
246F636611110110
247F736711110111
248F837011111000
249F937111111001
250FA37211111010
251FB37311111011
252FC37411111100
253FD37511111101
254FE37611111110
255FF37711111111