Bytes to Bits and Bits to Bytes: How Many Bits in a Byte?

Convert bytes to bits or the other way round. Every result uses the exact definition of each unit.

To 8

1 B = 8 bit

Show this value in every data storage unit
Bits bit
8
Bytes B
1
Kilobytes kB
0.001
Megabytes MB
0.000001
Gigabytes GB
1 × 10⁻⁹
Terabytes TB
1 × 10⁻¹²
Petabytes PB
1 × 10⁻¹⁵
Kibibytes KiB
0.000976563
Mebibytes MiB
0.000000953674
Gibibytes GiB
9.31323 × 10⁻¹⁰
Tebibytes TiB
9.09495 × 10⁻¹³
Pebibytes PiB
8.88178 × 10⁻¹⁶
Exabytes EB
1 × 10⁻¹⁸
Kilobits kbit
0.008
Megabits Mbit
0.000008
Gigabits Gbit
8 × 10⁻⁹
Nibbles nibble
2

Quick answer

  • 1 B = 8 bit
  • 1 bit = 0.125 B

Bytes to Bits formula, and back

bits = bytes × 8

Multiply the number of bytes by 8.

bytes = bits ÷ 8

Divide the number of bits by 8.

Where the factor comes from: one byte is 1 and one bit is 0.125 of the reference unit (bytes). Dividing the first by the second gives 8.

Worked examples

  1. Convert 5 bytes to bits.

    5 B × 8 = 40 bit

  2. Convert 12.5 bytes to bits.

    12.5 B × 8 = 100 bit

  3. Convert 250 bytes to bits.

    250 B × 8 = 2000 bit

  4. Convert 5 bits to bytes.

    5 bit ÷ 8 = 0.625 B

  5. Convert 12.5 bits to bytes.

    12.5 bit ÷ 8 = 1.5625 B

  6. Convert 250 bits to bytes.

    250 bit ÷ 8 = 31.25 B

Conversion tables

Common values in both directions, calculated with the same engine as the converter above.

Bytes to Bits conversion table
Bytes (B)Bits (bit)
1 B8 bit
2 B16 bit
3 B24 bit
5 B40 bit
10 B80 bit
15 B120 bit
20 B160 bit
25 B200 bit
50 B400 bit
75 B600 bit
100 B800 bit
250 B2000 bit
500 B4000 bit
1000 B8000 bit
Bits to Bytes conversion table
Bits (bit)Bytes (B)
1 bit0.125 B
2 bit0.25 B
3 bit0.375 B
5 bit0.625 B
10 bit1.25 B
15 bit1.875 B
20 bit2.5 B
25 bit3.125 B
50 bit6.25 B
75 bit9.375 B
100 bit12.5 B
250 bit31.25 B
500 bit62.5 B
1000 bit125 B

When this conversion is useful

Bytes are used for file sizes, while bits are used for network speeds. Converting between them comes up whenever a value from one of those settings has to be read in the other, so this page works in both directions: press the swap button above to turn bytes to bits into bits to bytes.

The units

What is a byte?

A byte is 8 bits, enough to store one character of basic text. File and memory sizes are counted in bytes and their multiples.

What is a bit?

A bit is the smallest unit of digital information: a single 0 or 1. Network speeds are counted in bits per second, while file sizes are counted in bytes of 8 bits.

Bytes compared with bits

A byte is the larger unit: one byte equals 8 bits.

Accuracy and precision

Results are calculated from the exact definition of each unit and rounded to 6 significant figures for display, or 12 when "More decimal places" is switched on. Round your final answer to match the precision of the measurement you started with.

Kilobytes, megabytes, gigabytes, terabytes and petabytes here are decimal (powers of 1,000). Kibibytes, mebibytes and gibibytes are binary (powers of 1,024).

Frequently asked questions

How many bits are in a byte?

One byte equals 8 bits.

How do I convert bytes to bits?

Multiply the number of bytes by 8. For example, 5 B × 8 = 40 bit.

How do I convert bits to bytes?

Divide the number of bits by 8. For example, 5 bit ÷ 8 = 0.625 B.

Which is larger, a byte or a bit?

A byte is larger. One byte is 8 bits.

Is this converter exact?

Yes, within display rounding. Both units are defined exactly in terms of the same reference unit, and the converter uses those definitions directly.

Learn more

Think a conversion is incorrect? Email contact@sjwebtechwork.com with the page address, the value you entered, the result you saw and the result you expected.