Bits to Bytes Converter
One byte is 8 bits, so 1,000 bits is 125 bytes. A decimal kilobyte is 1,000 bytes but a binary kibibyte is 1,024 bytes, a difference of 2.4%. Internet speed is sold in megabits: a 100 Mbps line moves 12.5 megabytes per second.
8 bits = 1 byte. kB/MB/GB use powers of 1,000; KiB/MiB/GiB use powers of 1,024. Everything runs in your browser; nothing is uploaded.
Type any amount of data and see it in bits, bytes, kilobytes, kibibytes, megabytes, gigabytes and terabytes, including the download time at your connection speed.
Key takeaways
- 8 bits = 1 byte, always
- 1 kB = 1,000 bytes; 1 KiB = 1,024 bytes
- 1 MB = 8,000,000 bits; 1 MiB = 8,388,608
- A 100 Mbps connection moves 12.5 MB per second
- A 1 GB file takes about 80 seconds at 100 Mbps
On this page
Bits and bytes: the one fact that matters
Everything in this converter comes from a single relationship: 1 byte = 8 bits. A bit is the smallest unit of digital information, a single 0 or 1. A byte is eight of them, which is enough to store one character of text.
The two units are used for different things, and that is the source of almost every confusion:
- Bits measure speed. Your internet plan is sold in megabits per second (Mbps).
- Bytes measure size. A file, a photo or a drive is measured in megabytes or gigabytes (MB, GB).
So an 8 Mbps connection moves 1 megabyte per second, and a “100 megabit” plan downloads at 12.5 megabytes per second. That division by 8 is the only math most people ever need, and the calculator above does it both ways. The decimal prefixes it uses (kilo, mega, giga) follow the official SI system published by the National Institute of Standards and Technology.
Decimal vs binary: why a 1 TB drive shows 931 GB
There are two families of size prefixes, and both are in use today.
- Decimal (SI). 1 kB = 1,000 bytes, 1 MB = 1,000,000, 1 GB = 1,000,000,000, 1 TB = 1,000,000,000,000. This is what drive makers and network engineers use.
- Binary (IEC). 1 KiB = 1,024 bytes, 1 MiB = 1,048,576, 1 GiB = 1,073,741,824, 1 TiB = 1,099,511,627,776. This is what operating systems use internally.
The two prefixes look almost the same but drift apart as the numbers grow, because 1,024 is 2.4% bigger than 1,000 and that gap compounds. At the gigabyte level a GiB is 7.37% larger than a GB, and that is exactly why a drive sold as 1 TB shows up as about 931 GB in your computer.
Worked example: a 1 TB drive holds 1,000,000,000,000 bytes. Divide by the binary 1,073,741,824 and you get 931.32 GiB. The drive is not short-changing you, the operating system is reporting gibibytes but labeling them “GB.” The IEC introduced the KiB/MiB/GiB names in 1998 to end exactly this confusion, as the International Electrotechnical Commission explains.
Bits to bytes and beyond: a conversion table
Use this to convert any size by eye. Every row is exact, not rounded.
| Unit | In bytes | In bits |
|---|---|---|
| 1 byte (B) | 1 | 8 |
| 1 kilobyte (kB) | 1,000 | 8,000 |
| 1 kibibyte (KiB) | 1,024 | 8,192 |
| 1 megabyte (MB) | 1,000,000 | 8,000,000 |
| 1 mebibyte (MiB) | 1,048,576 | 8,388,608 |
| 1 gigabyte (GB) | 1,000,000,000 | 8,000,000,000 |
| 1 gibibyte (GiB) | 1,073,741,824 | 8,589,934,592 |
| 1 terabyte (TB) | 1,000,000,000,000 | 8,000,000,000,000 |
| 1 tebibyte (TiB) | 1,099,511,627,776 | 8,796,093,022,208 |
Notice how the decimal and binary rows sit close together at the kilobyte level (1,000 vs 1,024) and pull apart by the terabyte level (1,000,000,000,000 vs 1,099,511,627,776, a gap of nearly 100 billion bytes). That widening gap is why the confusion gets worse, not better, as storage grows.
Worked example: how long to download 1 GB
Download time is just size divided by speed, once both are in the same unit. Convert everything to bits first.
- File size: 1 GB = 1,000,000,000 bytes = 8,000,000,000 bits.
- Connection: 100 Mbps = 100,000,000 bits per second.
- Time: 8,000,000,000 ÷ 100,000,000 = 80 seconds, or about 1 minute 20 seconds.
Run the same file over slower connections: at 25 Mbps it takes 320 seconds (5 min 20 s), at 50 Mbps 160 seconds (2 min 40 s), and at 500 Mbps just 16 seconds. The pattern is clean, double the speed, halve the time. Now shrink the file: a 500 MB download at 25 Mbps is 4,000,000,000 ÷ 25,000,000 = 160 seconds, and a 5 MB song at the same speed is 40,000,000 ÷ 25,000,000 = 1.6 seconds. The calculator shows this automatically when you enter a speed.
Why internet speed is sold in bits, not bytes
It looks like a marketing trick, but it goes back to how data travels. Networks move a stream of individual bits over a wire or through the air, so the natural unit for a link is bits per second. Storage, on the other hand, is counted in bytes because a byte is the smallest addressable chunk of memory.
That split is now baked into how everything is described. The US FCC's broadband reports talk about download speeds in megabits per second, while your phone's storage is in gigabytes. When the two meet, say you want to know if your connection can stream a 4K movie, you have to convert, and forgetting the factor of 8 makes a plan look eight times faster than it is. A “200 Mbps” plan is 25 megabytes per second, which streams 4K comfortably; a “20 Mbps” plan is 2.5 megabytes per second, which does not.
One more wrinkle: lowercase b means bits and uppercase B means bytes. “Mb” and “MB” are different by a factor of 8, and plenty of marketing copy mixes them on purpose.
Upload speeds work the same way. A plan advertised as 1,000 Mbps down and 50 Mbps up downloads at 125 megabytes per second but uploads at only 6.25 megabytes per second, which is why a large cloud backup can feel slow even on a fast connection. That asymmetry is normal on cable and fibre plans, and it is one more place where the bits-to-bytes factor of 8 decides how long something takes.
Common confusions that trip people up
Four mix-ups account for nearly all the wrong answers people get with data sizes.
- b vs B. A lowercase b is a bit; an uppercase B is a byte. “Mbps” is megabits, “MB/s” is megabytes, eight times more.
- kB vs KB vs KiB. Strictly, kB is 1,000 bytes, KB is often used loosely for 1,024 bytes, and KiB is unambiguously 1,024. When precision matters, KiB is the safe spelling.
- Drive capacity vs usable space. A 1 TB drive shows 931 GiB, and formatting takes a little more, so “missing” space is a unit problem, not a defect.
- Mbps vs MB/s in speed tests. Speed tests usually report megabits per second, so a result of 94 Mbps is about 11.75 MB/s, not 94 MB/s.
Worked example: someone buys a 100 Mbps plan and expects a 10 GB game to take 100 seconds. It takes 800 seconds, about 13 minutes 20 seconds, because 10 GB is 80,000,000,000 bits and the plan moves 100,000,000 bits a second. The factor of 8 is the whole story, and once you apply it the numbers stop surprising you.
Everything here runs in your browser; nothing you type is uploaded or stored.
Frequently asked questions
How many bits are in a byte?
8 bits = 1 byte, always. So 1,000 bits is 125 bytes, and 1 byte is 8 bits.
How many bytes are in a kilobyte?
It depends which kilobyte you mean. A decimal kilobyte (kB) is 1,000 bytes; a binary kibibyte (KiB) is 1,024 bytes. The difference is 2.4%.
Why does my 1 TB drive show only 931 GB?
Drive makers sell decimal terabytes (1,000,000,000,000 bytes), while your operating system reports binary gibibytes. 1,000,000,000,000 ÷ 1,073,741,824 = 931.32 GiB, so the drive is full size, it is the unit label that changes.
How many megabytes is 8 megabits?
8 megabits = 1 megabyte, because 8 bits make a byte. So an 8 Mbps connection moves 1 MB every second.
How long does it take to download 1 GB at 100 Mbps?
1 GB is 8,000,000,000 bits. At 100 Mbps that is 8,000,000,000 ÷ 100,000,000 = 80 seconds, or about 1 minute 20 seconds.
How many bits is 1 MB?
1 MB (decimal) is 8,000,000 bits. 1 MiB (binary) is 8,388,608 bits.
What is 100 Mbps in megabytes per second?
100 Mbps = 12.5 megabytes per second, because you divide by 8. A 1 GB file then takes about 80 seconds.
Is a megabit the same as a megabyte?
No. A megabit (Mb) is 1,000,000 bits and a megabyte (MB) is 8,000,000 bits. Internet speeds are sold in megabits, file sizes in megabytes, so a “100 megabit” plan downloads at 12.5 megabytes per second.
How many kilobytes is 1,024 bytes?
1,024 bytes is exactly 1 kibibyte (KiB), and 1.024 decimal kilobytes. This is the number that made the kB/KiB distinction necessary.
Why do people say 1 KB is 1,024 bytes?
Because early computing used powers of two, and 2^10 = 1,024 was close to 1,000, so it was nicknamed a kilobyte. The IEC introduced KiB in 1998 to separate 1,024 from the decimal 1,000.
How many bits are in a gigabyte?
1 GB (decimal) is 8,000,000,000 bits. 1 GiB (binary) is 8,589,934,592 bits.
How long to download 500 MB at 25 Mbps?
500 MB is 4,000,000,000 bits. At 25 Mbps that is 160 seconds, or about 2 minutes 40 seconds.
Spotted a wrong number or a broken result?
More Tech tools
- Amp-Hour Calculator
- Amps to kVA Calculator
- Audio File Size Calculator: WAV, MP3 and Storage Time
- Bandwidth Calculator
- Battery Charge Time Calculator
- Battery Life Calculator
- CFM Calculator
- Capacitance
- Capacitor Calculator
- Current Calculator
- Data Transfer Calculator
- Data Usage Calculator
- Download Time Calculator
- Downtime Cost Calculator
- Electric Charge Calculator
- Electric Potential Calculator
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.