UnitConvConvert

Data conversions

Digital data converter between storage and bandwidth units β€” bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes and megabits per second. Note: storage uses binary multiples (1 KB = 1024 bytes) in most contexts; networking uses decimal (1 Mbps = 1,000,000 bps).

8 units56 conversion toolsπŸ“Š See comparison matrix β†’
bBKBMBGBTBPBMbps
b

Bit conversions

7 toolsπŸ“– Reference β†’

The fundamental unit of digital information β€” 0 or 1

Bit to Byte
1 b = 0.125 B
Bit to Kilobyte
1 b = 0.000125 KB
Bit to Megabyte
1 b = 1.2500e-7 MB
Bit to Gigabyte
1 b = 1.2500e-10 GB
Bit to Terabyte
1 b = 1.2500e-13 TB
Bit to Petabyte
1 b = 1.2500e-16 PB
Bit to Megabit per Second
1 b = 1.0000e-6 Mbps
B

Byte conversions

7 toolsπŸ“– Reference β†’

The basic file-size and memory unit β€” 8 bits

Byte to Bit
1 B = 8 b
Byte to Kilobyte
1 B = 0.001 KB
Byte to Megabyte
1 B = 1.0000e-6 MB
Byte to Gigabyte
1 B = 1.0000e-9 GB
Byte to Terabyte
1 B = 1.0000e-12 TB
Byte to Petabyte
1 B = 1.0000e-15 PB
Byte to Megabit per Second
1 B = 8.0000e-6 Mbps
KB

Kilobyte conversions

7 toolsπŸ“– Reference β†’

One thousand bytes in networking β€” 1024 bytes in memory

Kilobyte to Bit
1 KB = 8,000 b
Kilobyte to Byte
1 KB = 1,000 B
Kilobyte to Megabyte
1 KB = 0.001 MB
Kilobyte to Gigabyte
1 KB = 1.0000e-6 GB
Kilobyte to Terabyte
1 KB = 1.0000e-9 TB
Kilobyte to Petabyte
1 KB = 1.0000e-12 PB
Kilobyte to Megabit per Second
1 KB = 0.008 Mbps
MB

Megabyte conversions

7 toolsπŸ“– Reference β†’

Photo and song file-size unit β€” 1,000,000 bytes (SI)

Megabyte to Bit
1 MB = 8,000,000 b
Megabyte to Byte
1 MB = 1,000,000 B
Megabyte to Kilobyte
1 MB = 1,000 KB
Megabyte to Gigabyte
1 MB = 0.001 GB
Megabyte to Terabyte
1 MB = 1.0000e-6 TB
Megabyte to Petabyte
1 MB = 1.0000e-9 PB
Megabyte to Megabit per Second
1 MB = 8 Mbps
GB

Gigabyte conversions

7 toolsπŸ“– Reference β†’

Storage drive and RAM unit β€” 1 billion bytes (SI)

Gigabyte to Bit
1 GB = 8,000,000,000 b
Gigabyte to Byte
1 GB = 1,000,000,000 B
Gigabyte to Kilobyte
1 GB = 1,000,000 KB
Gigabyte to Megabyte
1 GB = 1,000 MB
Gigabyte to Terabyte
1 GB = 0.001 TB
Gigabyte to Petabyte
1 GB = 1.0000e-6 PB
Gigabyte to Megabit per Second
1 GB = 8,000 Mbps
TB

Terabyte conversions

7 toolsπŸ“– Reference β†’

Large drive and NAS unit β€” 1 trillion bytes (SI)

Terabyte to Bit
1 TB = 8,000,000,000,000 b
Terabyte to Byte
1 TB = 1,000,000,000,000 B
Terabyte to Kilobyte
1 TB = 1,000,000,000 KB
Terabyte to Megabyte
1 TB = 1,000,000 MB
Terabyte to Gigabyte
1 TB = 1,000 GB
Terabyte to Petabyte
1 TB = 0.001 PB
Terabyte to Megabit per Second
1 TB = 8,000,000 Mbps
PB

Petabyte conversions

7 toolsπŸ“– Reference β†’

Datacenter and big-data unit β€” 1 quadrillion bytes

Petabyte to Bit
1 PB = 8.0000e15 b
Petabyte to Byte
1 PB = 1.0000e15 B
Petabyte to Kilobyte
1 PB = 1,000,000,000,000 KB
Petabyte to Megabyte
1 PB = 1,000,000,000 MB
Petabyte to Gigabyte
1 PB = 1,000,000 GB
Petabyte to Terabyte
1 PB = 1,000 TB
Petabyte to Megabit per Second
1 PB = 8,000,000,000 Mbps
Mbps

Megabit per Second conversions

7 toolsπŸ“– Reference β†’

ISP and network-speed unit β€” 1 Mbps = 125 kB/s

Megabit per Second to Bit
1 Mbps = 1,000,000 b
Megabit per Second to Byte
1 Mbps = 125,000 B
Megabit per Second to Kilobyte
1 Mbps = 125 KB
Megabit per Second to Megabyte
1 Mbps = 0.125 MB
Megabit per Second to Gigabyte
1 Mbps = 0.000125 GB
Megabit per Second to Terabyte
1 Mbps = 1.2500e-7 TB
Megabit per Second to Petabyte
1 Mbps = 1.2500e-10 PB

Tips for data conversions

8 bits = 1 byte. Storage usually quoted in bytes; network bandwidth in bits.
1 KB is ambiguous: 1000 bytes (SI) in networking and drives, 1024 bytes (binary) in RAM and OS.
A 1 Gbps connection transfers ~125 MB/s (divide Mbps by 8 to approximate MB/s).
File sizes: MB usually 1024 KB in OS, 1000 KB on disc packaging.

Common mistakes to avoid

Confusing bits (b) and bytes (B) β€” 8Γ— difference.
Assuming 1 GB drive holds 1 billion bytes β€” OS-formatted shows less (binary interpretation).
Mixing Mbps (network) with MB/s (file transfer) β€” factor of 8.
Ignoring compression and overhead in real-world transfer speeds.

Learn about each unit

Full encyclopedia page for every data unit β€” definition, history, uses, tips.

What is a bit?
b
What is a byte?
B
What is a kilobyte?
KB
What is a megabyte?
MB
What is a gigabyte?
GB
What is a terabyte?
TB
What is a petabyte?
PB
What is a megabit per second?
Mbps

Data conversion FAQ

Why does my 1 TB hard drive show less than 1 TB?
Hard-drive makers use 1 TB = 1,000,000,000,000 bytes (decimal). Operating systems often report in "binary" units: 1 TB = 1,099,511,627,776 bytes. The same drive shows as 931 GB (binary) in Windows. Same data, different units.
Is my internet connection speed in megabits or megabytes?
ISPs advertise in megabits per second (Mbps). Your browser or download manager often shows megabytes per second (MB/s). Divide Mbps by 8 to estimate MB/s. A 100 Mbps connection delivers about 12.5 MB/s peak.
What are KiB, MiB and GiB?
These are binary-strict versions: KiB = 1024 bytes, MiB = 1024 KiB, GiB = 1024 MiB. They exist to avoid ambiguity with SI (decimal) units. Linux and modern memory specifications use them; Windows and storage marketing usually stick with KB, MB, GB.