Convert bytes to bits

1 byte is 8 bits, so you only need to multiply the number of bytes by 8. Type a size in bytes and the converter shows the result in bits straight away.

Content last reviewed:
B
bit
Examples

How many bits are in a byte?

A byte has 8 bits. Each of those bits is either 0 or 1, so a byte can take 256 different values: from 00000000 to 11111111 in binary, which is 0 to 255 in everyday numbers[1].

A byte can also be split into two halves of 4 bits each. Such a half is called a nibble, sometimes spelled nybble, and it matches exactly one hexadecimal digit[1].

How do you convert bytes to bits?

Multiply the number of bytes by 8: bits = bytes × 8. A size of 4 B is 4 × 8 = 32 bits, and 1,024 B is 8,192 bits. Going the other way means dividing by 8, which the bits to bytes converter does for you.

A larger unit has to become bytes first. A kilobyte is 1,000 or 1,024 bytes depending on the standard, so it gives 8,000 or 8,192 bits. The data unit converter handles both. A megabyte works the same way and gives 8,000,000 or 8,388,608 bits, both of which the data unit converter shows when you pick MB or MiB.

How many bits is a given number of bytes?

Rows start at 1 B and go up in steps of 1 B to 300 B. Multiplying by 8 always gives a whole number, so the results are exact.
Step
Decimal places

Choose the value the table starts at, the step between rows and the number of decimal places. The Smaller values and Larger values buttons move the table.

BytesBits
1 B8 bits
2 B16 bits
3 B24 bits
4 B32 bits
5 B40 bits
6 B48 bits
7 B56 bits
8 B64 bits
9 B72 bits
10 B80 bits
11 B88 bits
12 B96 bits
13 B104 bits
14 B112 bits
15 B120 bits
16 B128 bits
17 B136 bits
18 B144 bits
19 B152 bits
20 B160 bits
21 B168 bits
22 B176 bits
23 B184 bits
24 B192 bits
25 B200 bits
26 B208 bits
27 B216 bits
28 B224 bits
29 B232 bits
30 B240 bits
31 B248 bits
32 B256 bits
33 B264 bits
34 B272 bits
35 B280 bits
36 B288 bits
37 B296 bits
38 B304 bits
39 B312 bits
40 B320 bits
41 B328 bits
42 B336 bits
43 B344 bits
44 B352 bits
45 B360 bits
46 B368 bits
47 B376 bits
48 B384 bits
49 B392 bits
50 B400 bits
51 B408 bits
52 B416 bits
53 B424 bits
54 B432 bits
55 B440 bits
56 B448 bits
57 B456 bits
58 B464 bits
59 B472 bits
60 B480 bits
61 B488 bits
62 B496 bits
63 B504 bits
64 B512 bits
65 B520 bits
66 B528 bits
67 B536 bits
68 B544 bits
69 B552 bits
70 B560 bits
71 B568 bits
72 B576 bits
73 B584 bits
74 B592 bits
75 B600 bits
76 B608 bits
77 B616 bits
78 B624 bits
79 B632 bits
80 B640 bits
81 B648 bits
82 B656 bits
83 B664 bits
84 B672 bits
85 B680 bits
86 B688 bits
87 B696 bits
88 B704 bits
89 B712 bits
90 B720 bits
91 B728 bits
92 B736 bits
93 B744 bits
94 B752 bits
95 B760 bits
96 B768 bits
97 B776 bits
98 B784 bits
99 B792 bits
100 B800 bits
101 B808 bits
102 B816 bits
103 B824 bits
104 B832 bits
105 B840 bits
106 B848 bits
107 B856 bits
108 B864 bits
109 B872 bits
110 B880 bits
111 B888 bits
112 B896 bits
113 B904 bits
114 B912 bits
115 B920 bits
116 B928 bits
117 B936 bits
118 B944 bits
119 B952 bits
120 B960 bits
121 B968 bits
122 B976 bits
123 B984 bits
124 B992 bits
125 B1,000 bits
126 B1,008 bits
127 B1,016 bits
128 B1,024 bits
129 B1,032 bits
130 B1,040 bits
131 B1,048 bits
132 B1,056 bits
133 B1,064 bits
134 B1,072 bits
135 B1,080 bits
136 B1,088 bits
137 B1,096 bits
138 B1,104 bits
139 B1,112 bits
140 B1,120 bits
141 B1,128 bits
142 B1,136 bits
143 B1,144 bits
144 B1,152 bits
145 B1,160 bits
146 B1,168 bits
147 B1,176 bits
148 B1,184 bits
149 B1,192 bits
150 B1,200 bits
151 B1,208 bits
152 B1,216 bits
153 B1,224 bits
154 B1,232 bits
155 B1,240 bits
156 B1,248 bits
157 B1,256 bits
158 B1,264 bits
159 B1,272 bits
160 B1,280 bits
161 B1,288 bits
162 B1,296 bits
163 B1,304 bits
164 B1,312 bits
165 B1,320 bits
166 B1,328 bits
167 B1,336 bits
168 B1,344 bits
169 B1,352 bits
170 B1,360 bits
171 B1,368 bits
172 B1,376 bits
173 B1,384 bits
174 B1,392 bits
175 B1,400 bits
176 B1,408 bits
177 B1,416 bits
178 B1,424 bits
179 B1,432 bits
180 B1,440 bits
181 B1,448 bits
182 B1,456 bits
183 B1,464 bits
184 B1,472 bits
185 B1,480 bits
186 B1,488 bits
187 B1,496 bits
188 B1,504 bits
189 B1,512 bits
190 B1,520 bits
191 B1,528 bits
192 B1,536 bits
193 B1,544 bits
194 B1,552 bits
195 B1,560 bits
196 B1,568 bits
197 B1,576 bits
198 B1,584 bits
199 B1,592 bits
200 B1,600 bits
201 B1,608 bits
202 B1,616 bits
203 B1,624 bits
204 B1,632 bits
205 B1,640 bits
206 B1,648 bits
207 B1,656 bits
208 B1,664 bits
209 B1,672 bits
210 B1,680 bits
211 B1,688 bits
212 B1,696 bits
213 B1,704 bits
214 B1,712 bits
215 B1,720 bits
216 B1,728 bits
217 B1,736 bits
218 B1,744 bits
219 B1,752 bits
220 B1,760 bits
221 B1,768 bits
222 B1,776 bits
223 B1,784 bits
224 B1,792 bits
225 B1,800 bits
226 B1,808 bits
227 B1,816 bits
228 B1,824 bits
229 B1,832 bits
230 B1,840 bits
231 B1,848 bits
232 B1,856 bits
233 B1,864 bits
234 B1,872 bits
235 B1,880 bits
236 B1,888 bits
237 B1,896 bits
238 B1,904 bits
239 B1,912 bits
240 B1,920 bits
241 B1,928 bits
242 B1,936 bits
243 B1,944 bits
244 B1,952 bits
245 B1,960 bits
246 B1,968 bits
247 B1,976 bits
248 B1,984 bits
249 B1,992 bits
250 B2,000 bits
251 B2,008 bits
252 B2,016 bits
253 B2,024 bits
254 B2,032 bits
255 B2,040 bits
256 B2,048 bits
257 B2,056 bits
258 B2,064 bits
259 B2,072 bits
260 B2,080 bits
261 B2,088 bits
262 B2,096 bits
263 B2,104 bits
264 B2,112 bits
265 B2,120 bits
266 B2,128 bits
267 B2,136 bits
268 B2,144 bits
269 B2,152 bits
270 B2,160 bits
271 B2,168 bits
272 B2,176 bits
273 B2,184 bits
274 B2,192 bits
275 B2,200 bits
276 B2,208 bits
277 B2,216 bits
278 B2,224 bits
279 B2,232 bits
280 B2,240 bits
281 B2,248 bits
282 B2,256 bits
283 B2,264 bits
284 B2,272 bits
285 B2,280 bits
286 B2,288 bits
287 B2,296 bits
288 B2,304 bits
289 B2,312 bits
290 B2,320 bits
291 B2,328 bits
292 B2,336 bits
293 B2,344 bits
294 B2,352 bits
295 B2,360 bits
296 B2,368 bits
297 B2,376 bits
298 B2,384 bits
299 B2,392 bits
300 B2,400 bits

How many bits does one character take?

Text saved in UTF-8 takes between 1 and 4 bytes per character[2]. Plain English letters, digits and spaces fit in 1 byte, or 8 bits. Letters with accents and the pound sign need 2 bytes, or 16 bits.

So the word résumé has 6 letters but takes 8 bytes in UTF-8, which is 64 bits: each é uses 2 bytes and the other four letters 1 byte each.

Loose black keyboard keycaps showing the Latin letter V, the Russian letters М and Ж, and the Insert, F4 and F9 keys
These keycaps show the Latin letter V and the Russian letters М and Ж. In UTF-8 the letter V takes 1 byte, or 8 bits, while Ж takes 2 bytes, or 16 bits. Photo: Sofya, Unsplash.

How many bytes and bits do characters take in UTF-8?

The number of bytes depends on the character’s number in the Unicode standard, not on how it looks.
CharacterBytes in UTF-8Bits
Letter A, a digit or a space1 B8 bits
Letter é or ñ2 B16 bits
Pound sign £2 B16 bits
Russian letter Ж2 B16 bits
Euro sign €3 B24 bits
Emoji4 B32 bits
The byte counts follow the table of UTF-8 encoding ranges in RFC 3629[2].

Where do the words bit and byte come from?

Bit is short for binary digit. John W. Tukey shortened the term this way in a Bell Labs memo dated 9 January 1947, and a year later Claude E. Shannon used the word bit in his paper “A Mathematical Theory of Communication”[3].

The word byte appeared in 1956 in Werner Buchholz’s papers for the IBM Stretch computer[4]. It is a deliberate respelling of bite, chosen so that it could not accidentally turn into bit[1].

Which ways of typing bytes does this converter accept?

Paste the number of bytes the way you have it: with a decimal point, with a thousands separator or together with the unit. The field reads each of these and converts it on its own, and the table shows exactly what it does with each one. The converter calculated the results itself.
What you typeWhat the converter showsHow we read it
1.512 bitThe point marks the decimal part, so the field holds one and a half bytes.
1,512 bitA comma before a single digit is a decimal comma, as in much of Europe, so the result is the same as for 1.5.
1,50012000 bitA comma before three digits separates the thousands, so the field holds one thousand five hundred bytes. A hint below the field confirms how we read it.
1 50012000 bitA space between the thousands is ignored, so the field holds one thousand five hundred bytes.
64 B512 bitThe field’s own unit pasted with the number does no harm, because we take the number in front of it.
256 bytes2048 bitA size copied with the word bytes, for example from a file’s Properties window, reads as a number of bytes.
32 bits32 bitBits pasted into the bytes field become 4 bytes, with a note below it, so the result is the same 32 bits again.
1 KB8000 bitA kilobyte counts as 1000 bytes here, because this pair has no standard switch. For 8192 bits from a 1024-byte kilobyte, convert KiB in the data unit converter.
½4 bitThe ½ character copied from text reads as half a byte.
2e316000 bitScientific notation from a spreadsheet is read as it stands: 2e3 is two thousand bytes.

Convert Bytes to other units

Sources

  1. Byte — Wikipedia
  2. RFC 3629: UTF-8, a transformation format of ISO 10646 — RFC Editor
  3. Bit — Wikipedia
  4. Timeline of the IBM Stretch/Harvest Era (1956–1961) — Computer History Museum
  5. RFC 791: Internet Protocol — RFC Editor
  6. Built-in Types — Python documentation

Every figure in the tables was computed from the unit definitions and checked arithmetically before publication. Historical values and the names of local units come from the sources listed above.

Content last reviewed: · written and checked by the Arteon team

Frequently asked questions about bytes and bits

What is the difference between an octet and a byte?

An octet is always exactly 8 bits. Network standards use the word because a byte once could have a different number of bits, which is why the Internet Protocol standard describes an address as four octets[5]. Today a byte means 8 bits in practice, so the two words mean the same thing[1].

How do I convert bytes to bits in Python?

Multiply the length of a bytes object by 8. A bytes object is a sequence of single bytes, so len(data) returns the number of bytes and len(data) * 8 the number of bits. To find how many bits a whole number needs, use int.bit_length(): (255).bit_length() returns 8[6].

Have a question or suggestion?

If you spot a mistake in a table or miss a conversion, write to us.