Decimal to Binary Table (0 to 255)

This chart lists every value a single byte can hold, from 0 (00000000) to 255 (11111111), with matching hex and octal values. Use the converter for numbers outside this range.

Decimal numbers
Binary result
Result appears here as you type

Decimal to binary, hex and octal, 0 to 255

Decimal to binary, hex and octal, 0 to 255
DecimalBinary (8-bit)HexOctal
000000000000
100000001011
200000010022
300000011033
400000100044
500000101055
600000110066
700000111077
8000010000810
9000010010911
10000010100A12
11000010110B13
12000011000C14
13000011010D15
14000011100E16
15000011110F17
16000100001020
17000100011121
18000100101222
19000100111323
20000101001424
21000101011525
22000101101626
23000101111727
24000110001830
25000110011931
26000110101A32
27000110111B33
28000111001C34
29000111011D35
30000111101E36
31000111111F37
32001000002040
33001000012141
34001000102242
35001000112343
36001001002444
37001001012545
38001001102646
39001001112747
40001010002850
41001010012951
42001010102A52
43001010112B53
44001011002C54
45001011012D55
46001011102E56
47001011112F57
48001100003060
49001100013161
50001100103262
51001100113363
52001101003464
53001101013565
54001101103666
55001101113767
56001110003870
57001110013971
58001110103A72
59001110113B73
60001111003C74
61001111013D75
62001111103E76
63001111113F77
640100000040100
650100000141101
660100001042102
670100001143103
680100010044104
690100010145105
700100011046106
710100011147107
720100100048110
730100100149111
74010010104A112
75010010114B113
76010011004C114
77010011014D115
78010011104E116
79010011114F117
800101000050120
810101000151121
820101001052122
830101001153123
840101010054124
850101010155125
860101011056126
870101011157127
880101100058130
890101100159131
90010110105A132
91010110115B133
92010111005C134
93010111015D135
94010111105E136
95010111115F137
960110000060140
970110000161141
980110001062142
990110001163143
1000110010064144
1010110010165145
1020110011066146
1030110011167147
1040110100068150
1050110100169151
106011010106A152
107011010116B153
108011011006C154
109011011016D155
110011011106E156
111011011116F157
1120111000070160
1130111000171161
1140111001072162
1150111001173163
1160111010074164
1170111010175165
1180111011076166
1190111011177167
1200111100078170
1210111100179171
122011110107A172
123011110117B173
124011111007C174
125011111017D175
126011111107E176
127011111117F177
1281000000080200
1291000000181201
1301000001082202
1311000001183203
1321000010084204
1331000010185205
1341000011086206
1351000011187207
1361000100088210
1371000100189211
138100010108A212
139100010118B213
140100011008C214
141100011018D215
142100011108E216
143100011118F217
1441001000090220
1451001000191221
1461001001092222
1471001001193223
1481001010094224
1491001010195225
1501001011096226
1511001011197227
1521001100098230
1531001100199231
154100110109A232
155100110119B233
156100111009C234
157100111019D235
158100111109E236
159100111119F237
16010100000A0240
16110100001A1241
16210100010A2242
16310100011A3243
16410100100A4244
16510100101A5245
16610100110A6246
16710100111A7247
16810101000A8250
16910101001A9251
17010101010AA252
17110101011AB253
17210101100AC254
17310101101AD255
17410101110AE256
17510101111AF257
17610110000B0260
17710110001B1261
17810110010B2262
17910110011B3263
18010110100B4264
18110110101B5265
18210110110B6266
18310110111B7267
18410111000B8270
18510111001B9271
18610111010BA272
18710111011BB273
18810111100BC274
18910111101BD275
19010111110BE276
19110111111BF277
19211000000C0300
19311000001C1301
19411000010C2302
19511000011C3303
19611000100C4304
19711000101C5305
19811000110C6306
19911000111C7307
20011001000C8310
20111001001C9311
20211001010CA312
20311001011CB313
20411001100CC314
20511001101CD315
20611001110CE316
20711001111CF317
20811010000D0320
20911010001D1321
21011010010D2322
21111010011D3323
21211010100D4324
21311010101D5325
21411010110D6326
21511010111D7327
21611011000D8330
21711011001D9331
21811011010DA332
21911011011DB333
22011011100DC334
22111011101DD335
22211011110DE336
22311011111DF337
22411100000E0340
22511100001E1341
22611100010E2342
22711100011E3343
22811100100E4344
22911100101E5345
23011100110E6346
23111100111E7347
23211101000E8350
23311101001E9351
23411101010EA352
23511101011EB353
23611101100EC354
23711101101ED355
23811101110EE356
23911101111EF357
24011110000F0360
24111110001F1361
24211110010F2362
24311110011F3363
24411110100F4364
24511110101F5365
24611110110F6366
24711110111F7367
24811111000F8370
24911111001F9371
25011111010FA372
25111111011FB373
25211111100FC374
25311111101FD375
25411111110FE376
25511111111FF377

Frequently asked questions

Why does the table stop at 255?+

255 is the largest number that fits in 8 bits (one byte). It is 11111111 in binary and FF in hex.

How do I convert decimal to binary by hand?+

Divide the number by 2 repeatedly and write down the remainders, then read them from bottom to top. For 13: 13/2=6 r1, 6/2=3 r0, 3/2=1 r1, 1/2=0 r1, so 13 = 1101.

Full Decimal to Binary ConverterAll Number Converters