PureDevTools

Byte & Bit Unit Converter

Convert between Bit, Byte, KB, MB, GB, TB, PB and KiB, MiB, GiB, TiB, PiB — SI decimal and IEC binary — instantly in your browser

All processing happens in your browser. No data is sent to any server.

Input

Human-readable equivalent

SI decimal:1 GB
IEC binary:953.67 MiB

Base Units

Bit · Byte
b
8000000000
B
1000000000

SI Decimal

1 KB = 1,000 B · 1 MB = 1,000,000 B
KB
1000000
MB
1000
GB
1input
TB
0.001
PB
1.0000e-6

IEC Binary

1 KiB = 1,024 B · 1 MiB = 1,048,576 B
KiB
976562.5
MiB
953.6743164063
GiB
0.9313225746
TiB
0.0009094947
PiB
8.8818e-7
Quick reference table (common sizes) ▸
Bytes (B)Kilobytes (KB)Kibibytes (KiB)Megabytes (MB)Mebibytes (MiB)
5120.5120.50.0005120.000488
1,0241.02410.0010240.000977
1,00010.97660.0010.000954
1,048,5761048.57610241.0485761
1,000,0001000976.562510.953674
1,073,741,8241073741.82410485761073.7418241024
1,000,000,0001000000976562.51000953.674

Your new SSD says “1 TB” on the box but Windows shows 931 GB. Your ISP promises “500 Mbps” but files download at 62 MB/s. Your Docker image is “2.3 GB” on Docker Hub but takes 2.14 GiB of disk space. None of these numbers are wrong — they’re in different units, and the difference matters when you’re sizing cloud storage, estimating download times, or figuring out why your disk is “missing” 70 GB.

Why This Converter (Not Google or Mental Math)

Google can convert “1 TB to GB” but doesn’t distinguish SI from IEC — it gives you 1,000 GB and ignores the GiB question entirely, which is usually the one you’re actually asking. Quick mental math breaks down at petabyte scale or when mixing bits and bytes across SI and IEC standards.

This converter shows both SI and IEC results side by side for the same input, so you immediately see the gap. It also handles bits (for network speeds) alongside bytes (for file sizes) — the ÷ 8 conversion that trips people up when comparing download speeds to file sizes. Everything runs in your browser; your numbers never leave your device.

What Is a Byte/Bit Unit Converter?

A byte unit converter translates data size values between all common storage and networking units. This converter supports two standards simultaneously: the SI decimal system (KB, MB, GB — powers of 1,000) used in storage marketing and the IEC binary system (KiB, MiB, GiB — powers of 1,024) used by operating systems and RAM specifications. Understanding the difference is essential for avoiding the “missing storage” confusion every computer user encounters.

SI Decimal vs IEC Binary: The Core Difference

The most common source of confusion in computing: why does a “1 TB” hard drive show as ~931 GiB in Windows?

SI Decimal (powers of 1,000)

UnitSymbolValue in Bytes
KilobyteKB1,000 bytes
MegabyteMB1,000,000 bytes
GigabyteGB1,000,000,000 bytes
TerabyteTB1,000,000,000,000 bytes
PetabytePB1,000,000,000,000,000 bytes

Where you see SI decimal: hard drive packaging, SSD specs, cloud storage pricing, file download sizes, network speeds (though network uses bits, not bytes).

IEC Binary (powers of 1,024)

UnitSymbolValue in Bytes
KibibyteKiB1,024 bytes
MebibyteMiB1,048,576 bytes
GibibyteGiB1,073,741,824 bytes
TebibyteTiB1,099,511,627,776 bytes
PebibytePiB1,125,899,906,842,624 bytes

Where you see IEC binary: RAM specifications, operating system file explorers (Windows Explorer, macOS Finder historically), virtual machine disk sizes, Docker image layers.

Why the Discrepancy Grows with Size

Stated SizeDecimal (advertised)Binary (OS shows)Gap
1 KB1,000 B1,024 B2.4%
1 MB1,000,000 B1,048,576 B4.9%
1 GB1,000,000,000 B1,073,741,824 B7.4%
1 TB1,000,000,000,000 B1,099,511,627,776 B9.9%

A “1 TB” drive contains exactly 1,000,000,000,000 bytes. Your OS, which counts in powers of 1,024, divides that by 1,073,741,824 and displays ~931 GiB. Nothing is missing — it’s a unit labeling difference.

Bits vs Bytes

ConceptSymbolRelationship
Bitb (lowercase)Smallest digital unit (0 or 1)
ByteB (uppercase)8 bits — fundamental file size unit
KilobitKb1,000 bits
MegabitMb1,000,000 bits
GigabitGb1,000,000,000 bits

Critical: networking speeds are measured in bits per second (Mbps, Gbps), while file sizes use bytes (MB, GB). A 100 Mbps connection downloads at ~12.5 MB/s. Always check whether you’re reading bits (b) or bytes (B).

Download speed in MB/s = Mbps ÷ 8
Example: 100 Mbps ÷ 8 = 12.5 MB/s

Common Conversions Reference

File Sizes

ItemApproximate Size
Plain text email20–50 KB
MP3 (3 min, 128 kbps)~3 MB
JPEG photo (12 MP)3–8 MB
RAW photo (24 MP)25–40 MB
Full HD video (1 min)~130 MB
4K video (1 min)~400 MB
DVD (single layer)4.7 GB
Blu-ray (single layer)25 GB

Network Speeds

ConnectionSpeedDownload 1 GB
ADSL8 Mbps~17 minutes
Cable (100 Mbps)100 Mbps~80 seconds
Gigabit fiber1 Gbps~8 seconds
WiFi 6 (peak)9.6 Gbps< 1 second

How to Convert Between Byte Units

All conversions route through the bit as the fundamental unit:

bits = input_value × bits_per_unit
result = bits ÷ bits_per_target_unit

SI Decimal examples:

1 MB to KB:  1 × 8,000,000 bits ÷ 8,000 = 1,000 KB
1 GB to MB:  1 × 8,000,000,000 bits ÷ 8,000,000 = 1,000 MB

IEC Binary examples:

1 MiB to KiB:  1 × 8,388,608 bits ÷ 8,192 = 1,024 KiB
1 GiB to MiB:  1 × 8,589,934,592 bits ÷ 8,388,608 = 1,024 MiB

Cross-standard example:

1 GB (SI) to GiB (IEC):
  1 GB = 1,000,000,000 bytes
  1 GiB = 1,073,741,824 bytes
  1 GB ÷ 1,073,741,824 ≈ 0.9313 GiB

Practical Use Cases

Checking Disk Space

Your 500 GB SSD is advertised as 500,000,000,000 bytes. Windows shows:

macOS shows the same drive as ~500 GB (macOS switched to decimal in 10.6 Mountain Lion). Linux df shows it in GiB by default.

Calculating Download Time

You need to download a 4.2 GiB file on a 50 Mbps connection:

  1. Convert 4.2 GiB to bits: 4.2 × 1,073,741,824 × 8 = 36,073,013,453 bits
  2. Divide by 50,000,000 (50 Mbps) = ~721 seconds ≈ 12 minutes

RAM vs Storage

RAM is measured in true binary GiB (1,073,741,824 bytes). A “16 GB RAM” module contains exactly 16 × 1,073,741,824 bytes. This is one case where “GB” actually means GiB in most usage — hardware manufacturers use binary for RAM, decimal for storage.

Data Center & Cloud Storage

Cloud providers bill in decimal GB (Amazon S3, Google Cloud Storage, Azure Blob). When you pay for “1 TB” of storage, you get 1,000,000,000,000 bytes — not 1,099,511,627,776 bytes. Calculate your actual storage needs using decimal (SI) units when planning cloud costs.

Historical Context

Before 1998, “kilobyte” universally meant 1,024 bytes because computer memory is addressed in powers of 2. The IEC standardized the KiB/MiB/GiB prefixes in 1998 to eliminate ambiguity. However, storage manufacturers had already been using decimal definitions for decades. Today:

Frequently Asked Questions

Why does my 1 TB drive show 931 GB in Windows? Windows reports in GiB (powers of 1,024) but labels them “GB.” 1,000,000,000,000 bytes ÷ 1,073,741,824 bytes/GiB = 931.32 GiB. The drive is exactly as advertised — the OS uses a different scale.

Is 1 MB = 1,000 KB or 1,024 KB? In the strict SI standard: 1 MB = 1,000 KB. In the IEC binary standard: 1 MiB = 1,024 KiB. In informal usage, both have been used for MB historically, which is why the IEC binary prefixes (MiB, GiB) exist.

How many bytes in a gigabyte? Exactly 1,000,000,000 bytes (SI decimal), or 1,073,741,824 bytes (IEC gibibyte). Always clarify which standard is being used.

What is a petabyte? 1 PB = 1,000 TB = 1,000,000 GB = 1,000,000,000 MB = 1 quadrillion bytes (10^15). The Internet produces approximately 2.5 quintillion bytes (2,500,000 PB) of data per day.

Is my data sent to a server? No. All conversions are computed entirely in your browser using JavaScript. No data is transmitted to any server. Your values remain completely private.

Related Tools

More Encoding & Crypto Tools