How the bits-to-bytes conversion works
Bits are the smallest unit of information (0 or 1). Bytes are groups of 8 bits, used to represent characters or chunks of data. Many networking tools talk in bits per second (bps), while storage tools talk in bytes, so you often need to convert.
Formulas
bytes = bits ÷ 8
bits = bytes × 8
Decimal prefixes (base 10):
- 1 kB = 1000 B
- 1 MB = 1000 kB
- 1 GB = 1000 MB
Binary prefixes (base 2):
- 1 KiB = 1024 B
- 1 MiB = 1024 KiB
Why converters online give slightly different results
Some sites assume decimal (1 kB = 1000 B), others assume binary (1 KiB = 1024 B) but still label it “kB”. That’s why you may see small differences. This page makes the distinction visible.
FAQ
1. My internet speed is in Mbps, but my download shows MB/s. Why?
ISPs advertise megabits per second (Mb/s). Your browser shows megabytes per second (MB/s). Since 1 byte = 8 bits, divide the connection speed by 8 to get the maximum MB/s.
2. What should I store in my database?
Store bytes as the canonical value. It’s easy to go from bytes to bits (× 8) and to any human-readable unit.
3. Can I use this for teaching?
Yes. Show students both decimal and binary results so they grasp software vs marketing differences.
Formula (LaTeX) + variables + units
','\
bytes = bits ÷ 8 bits = bytes × 8 Decimal prefixes (base 10): 1 kB = 1000 B 1 MB = 1000 kB 1 GB = 1000 MB Binary prefixes (base 2): 1 KiB = 1024 B 1 MiB = 1024 KiB
- No variables provided in audit spec.
- NIST — Weights and measures — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/weights-and-measures - NIST — SI units — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/owm/metric-si/si-units
Last code update: 2026-01-19
- Initial audit spec draft generated from HTML extraction (review required).
- Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
- Confirm sources are authoritative and relevant to the calculator methodology.