Data Unit Converter

Convert between bits, bytes, KB, MB, GB, TB, PB, and networking data units instantly.

Inputs

What is a Data Unit?

A data unit is a standardized measure of digital information. The smallest unit is a bit — a single binary value of 0 or 1. Eight bits make one byte, and multiples of bytes form the kilobytes, megabytes, and gigabytes familiar from everyday computing.

Two competing standards define data units: the SI (decimal) system used by storage manufacturers (where 1 KB = 1,000 bytes), and the IEC binary system used by operating systems (where 1 KiB = 1,024 bytes). This discrepancy explains why a 1 TB hard drive shows roughly 931 GiB in Windows.

Bits vs Bytes — The Core Distinction

Bits (b)

Used for network speeds and data rates. Mbps and Gbps measure how many megabits or gigabits flow per second over a connection. Always lowercase 'b'.

Bytes (B)

Used for file sizes and storage capacity. Your 5 MB photo, 4 GB RAM, or 1 TB hard drive all use bytes. Always uppercase 'B'.

Decimal (SI)

1 KB = 1,000 B. Used by storage manufacturers, ISPs, and most consumer devices. Based on powers of 10.

Binary (IEC)

1 KiB = 1,024 B. Used by operating systems and memory chips. Based on powers of 2. Prefixed with Ki, Mi, Gi, Ti.

6 Ways to Use the Data Unit Converter

01

Compare storage specs

Verify how a manufacturer's 1 TB matches the 931 GiB shown by your OS before purchasing external drives.

02

Plan file transfers

Convert a 4.7 GiB Blu-ray rip to MB to check if it fits your device's remaining space.

03

Match ISP speed claims

Convert your 100 Mbps plan to MB/s to understand actual file download rates (it's 12.5 MB/s, not 100).

04

Cloud storage billing

Cloud providers bill in GB (decimal). Convert your usage in GiB to confirm charges on your bill.

05

Network engineering

Convert between Gbps, Mbps, and MBps for switch capacity planning and interface bandwidth analysis.

06

Teaching digital literacy

Use the comparison table to explain why a 16 GB USB drive holds less than expected to students or clients.

Core Conversion Formulas

bits → bytesbytes = bits ÷ 8
MB → GB (decimal)GB = MB ÷ 1,000
MiB → GiB (binary)GiB = MiB ÷ 1,024
Mbps → MB/sMB/s = Mbps ÷ 8
GB → GiBGiB = GB × (1,000³ ÷ 1,024³) ≈ GB × 0.9313

Common Mistakes When Converting Data Units

Confusing Mb with MB

Megabits (Mb) are 8× smaller than Megabytes (MB). Your 100 Mbps internet delivers ~12.5 MB/s, not 100 MB/s.

Assuming 1 GB = 1024 MB

Hard drives and cloud services use 1 GB = 1,000 MB (decimal). Operating systems use 1 GiB = 1,024 MiB. Mixing them causes apparent 'missing' storage.

Using MB/s for network speeds

ISPs advertise in Mbps (megabits per second), not MB/s. Divide Mbps by 8 to get the real-world file download speed in MB/s.

Ignoring protocol overhead

TCP/IP headers consume 3–10% of raw bandwidth. Effective throughput is always slightly less than headline speed.

Why Accurate Data Unit Conversion Matters

Storage Purchasing

Avoid buyer's remorse — know exactly how much usable space you'll see before buying.

Network Planning

Accurate unit conversion is the foundation of capacity planning for switches and uplinks.

Cloud Cost Control

Cloud providers charge per GB transferred. Precise conversion prevents billing surprises.

About This Bandwidth Calculator

Accurate Formulas

Built on IEEE 1541 IEC binary standards and SI decimal definitions per NIST Special Publication 330.

Free & Private

All calculations run in your browser. No data is sent to servers, stored, or used for analytics.

Independently Verified

Results cross-checked against Wolfram Alpha unit conversions and network engineering references.

Related tools: Unit Converter, Speed Calculator, Time Calculator, IP Subnet Calculator, Percentage Calculator.

Frequently Asked Questions

The bit (binary digit) is the smallest unit of digital data. It holds a single binary value — either 0 or 1. Eight bits form one byte. All larger storage units are multiples of bytes: kilobytes, megabytes, gigabytes, and so on. In networking, bits are also the base unit for measuring transfer rates in bits per second (bps).

Hard drive manufacturers define 1 GB as exactly 1,000,000,000 bytes (decimal, SI standard). Operating systems like Windows define 1 GiB (gibibyte) as 1,073,741,824 bytes (binary, IEC standard). So a '1 TB' drive contains 1,000,000,000,000 bytes, which Windows displays as about 931 GiB. The drive isn't smaller — the counting method differs. The correct unit for OS-reported sizes is GiB, not GB.

In the SI decimal system (used by storage manufacturers and most consumer contexts): 1 GB = 1,000 MB. In the IEC binary system (used by operating systems): 1 GiB = 1,024 MiB. The difference is about 7.4%. For everyday calculations, 1 GB ≈ 1,000 MB is the standard answer; for programming or OS-level work, use 1 GiB = 1,024 MiB.

Mbps (megabits per second) is a networking rate unit; MB/s (megabytes per second) is a file transfer rate unit. Since 1 byte = 8 bits, to convert: MB/s = Mbps ÷ 8. A 100 Mbps internet connection delivers a maximum of 12.5 MB/s. Internet service providers always advertise in Mbps; download managers show progress in MB/s or KB/s.

Kibibyte (KiB) is an IEC binary prefix meaning exactly 1,024 bytes — from 'kilo binary byte.' It was introduced in 1998 to eliminate ambiguity between the SI prefix kilo (1,000) and the binary interpretation (1,024). Similarly, MiB = 1,048,576 bytes, GiB = 1,073,741,824 bytes. Operating systems and RAM manufacturers typically use binary units, making KiB/MiB/GiB the accurate terms.

Gbps to MB/s: divide by 8 (to convert bits to bytes), then multiply by 1,000 (since Gbps uses gigabits = 10^9 and MB/s uses megabytes = 10^6). Formula: MB/s = Gbps × 125. Example: 1 Gbps = 125 MB/s. For binary MB/s (MiB/s): 1 Gbps = 1,000,000,000 ÷ 8 ÷ 1,048,576 ≈ 119.2 MiB/s.

In decimal (SI): 1 PB = 10^15 bytes = 1,000,000,000,000,000 bytes (one quadrillion bytes). In binary (IEC): 1 PiB = 2^50 bytes = 1,125,899,906,842,624 bytes. At 1 Gbps, transferring 1 PB would take about 8,000,000 seconds — over 92 days. Cloud platforms like AWS, Azure, and Google Cloud manage exabytes (1,000 PB) of data.

RAM manufacturers label memory in binary GiB but market it as GB. A '16 GB RAM' module contains exactly 16 × 1,073,741,824 = 17,179,869,184 bytes. Your OS will correctly report it as 16 GiB (or approximately 16 GB in loose usage). Unlike hard drives — where the decimal vs binary discrepancy creates a visible gap — RAM sizes come in exact powers of 2, so the difference is mostly academic.

Network speed in Gbps (gigabits per second) measures the rate of data flow. Storage in GB (gigabytes) measures a static quantity of data. They're related: transferring 1 GB of data at 1 Gbps takes 8 seconds (since 1 GB = 8 Gbits, and 8 Gbits ÷ 1 Gbps = 8 s). The key distinction: Gbps is a rate (per second), while GB is an amount (total bytes).

Scientific notation expresses very large or very small numbers in the form A × 10^n. In data conversion it's useful for extreme values: 1 PB = 8 × 10^15 bits = 8.0000e+15. This calculator displays scientific notation when values exceed 10^12 or fall below 10^-6, making comparison and verification easier when working with petabyte-scale or sub-byte quantities.