Bit to Byte Converter
Convert between bits, bytes, kilobytes, megabytes, gigabytes, and their binary equivalents (KiB, MiB, GiB).
Bit to Byte Converter
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: 1 Byte = 8 Bits | 1 KB = 1,000 B | 1 KiB = 1,024 B | 1 MB = 1,000 KB | 1 MiB = 1,024 KiB
Worked example โ 1,000,000,000 bits = 125 MB
Formula
1 Byte = 8 Bits | 1 KB = 1,000 B | 1 KiB = 1,024 B | 1 MB = 1,000 KB | 1 MiB = 1,024 KiB
Data is measured in bits (binary digits). Bytes group 8 bits. Larger units use either decimal prefixes (kilo=1000, mega=1,000,000) or binary prefixes (kibi=1024, mebi=1,048,576). Decimal prefixes follow SI standards, while binary prefixes follow IEC standards and align with powers of 2 used in computer architecture.
Worked Examples
Example 1: Network Speed to Storage
Problem:A 100 Mbps connection downloads data for 10 seconds. How many megabytes is that?
Solution:100 Mbps = 100,000,000 bits per second 10 seconds = 1,000,000,000 bits total Convert to bytes: 1,000,000,000 / 8 = 125,000,000 bytes = 125 MB
Result:1,000,000,000 bits = 125 MB
Example 2: Storage Capacity Comparison
Problem:How many KiB are in 1 MiB?
Solution:1 MiB = 1,048,576 bytes 1 KiB = 1,024 bytes 1,048,576 / 1,024 = 1,024 KiB
Result:1 MiB = 1,024 KiB
Frequently Asked Questions
How many bits are in a byte?
There are exactly 8 bits in 1 byte. A bit is the smallest unit of digital data, representing a single binary value of 0 or 1. A byte groups 8 bits together, allowing it to represent 256 different values (2 to the power of 8). This 8-bit byte became the standard in the 1960s and is the fundamental unit for measuring data storage and memory. All larger units (kilobytes, megabytes, etc.) are based on multiples of the byte.
What is the difference between a kilobyte (KB) and a kibibyte (KiB)?
A kilobyte (KB) uses the decimal SI prefix where 1 KB equals 1,000 bytes. A kibibyte (KiB) uses the binary prefix where 1 KiB equals 1,024 bytes (2 to the power of 10). The binary prefixes (kibi, mebi, gibi, tebi) were introduced by the IEC in 1998 to resolve the ambiguity of using SI prefixes for binary quantities. The difference grows with scale: 1 GB versus 1 GiB differs by about 7.4%, which amounts to roughly 73.7 million bytes.
What is a nibble?
A nibble (also spelled nybble) is a unit of data equal to 4 bits, or half a byte. A nibble can represent 16 different values (2 to the power of 4), which maps exactly to one hexadecimal digit. This makes nibbles particularly useful in computing for representing hex values. For example, the byte value 0xA5 consists of two nibbles: 0xA (1010 in binary) and 0x5 (0101 in binary). The term is a playful derivation from byte, since a nibble is smaller.
Why do storage manufacturers use decimal prefixes while computers use binary?
Storage manufacturers use decimal prefixes (1 GB = 1,000,000,000 bytes) because it is the technically correct SI usage and produces larger-seeming numbers for marketing. Computers and operating systems historically used powers of 2 (1 GB = 1,073,741,824 bytes) because binary addressing is fundamental to how memory and processors work. This discrepancy means a 500 GB hard drive shows approximately 465 GiB in your operating system, leading to the common misconception of missing storage space.
Why are network speeds quoted in megabits but file sizes in megabytes?
Networking measures the raw signaling rate on the wire, which is naturally counted in bits per second, while storage counts addressable bytes. The two differ by the factor of eight bits per byte, so a 100 Mbps connection can deliver at most 12.5 MB/s, and a gigabit link tops out near 125 MB/s before protocol overhead. Watch the capitalization: Mb and Mbps mean megabit, while MB and MB/s mean megabyte. The lowercase b is the usual cause of a surprised eightfold discrepancy.
How do I estimate a download time from a connection speed?
Convert both quantities to bits, then divide. A 2 GB file is 2 x 8, or 16 gigabits, which is 16,000 megabits; over a 50 Mbps link that is 16,000 divided by 50, or 320 seconds, about five minutes and twenty seconds. Real transfers run slower because TCP headers, acknowledgements, retransmissions and shared contention all consume line rate, so treat the arithmetic as a best case and add a margin of ten percent or more.
What is an octet and why do standards use that word instead of byte?
An octet means exactly eight bits, with no ambiguity. Internet standards documents prefer it because historically a byte meant the smallest addressable group of bits on a given machine, and that group was six, seven, or nine bits on various early architectures. Once protocols had to be portable across those machines, specifying octets removed any doubt about field widths. In modern practice byte and octet are used interchangeably, since eight-bit bytes are universal.
How many bits does one text character occupy?
It depends on the encoding. ASCII defines 128 characters in seven bits, but each is normally stored in a full byte. UTF-8 is variable length: ASCII characters take one byte, most Latin-script accented letters plus Greek and Cyrillic take two, most Chinese, Japanese and Korean characters take three, and emoji and rarer symbols take four. UTF-16 uses two bytes for common characters and four for the rest. That is why a character count and a byte count rarely match.
How do I work out the size of uncompressed audio from its bit depth?
Multiply the sample rate by the number of channels by the bits per sample, then divide by eight for bytes per second. CD-quality audio at 44,100 samples per second, two channels, and 16 bits per sample gives 44,100 x 2 x 16 divided by 8, which is 176,400 bytes per second, or about 10.58 MB per minute. Raising the bit depth from 16 to 24 bits increases the size by half. Lossy codecs break this relationship because they store an encoded stream rather than raw samples.
How many distinct values can a given number of bits represent?
Exactly 2 raised to the power of the bit count. One byte of eight bits gives 256 combinations, two bytes give 65,536, and four bytes give 4,294,967,296. That is why an unsigned eight-bit field stops at 255 and an unsigned 32-bit counter wraps at 4,294,967,295. If the field is signed, one bit encodes the sign, so an eight-bit signed value spans -128 to 127. Knowing this rule tells you immediately how many bits a range of values requires.
References
Background & Theory
1 byte = 8 bits, and the prefix decides the rest: 1 kB = 1,000 bytes while 1 KiB = 1,024 bytes. Both are exact definitions - the decimal kilobyte follows the SI, and the binary kibibyte follows IEC 80000-13.
Conversion reference table
| Conversion | Equivalent | Exact or rounded? |
|---|---|---|
| 1 byte | 8 bits | Exact by definition |
| 1 kilobyte (kB) | 1,000 bytes | Exact - SI decimal |
| 1 kibibyte (KiB) | 1,024 bytes | Exact - IEC binary |
| 1 megabyte (MB) | 1,000,000 bytes | Exact - SI decimal |
| 1 mebibyte (MiB) | 1,048,576 bytes (2^20) | Exact - IEC binary |
| 1 gigabyte (GB) | 1,000,000,000 bytes | Exact - SI decimal |
| 1 gibibyte (GiB) | 1,073,741,824 bytes (2^30) | Exact - IEC binary |
The gap widens with each prefix: a kibibyte is 2.4 percent larger than a kilobyte, a mebibyte 4.9 percent, a gibibyte 7.4 percent and a tebibyte 10.0 percent. That is the whole explanation for the missing space on a new drive - manufacturers sell decimal terabytes while Windows reports binary tebibytes, so a 2 TB drive shows about 1.82 TiB with nothing actually lost. Network speeds add a second trap by being quoted in bits: 100 Mbps is 12.5 MB/s before protocol overhead.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎBit Rate to Baud Rate Converter
Calculate bit rate to baud rate converter with inputs, formulas, and instant results.
๐งฎTorque Unit Converter
Calculate torque unit converter with inputs, formulas, and instant results.
๐งฎByte Conversion Calculator
Calculate byte conversion with inputs, formulas, and instant results.
๐งฎElectrical Resistance Converter (ฮฉ, kฮฉ, Mฮฉ)
Calculate electrical resistance unit converter with inputs, formulas, and instant results.
๐งฎTime Unit Converter
Calculate time unit converter with inputs, formulas, and instant results.
๐งฎArea Converter
Calculate area converter with inputs, formulas, and instant results.
๐งฎAresto Hectares Converter
Calculate aresto hectares converter with inputs, formulas, and instant results.
๐งฎCentimeter to Inch Converter
Calculate centimeter to inch converter with inputs, formulas, and instant results.