Bits and Bytes Converter
Convert any data size or transfer rate between bits, bytes, and all prefixed units - KB vs KiB, MB vs MiB, Mbps vs MB/s - in one table.
Bits, Bytes, and Data Units
Digital data is measured in bits and bytes. A bit is the fundamental unit - a single binary digit (0 or 1). A byte is 8 bits and is the standard unit for file sizes and storage.
Data units scale with prefixes. There are two competing prefix systems:
SI (decimal, powers of 1,000) - used by hard drive manufacturers, network equipment, and most consumer products:
- Kilobyte (KB) = 1,000 bytes
- Megabyte (MB) = 1,000,000 bytes
- Gigabyte (GB) = 1,000,000,000 bytes
- Terabyte (TB) = 1,000,000,000,000 bytes
IEC (binary, powers of 1,024) - used by operating systems, RAM, and programming:
- Kibibyte (KiB) = 1,024 bytes
- Mebibyte (MiB) = 1,048,576 bytes
- Gibibyte (GiB) = 1,073,741,824 bytes
- Tebibyte (TiB) = 1,099,511,627,776 bytes
The two systems diverge significantly at scale: 1 TB = 931 GiB. This explains why a “1 TB” hard drive appears as ~931 GB in your operating system.
Data rates (network speeds, disk I/O) are measured in bits per second: Kbps, Mbps, Gbps. To convert to bytes per second, divide by 8: 100 Mbps = 12.5 MB/s.
📐 Formula
Conversion via bits (the universal intermediate): bits = value × bits_per_unit result = bits ÷ bits_per_unit_of_target
Key equivalences:
- 1 byte = 8 bits
- 1 nibble = 4 bits (= ½ byte)
- 1 KB = 1,000 bytes (SI) or 1 KiB = 1,024 bytes (IEC)
- Mbps ÷ 8 = MB/s (megabits per second to megabytes per second)
📖 How to Use
Steps to Calculate
💡 Example Calculations
Example 1 — 1 GB: How Many MB, MiB, Bits?
Convert 1 GB (SI gigabyte)
Example 2 — 100 Mbps Internet Connection
Convert 100 Mbps to MB/s, KB/s, and transfer time for 1 GB
Example 3 — 500 MB: Bits and All Prefixed Forms
Convert 500 MB to all units
❓ Frequently Asked Questions
🔗 Related Calculators
What is the difference between a bit and a byte?
A bit (b) is the smallest unit of digital information - a single binary digit, either 0 or 1. A byte (B) is 8 bits and is the standard unit for measuring data storage and file sizes. Almost all storage sizes (file sizes, disk sizes, RAM) are measured in bytes or multiples thereof. Network speeds are measured in bits per second (bps, Kbps, Mbps, Gbps).
What is the difference between KB (kilobyte) and KiB (kibibyte)?
KB (kilobyte, SI prefix) = 1,000 bytes. KiB (kibibyte, IEC binary prefix) = 1,024 bytes (= 2¹⁰). Hard drive manufacturers use SI (1 TB = 10¹² bytes). Operating systems historically used binary prefixes (1 KB = 1,024 bytes). The IEC introduced the KiB/MiB/GiB/TiB notation in 1998 to eliminate this ambiguity. At 1 TB, the difference is about 9.1%: a '1 TB' drive holds 931 GiB as reported by your OS.
How do you convert Mbps to MB/s?
Divide Mbps by 8: MB/s = Mbps ÷ 8. This is because 1 byte = 8 bits. Examples: 100 Mbps = 12.5 MB/s; 1 Gbps = 125 MB/s; 5 Gbps (USB 3.0 theoretical) = 625 MB/s. Internet providers advertise in Mbps; browsers and download managers show MB/s or MiB/s. Always divide by 8 to compare them.
How do you convert GB to MB?
SI: 1 GB = 1,000 MB (= 10³ MB). Binary IEC: 1 GiB = 1,024 MiB. To convert: multiply GB by 1,000 to get MB, or multiply GiB by 1,024 to get MiB. Example: a 500 GB SSD = 500,000 MB = 476,837 MiB (as your OS might report it). The 5% difference at GB scale and ~10% at TB scale explains why a '1 TB' drive appears as ~931 GB in Windows.
What is a nibble?
A nibble is 4 bits - exactly half a byte. Nibbles are significant in computing because one hexadecimal digit represents exactly one nibble (4 bits = one hex digit from 0 to F). A byte (8 bits) is two nibbles, represented as two hex digits (00 to FF). Nibbles are used internally in BCD (Binary Coded Decimal) arithmetic and in describing the structure of hex data.
What are the IEC binary prefixes?
The IEC (International Electrotechnical Commission) standardized binary prefixes in 1998: kibi (Ki) = 2¹⁰ = 1,024; mebi (Mi) = 2²⁰ = 1,048,576; gibi (Gi) = 2³⁰ = 1,073,741,824; tebi (Ti) = 2⁴⁰; pebi (Pi) = 2⁵⁰; exbi (Ei) = 2⁶⁰. These are exact powers of 2. The SI prefixes (k, M, G, T) remain as exact powers of 1,000. Using IEC notation (KiB, MiB, GiB) unambiguously means binary; using KB, MB, GB means decimal (1,000-based).
What is the difference between storage capacity and transfer speed units?
Storage capacity (file sizes, disk sizes, RAM): measured in bytes and byte-multiples (B, KB, MB, GB, TB). Transfer speed (network links, disk I/O): measured in bits per second (bps, Kbps, Mbps, Gbps) or bytes per second (B/s, KB/s, MB/s, GB/s). Network speeds almost always use bits per second. To find how long a file transfer takes: divide file size (in bits) by speed (in bps). Example: 1 GB file (= 8 Gb) over 100 Mbps link = 8,000 Mb ÷ 100 Mbps = 80 seconds.
How much data can a typical internet plan transfer?
Monthly data capacity at common plan speeds (assuming 100% utilization, 24/7): 10 Mbps = 3.2 TB/month; 100 Mbps = 32.4 TB/month; 1 Gbps = 324 TB/month. Most residential plans have data caps of 1–2 TB/month, making the actual monthly transfer far less than theoretical capacity. Use the Bandwidth Calculator to compute transfer times for specific file sizes.
How many bytes is a petabyte?
1 PB (petabyte, SI) = 10¹⁵ bytes = 1,000,000,000,000,000 bytes = 1,000 TB. 1 PiB (pebibyte, IEC) = 2⁵⁰ bytes = 1,125,899,906,842,624 bytes ≈ 1.126 × 10¹⁵ bytes. Global internet traffic is measured in exabytes (EB = 10¹⁸ bytes). Large cloud data centers store tens to hundreds of petabytes. A petabyte of MP3 audio at 128 kbps would represent approximately 2,000 years of listening.
Why do hard drives show less capacity than advertised?
Drive manufacturers use SI decimal prefixes (1 TB = 10¹² bytes = 1,000,000,000,000 bytes). Operating systems report capacity in binary (1 GiB = 2³⁰ = 1,073,741,824 bytes). A 1 TB drive contains exactly 1,000,000,000,000 bytes. Windows reports this as 931.3 GB (dividing by 1,073,741,824 per 'GB'). macOS uses SI since 2009 and reports 1 TB correctly. Linux uses GiB but may display as GB. There is no missing space - just a labeling difference.
How much data does streaming use?
Approximate streaming data per hour: SD (480p) ~700 MB–1 GB; HD (1080p) ~3–5 GB; 4K HDR ~7–20 GB; CD-quality audio ~115 MB; lossless FLAC ~300 MB. For a 100 Mbps connection: downloading 1 GB takes 80 seconds (100 Mbps = 12.5 MB/s; 1,000 MB ÷ 12.5 MB/s = 80 s). A 4K movie at 15 GB takes about 20 minutes to download at 100 Mbps.