Bytes to bits

Convert bytes to bits.

1 B = 8 bitbits = bytes × 8

How to convert bytes to bits

  1. Take the value in bytes.
  2. Use the formula bits = bytes × 8.
  3. For example, 1 B is 8 bit.

About bytes and bits

Multiply bytes by 8 to get bits. 4 bytes is 32 bits, 16 bytes is 128 bits and 1,500 bytes is 12,000 bits.

Programmers convert to see how many bits a type or a field holds, which sets the largest number it can store: 4 bytes is 32 bits, enough for about 4.29 billion values. Network engineers convert packet sizes to bits to work out how long they take on a link measured in bits per second.

Examples

  • 1 B (one byte, a single ASCII character) is 8 bit
  • 4 B (a 32-bit integer or an IPv4 address) is 32 bit
  • 16 B (an IPv6 address) is 128 bit
  • 1,500 B (the standard Ethernet MTU) is 12,000 bit

Bytes to bits chart

Bytes (B)Bits
18
216
324
432
648
864
1080
1296
16128
20160
24192
Bytes (B)Bits
32256
48384
64512
100800
1281,024
2562,048
5124,096
1,0008,000
1,0248,192
1,50012,000