Data Storage Converter
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, bits, and kilobits/megabits/gigabits. Edit any field to update all others.
A data storage converter translates digital capacity between units such as bits, bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes — in both decimal (base 10, used by hard drives) and binary (base 2, used by operating systems) forms. For example, 1 gigabyte (GB) equals 1,000 megabytes in decimal, but 1 gibibyte (GiB) equals 1,024 mebibytes in binary. ToolHub Pro's free data storage converter handles both systems so you can compare drive capacity, download sizes, and cloud storage plans accurately.
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.
Sources
ToolHub Pro Editorial Team
Units & Standards Reviewers · verified against official SI/BIPM unit definitions
Converter tools are verified against the official International System of Units (SI) definitions published by the BIPM and the conversion-factor standards maintained in NIST Handbook 44. Source standards are listed on each tool page.
Reviewed by ToolHub Pro Editorial Team, verified conversion factors against SI/BIPM definitions
Editorial standards →Frequently Asked Questions
How many bytes are in a gigabyte?
What is the difference between a bit and a byte?
How many GB is 1 TB?
How much data does streaming video use per hour?
Related Tools