Data Storage Converter
Convert digital storage between bytes, KB, MB, GB, TB, and 25+ units. Essential for computing, file management, and understanding storage capacity. See also our MB to GB and KB to MB converters.
Value:
Popular Data Storage Converters:
What is a Data Storage Converter?
A data storage converter is a tool that converts between different units of digital storage such as bytes, kilobytes, megabytes, gigabytes, and terabytes. It is essential for understanding file sizes, comparing storage devices, estimating bandwidth needs, and working with computer memory specifications.
History of Data Storage Measurement
Claude Shannon coined the term "bit" in 1948 as the fundamental unit of information. The byte (8 bits) became standard with IBM System/360 in the 1960s. A historical ambiguity exists between binary (1024-based) and decimal (1000-based) interpretations, which the IEC addressed in 1998 by introducing binary prefixes like kibibyte and mebibyte.
About This Data Storage Converter
This data storage converter supports 25 different units including bit, byte, kilobyte, megabyte, gigabyte, terabyte, petabyte, exabyte (both binary and decimal variants), kilobit, megabit, gigabit, terabit, nibble, word, character, and block.
Understanding Data Storage Measurement and Conversion
Data storage measures the capacity to hold digital information — the bits and bytes that make up files, programs, photos, videos, and all digital content. The fundamental unit is the bit (binary digit: 0 or 1), and 8 bits make a byte. From there, storage capacity scales through kilobytes, megabytes, gigabytes, terabytes, and beyond. A single character of text typically requires 1 byte, a high-resolution photo might be 5 megabytes, and a feature-length movie can be 4-50 gigabytes.
Data storage conversion is complicated by a persistent ambiguity: the prefixes kilo, mega, and giga can mean either powers of 1,000 (decimal, SI) or powers of 1,024 (binary). Historically, computer scientists used "kilobyte" to mean 1,024 bytes (because 2¹⁰ = 1,024 is close to 1,000), but storage manufacturers advertise using 1,000. This is why a "1 TB" hard drive shows approximately 931 GB in your operating system — the drive uses decimal TB (10¹² bytes) while the OS displays binary GiB (2³⁰ bytes).
The IEC introduced unambiguous binary prefixes in 1998: kibibyte (KiB = 1,024 bytes), mebibyte (MiB = 1,048,576 bytes), gibibyte (GiB = 1,073,741,824 bytes). While technically correct, these have not been universally adopted. Understanding both systems and converting between them is essential for anyone purchasing storage, estimating file sizes, or working in IT.
How to Convert Between Data Storage Units (Step-by-Step)
Data storage conversion requires knowing whether you are working with decimal (SI) or binary (IEC) prefixes. The approach differs between the two systems.
- Determine if you are using decimal (KB = 1,000 bytes, used by drive manufacturers) or binary (KiB = 1,024 bytes, used by operating systems).
- For decimal conversions: multiply/divide by 1,000 for each prefix step. KB → MB → GB → TB (each ×1,000).
- For binary conversions: multiply/divide by 1,024 for each prefix step. KiB → MiB → GiB → TiB (each ×1,024).
- To convert between decimal and binary: a "1 TB" drive (decimal) = 1,000,000,000,000 bytes ÷ 1,073,741,824 = 931.3 GiB (binary).
- For bits to bytes: divide bits by 8. A 100 Mbps internet connection = 12.5 MB/s (megabytes per second).
Essential Data Storage Conversion Formulas
Both decimal (SI) and binary (IEC) prefix systems are shown. Understanding both is essential:
- 1 byte = 8 bits
- 1 kilobyte (KB, decimal) = 1,000 bytes
- 1 kibibyte (KiB, binary) = 1,024 bytes
- 1 megabyte (MB, decimal) = 1,000,000 bytes = 1,000 KB
- 1 mebibyte (MiB, binary) = 1,048,576 bytes = 1,024 KiB
- 1 gigabyte (GB, decimal) = 1,000,000,000 bytes = 10⁹ bytes
- 1 gibibyte (GiB, binary) = 1,073,741,824 bytes = 2³⁰ bytes
- 1 terabyte (TB, decimal) = 10¹² bytes; 1 tebibyte (TiB, binary) = 2⁴⁰ bytes
Worked Examples — Data Storage Conversions
Example 1: A hard drive is advertised as 2 TB. How much space will your OS show (in GiB)?
Solution:
2 TB (decimal) = 2 × 10¹² = 2,000,000,000,000 bytes.
Convert to GiB: 2,000,000,000,000 ÷ 1,073,741,824 = 1,862.6 GiB.
The OS will show approximately 1,863 GB (using binary gigabytes).
Answer: A 2 TB drive shows approximately 1,863 GiB (1.82 TiB) in your operating system.
Example 2: A photo is 4.5 megabytes. How many photos fit on a 64 GB SD card?
Solution:
SD card capacity: 64 GB (decimal) = 64,000,000,000 bytes.
Actual usable (after formatting): approximately 59.6 GiB = 64,000,000,000 bytes.
Photos: 64,000,000,000 ÷ 4,500,000 = 14,222 photos (approximate).
Answer: Approximately 14,222 photos at 4.5 MB each (before filesystem overhead).
Example 3: An internet plan offers 100 Mbps download speed. What is that in megabytes per second?
Solution:
100 Mbps = 100 megabits per second.
Divide by 8 to get megabytes: 100 ÷ 8 = 12.5 MB/s.
In practice, overhead reduces this to about 11-12 MB/s actual file download speed.
Answer: 100 Mbps = 12.5 MB/s (theoretical maximum download speed).
Example 4: A database is 750 GiB. Express in decimal terabytes (TB).
Solution:
750 GiB = 750 × 1,073,741,824 = 805,306,368,000 bytes.
Convert to TB: 805,306,368,000 ÷ 10¹² = 0.805 TB.
Answer: 750 GiB = 0.805 TB (decimal).
Example 5: A video file is 2.3 GB. How many minutes of transfer time on a 50 Mbps connection?
Solution:
2.3 GB = 2,300 MB = 2,300 × 8 = 18,400 megabits.
Time = 18,400 ÷ 50 = 368 seconds = 6.13 minutes.
Answer: A 2.3 GB file takes about 6.1 minutes at 50 Mbps (theoretical; real-world will be longer).
Quick Reference — Common Data Storage Conversions
Both decimal and binary equivalencies. The "advertised vs actual" discrepancy is a direct result of the decimal/binary difference.
| From | To |
|---|---|
| 1 byte | 8 bits |
| 1 KB (decimal) | 1,000 bytes |
| 1 KiB (binary) | 1,024 bytes |
| 1 MB (decimal) | 1,000 KB |
| 1 MiB (binary) | 1,024 KiB |
| 1 GB (decimal) | 1,000 MB |
| 1 GiB (binary) | 1,024 MiB |
| 1 TB (decimal) | 1,000 GB |
| 1 TiB (binary) | 1,024 GiB |
| 1 PB (petabyte) | 1,000 TB |
| 1 PiB (pebibyte) | 1,024 TiB |
| 1 nibble | 4 bits |
| 1 Mbps | 0.125 MB/s |
| 1 Gbps | 125 MB/s |
Decimal vs Binary: The Two Data Storage Systems
The decimal (SI) system uses powers of 1,000: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes. This system is used by hard drive manufacturers, network speed ratings, and the SI standard. It aligns with the standard metric prefix definitions where kilo = 10³, mega = 10⁶, giga = 10⁹. From a marketing perspective, decimal makes drives appear larger.
The binary system uses powers of 1,024 (2¹⁰): 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes, 1 GiB = 1,073,741,824 bytes. This system reflects how computers actually address memory — RAM chips come in powers of 2 (256 MB, 512 MB, 1 GiB). Operating systems (Windows, macOS, Linux) traditionally display file sizes and drive capacity using binary calculation but label them with SI prefixes (showing "GB" when they mean GiB), creating user confusion.
The IEC 60027-2 standard (1998) introduced distinct binary prefixes to eliminate ambiguity: kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti). Linux and some technical tools use these correctly. However, most consumer software and marketing materials still mix the systems. The practical impact: a "512 GB" SSD provides about 477 GiB of OS-reported space. At the terabyte scale, the ~10% discrepancy can represent 100+ GB of "missing" space that confuses consumers.
Where Data Storage Conversion Matters
Purchasing Storage
A "1 TB" drive gives you 931 GiB of actual usable space (before formatting). Understanding this discrepancy helps set realistic expectations. A 256 GB phone actually provides about 238 GiB before the OS takes its share.
Internet Speed vs Download Time
ISPs advertise speed in Mbps (megabits), but files download in MB/s (megabytes). Divide by 8: a 200 Mbps connection downloads at 25 MB/s maximum. A 4 GB game takes at minimum 160 seconds = 2.7 minutes at full speed.
Cloud Storage Planning
Cloud services price by GB. Estimating photo library sizes (average 5 MB × 10,000 photos = 50 GB), video archives (1 hour 1080p ≈ 4-8 GB), and document collections requires accurate unit conversion.
Database & Server Administration
Database sizes in GiB, backup volumes in TB, and transfer bandwidth in Gbps all require conversion. A 2 TiB database backup over a 1 Gbps link takes: 2 × 1,099,511,627,776 × 8 ÷ 1,000,000,000 = 17,592 seconds ≈ 4.9 hours.
Video Production
Raw 4K video generates 300-750 MB per minute depending on codec and bitrate. A 30-minute shoot = 9-22 GB. Converting between bitrate (Mbps), file size (GB), and storage capacity requires all three unit types.
Memory & RAM
RAM is always binary: 8 GiB means exactly 8 × 2³⁰ bytes. DDR5 bandwidth is measured in GB/s or MT/s (megatransfers). Understanding these helps when configuring systems or diagnosing performance issues.
Why Your Drive Has Less Space Than Advertised
When you buy a "500 GB" SSD, the manufacturer means 500 × 10⁹ = 500,000,000,000 bytes. Your operating system divides by 1,073,741,824 (2³⁰) to display GiB, showing approximately 465.7 GiB — often labeled "466 GB" in the interface. Then subtract space for the filesystem structure (formatting), hidden recovery partitions, and OS-reserved space. A "500 GB" drive might show only 450-460 GB available. This is not deceptive — both the manufacturer and OS are technically correct; they just use different prefix definitions. The IEC binary prefixes (GiB, TiB) were invented specifically to resolve this confusion.
Bits vs Bytes: The Network Speed Trap
Internet service providers (ISPs) advertise in megabits per second (Mbps) because bigger numbers look better in marketing. File downloads display in megabytes per second (MB/s). Since 1 byte = 8 bits, you must divide the ISP number by 8: a "100 Mbps" plan maxes out at 12.5 MB/s. In practice, protocol overhead reduces this further to 10-11 MB/s. Additionally, "Mbps" means megabits (10⁶ bits), but some older documentation uses "Mb" ambiguously. And confusingly, "MB" usually means megabytes (10⁶ bytes) in storage contexts but could mean mebibytes (2²⁰ bytes) in RAM contexts. Always check whether "M" means 10⁶ or 2²⁰.
Key Takeaways
- Bits vs bytes: 1 byte = 8 bits. Network speeds use bits (Mbps); file sizes use bytes (MB).
- Decimal: KB/MB/GB/TB use powers of 1,000. Binary: KiB/MiB/GiB/TiB use powers of 1,024.
- A "1 TB" drive shows ~931 GiB because manufacturers use decimal but your OS uses binary.
- To convert network speed to file download speed: divide Mbps by 8 to get MB/s.
- The discrepancy between decimal and binary grows with scale: 2.4% at kilo, 4.9% at mega, 7.4% at giga, 10% at tera.
- RAM is always measured in binary. Storage (SSDs/HDDs) is marketed in decimal.
Metric Conversion Factor Tables for Data Storage Converter
| Units to convert | Multiply By The Number | Convert as Unit |
|---|---|---|
| Byte (B) | 8 | Bit (b) |
| Kilobyte (kB) | 1024 | Byte (B) |
| Megabyte (MB) | 1024 | Kilobyte (kB) |
| Megabyte (MB) | 1048576 | Byte (B) |
| Gigabyte (GB) | 1024 | Megabyte (MB) |
| Gigabyte (GB) | 1073741824 | Byte (B) |
| Terabyte (TB) | 1024 | Gigabyte (GB) |
| Terabyte (TB) | 1048576 | Megabyte (MB) |
| Petabyte (PB) | 1024 | Terabyte (TB) |
| Megabit (Mb) | 0.125 | Megabyte (MB) |
| Gigabit (Gb) | 0.125 | Gigabyte (GB) |
| Terabit (Tb) | 0.125 | Terabyte (TB) |
| Kilobyte (103) | 1000 | Byte (B) |
| Gigabyte (109) | 1000000000 | Byte (B) |
| Terabyte (1012) | 1000000000000 | Byte (B) |
Data Storageconverters & it's abbreviations
| Unit | Abbreviation | Unit | Abbreviation | Unit | Abbreviation |
|---|---|---|---|---|---|
| bit | b | byte | B | kilobyte | kB KB |
| megabyte | MB | gigabyte | GB | terabyte | TB |
| petabyte | PB | exabyte | EB | kilobit | kb Kb |
| megabit | Mb | gigabit | Gb | terabit | Tb |
| petabit | Pb | exabit | Eb | nibble | - |
| word | - | block | - | character | - |
Frequently Asked Questions
How many megabytes are in a gigabyte?
In binary (computing): 1 GB = 1,024 MB. In decimal (storage marketing): 1 GB = 1,000 MB. This is why a "500 GB" hard drive shows less space in your operating system.
What is the difference between MB and Mb?
MB (capital B) means megabytes, used for file sizes and storage. Mb (lowercase b) means megabits, used for internet speeds. 1 MB = 8 Mb, so a 100 Mbps connection downloads at about 12.5 MB/s.
Why does my hard drive show less space than advertised?
Hard drive manufacturers use decimal (1 GB = 1,000,000,000 bytes) while operating systems use binary (1 GB = 1,073,741,824 bytes). A "1 TB" drive shows as about 931 GB in your OS.
How many bytes are in a kilobyte?
In binary (traditional computing): 1 KB = 1,024 bytes. In decimal (SI standard): 1 kB = 1,000 bytes. Most operating systems use the binary definition.
How many photos can 1 GB hold?
Approximately 250-500 photos at typical smartphone quality (2-4 MB each). High-resolution RAW photos (25-50 MB each) would fit about 20-40 per gigabyte.
Complete list of Data Storage conversion units and its conversion.
- 1 byte [B] = 8 bit [b]
bytes to bits → - 1 byte [B] = 0.0009765625 kilobyte [kB]
bytes to KB → - 1 kilobyte [kB] = 1024 byte [B]
KB to bytes →
- 1 megabyte [MB] = 0.0009765625 gigabyte [GB]
MB to GB → - 1 gigabyte [GB] = 1024 megabyte [MB]
GB to MB → - 1 gigabyte [GB] = 1048576 kilobyte [kB]
GB to KB →
- 1 terabyte [TB] = 1048576 megabyte [MB]
TB to MB → - 1 terabyte [TB] = 1099511627776 byte [B]
TB to bytes → - 1 petabyte [PB] = 1024 terabyte [TB]
PB to TB →
- 1 gigabit [Gb] = 0.125 gigabyte [GB]
Gb to GB → - 1 nibble = 4 bit [b]
nibbles to bits → - 1 word = 16 bit [b]
words to bits →
- 1 byte [B] = 0.00000000093132 gigabyte [GB]
bytes to GB →
- 1 kilobyte [kB] = 0.0009765625 megabyte [MB]
KB to MB → - 1 megabyte [MB] = 1024 kilobyte [kB]
MB to KB → - 1 megabyte [MB] = 1048576 byte [B]
MB to bytes →
- 1 gigabyte [GB] = 1073741824 byte [B]
GB to bytes → - 1 gigabyte [GB] = 0.0009765625 terabyte [TB]
GB to TB → - 1 terabyte [TB] = 1024 gigabyte [GB]
TB to GB →
- 1 petabyte [PB] = 1048576 gigabyte [GB]
PB to GB → - 1 kilobyte [kB] = 8192 bit [b]
KB to bits → - 1 gigabit [Gb] = 128 megabyte [MB]
Gb to MB →
- 1 block = 512 byte [B]
blocks to bytes → - 1 kilobyte [kB] = 1048576 kilobyte (103)
KB (binary) to KB (decimal) → - 1 byte [B] = 0.00000095367 megabyte [MB]
bytes to MB →