Data Size Converter - KB, MB, GB, TB

  • Bits (b)
  • Bytes (B)
  • Kilobytes (KB, 10³)
  • Megabytes (MB, 10⁶)
  • Gigabytes (GB, 10⁹)
  • Terabytes (TB, 10¹²)
  • Kibibytes (KiB, 2¹⁰)
  • Mebibytes (MiB, 2²⁰)
  • Gibibytes (GiB, 2³⁰)
  • Tebibytes (TiB, 2⁴⁰)
  • Megabytes (MB, 10⁶)
  • Gigabytes (GB, 10⁹)
  • Terabytes (TB, 10¹²)
  • Kilobytes (KB, 10³)
  • Bytes (B)
  • Bits (b)
  • Kibibytes (KiB, 2¹⁰)
  • Mebibytes (MiB, 2²⁰)
  • Gibibytes (GiB, 2³⁰)
  • Tebibytes (TiB, 2⁴⁰)
Results
—
—

Convert digital storage and data size units instantly with our Data Size Converter. It supports both decimal units (KB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB), plus bits and bytes — all converted through the byte as the base unit.

The decimal vs binary distinction matters in practice: drive manufacturers label capacity in decimal units (1 TB = 10¹² bytes), while operating systems often display binary (1 TiB = 2⁴⁰ bytes). That's why a "1 TB" drive shows roughly 931 GiB in your OS — no data is missing, the units differ.

The converter is useful for storage planning (how many GB of photos fit on a drive), network math (converting Mb/s transfer rates to file sizes), memory sizing, and understanding download limits. All conversions update live as you type.

Formula
Convert to bytes (base unit), then to target unit. 1 B = 8 bits; decimal: 1 KB = 10³ B; binary: 1 KiB = 1024 B

FAQ

What is the difference between KB and KiB?
KB (kilobyte) uses decimal prefixes: 1 KB = 1,000 bytes. KiB (kibibyte) uses binary prefixes: 1 KiB = 1,024 bytes. Storage manufacturers use decimal units, while operating systems often display binary units.
Why does my 1 TB drive show 931 GB?
Drive makers use decimal units (1 TB = 10¹² bytes), but your OS displays binary units (1 TiB = 2⁴⁰ bytes ≈ 1.0995 TB). So 1 TB shows as about 931 GiB.
How many MB in a GB?
Decimal: 1 GB = 1,000 MB. Binary: 1 GiB = 1,024 MiB. File sizes are usually shown in decimal MB/GB by operating systems, but memory uses binary units.
How many bits in a byte?
Exactly 8 bits make one byte. Network speeds are measured in bits (Mb/s, Gb/s) while file sizes use bytes (MB, GB) — divide by 8 to compare them.

Related Calculators