TH
ToolHub Pro
Converter Tools

Data Storage Converter

Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, bits, and kilobits/megabits/gigabits. Edit any field to update all others.

By ToolHub Pro, Editorial Team·Updated 2026-06-01
B
KB
MB
GB
TB
PB
bit
Kbit
Mbit
Gbit

Editing: Gigabytes (GB) → all other units update automatically

Decimal vs. Binary: The Source of Most Confusion

Data storage units have two competing definitions, and the difference matters when your "1 TB" hard drive shows up as 931 GB in Windows. The confusion comes from the prefix "kilo." In the metric system, kilo always means 1,000. But early computer engineers found it convenient to use 1,024 (which is 2¹⁰) because computers work in powers of two. and 1,024 is close enough to 1,000 that they used the same prefixes.

To resolve this, the IEEE and IEC introduced binary prefixes: kibibyte (KiB) = 1,024 bytes, mebibyte (MiB) = 1,048,576 bytes, gibibyte (GiB) = 1,073,741,824 bytes. Hard drive manufacturers use decimal (1 GB = 1,000,000,000 bytes), while operating systems traditionally report in binary (1 GB displayed = 1,073,741,824 bytes). A 1 TB drive sold as 1,000,000,000,000 bytes = 931.32 GiB. which is why it appears smaller than advertised.

Key Conversion Factors

Using decimal (SI) definitions:

  • 1 byte = 8 bits
  • 1 kilobyte (KB) = 1,000 bytes
  • 1 megabyte (MB) = 1,000,000 bytes
  • 1 gigabyte (GB) = 1,000,000,000 bytes
  • 1 terabyte (TB) = 1,000,000,000,000 bytes
  • 1 petabyte (PB) = 1,000,000,000,000,000 bytes

Example: a 25 MB email attachment is 25 × 8 = 200 megabits. If your internet connection speed is 100 Mbps (megabits per second), that file downloads in 200 ÷ 100 = 2 seconds. assuming no overhead.

Bits vs. Bytes in Networking

Internet speeds are always quoted in bits per second (Mbps, Gbps), while file sizes are quoted in bytes (MB, GB). This catches many people out. A 500 Mbps connection transfers 500 ÷ 8 = 62.5 megabytes per second. When you see a download speed in your browser showing "MB/s," multiply by 8 to compare it to your advertised plan speed in Mbps.

Source: IEEE 1541-2002. Prefixes for Binary Multiples

Frequently Asked Questions

How many bytes are in a gigabyte?
In decimal (SI) terms, 1 gigabyte (GB) = 1,000,000,000 bytes. In binary terms, 1 gibibyte (GiB) = 1,073,741,824 bytes. Hard drive manufacturers use decimal GB; operating systems historically used binary GiB but labelled them GB — which is why a 1 TB drive shows as about 931 GB in Windows.
What is the difference between a bit and a byte?
A bit is the smallest unit of digital data — a single 0 or 1. A byte is 8 bits. Network speeds are typically measured in bits per second (Mbps, Gbps), while file sizes are measured in bytes (MB, GB). A 100 Mbps connection transfers 100 megabits = 12.5 megabytes per second.
How many GB is 1 TB?
In decimal terms, 1 terabyte (TB) = 1,000 gigabytes (GB). In binary terms, 1 tebibyte (TiB) = 1,024 gibibytes (GiB). Consumer storage (SSDs, HDDs, flash drives) uses decimal, while memory (RAM) often uses binary. This is why advertised and reported capacities differ.
How much data does streaming video use per hour?
Standard definition (480p) uses roughly 0.7 GB per hour. HD (1080p) uses 3–4 GB per hour. 4K HDR streaming can use 7–20 GB per hour depending on codec and bitrate. These are approximate; actual usage depends on the streaming service and content type.