Data Storage Calculator

Convert between data storage units: bytes, kilobytes, megabytes, gigabytes, terabytes, and more.

Input

Binary: Used by operating systems (KiB, MiB, GiB)
Decimal: Used by storage manufacturers (KB, MB, GB)

Binary Units (Base 1024)

B
1,07,37,41,824
KiB
10,48,576
MiB
1,024
GiB
1
TiB
0.00097656
PiB
9.5367e-7
EiB
9.3132e-10

In Bits

Bits

8,58,99,34,592

Megabits

8,589.9346

Unit Reference

Binary: 1 KiB = 1024 B, 1 MiB = 1024 KiB, etc.

Decimal: 1 KB = 1000 B, 1 MB = 1000 KB, etc.

Note: Storage manufacturers use decimal, OS uses binary

What Is Data Storage and Why Do Units Matter?

Data storage refers to the capacity of a device or medium to hold digital information. Every file you save, every photo you take, and every application you install consumes a measurable amount of storage space expressed in standardized units. Understanding these units is essential for choosing the right storage devices, planning backups, estimating transfer times, and troubleshooting capacity issues.

At the most fundamental level, all digital data is stored as bits — binary digits with a value of either 0 or 1. Eight bits grouped together form one byte, the basic addressable unit of computer memory. From bytes, larger units are built using either a binary or decimal prefix system, and the difference between them causes one of the most common sources of confusion in computing.

Storage manufacturers measure capacity using the decimal (SI) system, where each prefix represents a power of 1,000. A manufacturer advertising a "1 TB" hard drive means 1,000,000,000,000 bytes. Operating systems such as Windows, macOS, and Linux traditionally measure storage using the binary (IEC) system, where each prefix represents a power of 1,024. That same 1 TB drive reported by an OS may show approximately 931 GiB, leading users to believe they "lost" storage when in fact both measurements are correct — they simply use different reference bases.

The International Electrotechnical Commission (IEC) introduced distinct prefix names in 1998 to resolve this ambiguity. Binary-based units are now formally called kibibytes (KiB), mebibytes (MiB), gibibytes (GiB), tebibytes (TiB), pebibytes (PiB), and exbibytes (EiB). Decimal-based units retain the familiar SI names: kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), petabytes (PB), and exabytes (EB). This calculator supports both standards so you can work in whatever context your use case demands.

Practical storage planning requires fluency in both systems. Cloud storage quotas are generally expressed in decimal units. RAM capacity and OS-reported file sizes use binary units. Networking speeds are measured in bits per second, not bytes, adding another layer of conversion. This data storage unit converter handles all of these scenarios in a single interface, giving you instant cross-unit visibility for any input value.

How the Data Storage Calculator Works

The data storage calculator converts any input value from one storage unit into all other units in the selected standard simultaneously. You enter a numeric value, choose its source unit (B, KB, MB, GB, TB, PB, or EB), and select either the Binary (1024) or Decimal (1000) standard. The calculator instantly displays the equivalent value in every unit of that standard, plus conversions into bits, kilobits, megabits, and gigabits.

Internally the calculation always passes through bytes as an intermediate value. The input value is first multiplied by the byte-equivalent of the source unit to obtain a raw byte count. That byte count is then divided by the byte-equivalent of each target unit to produce every output value. The bit conversions are derived by multiplying the byte count by 8 and then dividing by 1,000 for each kilobit/megabit/gigabit step (networking units always use decimal SI regardless of the chosen storage standard).

The Common Storage Sizes quick-select buttons let you load preset values for well-known media such as a floppy disk (1.44 MB), CD (700 MB), DVD (4.7 GB), Blu-ray (25 GB), USB drive (64 GB), SSD (1 TB), hard drive (4 TB), or enterprise SSD (8 TB). These presets use the decimal standard by convention, matching how those capacities are marketed. You can switch to binary after loading a preset to see the OS-reported equivalent.

The copy button beside each result lets you paste any converted value directly into a spreadsheet, document, or command-line tool without transcription errors. This is especially useful for scripting storage provisioning tasks or filling out procurement forms.

Data Storage Conversion Formula

bytes = value × unitMultiplier(standard) | result[target] = bytes / unitMultiplier(target, standard) | bits = bytes × 8

Where:

  • value= The numeric quantity entered by the user
  • unitMultiplier(binary)= Power-of-1024 factors: B=1, KiB=1024, MiB=1024², GiB=1024³, TiB=1024⁴, PiB=1024⁵, EiB=1024⁶
  • unitMultiplier(decimal)= Power-of-1000 factors: B=1, KB=1000, MB=1000², GB=1000³, TB=1000⁴, PB=1000⁵, EB=1000⁶
  • bits= Bit equivalent = bytes × 8; kilobits = bits ÷ 1000; megabits = kilobits ÷ 1000; gigabits = megabits ÷ 1000

Binary vs. Decimal Storage Standards Explained

The binary versus decimal distinction is the single most important concept for understanding data storage unit conversions, and it explains almost every case where a device reports less capacity than advertised.

Decimal (SI) standard uses base-10 multipliers: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes. Hard drive manufacturers, SSD vendors, USB flash drive producers, and cloud storage providers universally use this standard because it yields round numbers that are easy to advertise. A "500 GB" SSD contains exactly 500,000,000,000 bytes by the manufacturer's reckoning.

Binary (IEC) standard uses base-2 multipliers: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes, 1 GiB = 1,073,741,824 bytes. Operating systems use binary units internally because computer memory addressing is inherently base-2. When Windows or Linux reports available drive space, it divides the raw byte count by 1,073,741,824 to get GiB but historically labeled the result "GB", which was inaccurate. Modern Linux distributions and macOS now display GiB correctly, while Windows still shows binary values labeled as GB.

The discrepancy grows with scale. For kilobytes the difference is only 2.4%. For gigabytes it reaches 7.4%. For terabytes it becomes 9.1%, and for petabytes it exceeds 11%. This means a manufacturer's "4 TB" drive holds 4,000,000,000,000 bytes, which equals approximately 3.637 TiB — a visible shortfall if you expected 4 TiB.

Decimal Unit Bytes Binary Equivalent Approx. GiB
1 KB 1,000 0.9766 KiB
1 MB 1,000,000 0.9537 MiB
1 GB 1,000,000,000 0.9313 GiB 0.931
1 TB 1,000,000,000,000 0.9095 TiB 931.3
4 TB 4,000,000,000,000 3.6380 TiB 3,725.3

When comparing storage capacities across devices or operating systems, always confirm which standard is in use. This calculator makes it trivial to switch between them and see exactly how values translate.

Complete Storage Unit Reference: Bits to Exabytes

Digital storage spans an enormous range — from a single bit representing one binary choice to exabytes representing the output of entire data centers over years. Here is a concise reference for every unit this calculator supports, from smallest to largest.

Bit (b) — the atomic unit of digital information, holding a single 0 or 1. Network speeds are always measured in bits per second (bps, Kbps, Mbps, Gbps). Storage capacities are measured in bytes, not bits, so a quick multiply-by-8 conversion is always required when bridging the two domains.

Byte (B) — 8 bits. The base unit for all storage measurements. A single ASCII character occupies 1 byte; a Unicode character can occupy 1–4 bytes in UTF-8 encoding.

Kilobyte (KB) / Kibibyte (KiB) — 1,000 bytes (decimal) or 1,024 bytes (binary). A plain text email is roughly 2–5 KB; a short document might reach 50 KB.

Megabyte (MB) / Mebibyte (MiB) — 1,000,000 bytes (decimal) or 1,048,576 bytes (binary). An MP3 song runs 3–8 MB; a high-resolution JPEG photograph is 2–10 MB.

Gigabyte (GB) / Gibibyte (GiB) — 1,000,000,000 bytes (decimal) or 1,073,741,824 bytes (binary). A standard-definition movie is 1–4 GB; a 4K Blu-ray rip can reach 60–100 GB.

Terabyte (TB) / Tebibyte (TiB) — 1,000,000,000,000 bytes (decimal) or 1,099,511,627,776 bytes (binary). Consumer hard drives commonly ship in 1–20 TB capacities. A 1 TB drive can hold roughly 250,000 photos or 500 hours of HD video.

Petabyte (PB) / Pebibyte (PiB) — 1,000,000,000,000,000 bytes (decimal) or 1,125,899,906,842,624 bytes (binary). Cloud providers operate at petabyte scale; major hyperscalers store exabytes of customer data.

Exabyte (EB) / Exbibyte (EiB) — 1,000,000,000,000,000,000 bytes (decimal) or 1,152,921,504,606,846,976 bytes (binary). The global internet transmits roughly 400 exabytes of data per month as of 2024. A single exabyte could store approximately 1 billion gigabytes.

Beyond exabytes, units continue with zettabytes (ZB, 10²¹ bytes) and yottabytes (YB, 10²⁴ bytes), but these are not yet relevant to consumer or enterprise storage and are not included in this calculator.

Practical Storage Planning: Real-World Use Cases

Converting between storage units is rarely an end in itself — it serves a specific decision or calculation. Here are the most common real-world scenarios where this data storage converter proves essential.

Buying a new drive or device: When a manufacturer lists a 2 TB SSD, you now know the OS will report approximately 1.819 TiB (about 1,862 GiB). If your OS shows binary values labeled as "GB", the drive will appear as roughly 1,862 GB. Plan your storage needs accordingly by adding 7–10% headroom to account for the binary/decimal gap, filesystem overhead, and operating system reserved space.

Backup planning: If you have 800 GB of photos to back up (decimal, as reported by your cloud storage provider), and your external drive shows 931 GiB of free space (binary, as shown by the OS), does it fit? Using this calculator: 800 GB = 800,000,000,000 bytes = approximately 745.06 GiB. Yes, it comfortably fits with about 186 GiB to spare.

Network file transfer estimation: Combining this calculator with a bandwidth calculator lets you estimate transfer times. Convert your file size from GB to bytes, multiply by 8 to get bits, then divide by your bandwidth in bits per second. A 25 GB Blu-ray rip (25,000,000,000 bytes = 200,000,000,000 bits) over a 100 Mbps connection takes 2,000 seconds — about 33 minutes.

Cloud storage procurement: Cloud providers bill in decimal units. If AWS S3 charges per GB and you store 500 TiB of data in binary terms, convert first: 500 TiB = 500 × 1,099,511,627,776 bytes = 549,755,813,888,000 bytes = approximately 549.76 TB (decimal). You would be billed for roughly 549.76 TB, not 500 TB. This 9.8% difference matters significantly at cloud scale.

Video production storage: RAW video footage from professional cameras can generate 1–12 GB per minute depending on codec, resolution, and frame rate. A 90-minute feature film shoot at 4 GB/min requires 360 GB of primary storage plus at least one full backup — minimum 720 GB, more practically 1 TB to allow for proxies, exports, and project files.

Database sizing: Database administrators regularly convert between units when provisioning storage. A PostgreSQL table with 50 million rows averaging 200 bytes per row requires approximately 10,000,000,000 bytes = 10 GB (decimal) = 9.313 GiB. With typical index overhead of 20–30%, plan for 12–13 GB of allocated storage.

Worked Examples

How Much Is 1 TB in GiB? (Binary Standard)

Problem:

A hard drive is advertised as 1 TB. How many GiB will the operating system report?

Solution Steps:

  1. 1Start with 1 TB (decimal): 1 TB = 1,000,000,000,000 bytes
  2. 2Convert bytes to GiB using the binary divisor: GiB = bytes ÷ 1024³ = bytes ÷ 1,073,741,824
  3. 31,000,000,000,000 ÷ 1,073,741,824 = 931.3226 GiB
  4. 4The OS will display approximately 931.32 GiB (sometimes labeled '931 GB' in Windows)

Result:

1 TB (decimal) = 931.32 GiB (binary). The ~68.68 GiB 'missing' is not lost; it is the difference between the two counting systems.

Converting 4.7 GB DVD Capacity to MB and MiB

Problem:

A standard DVD holds 4.7 GB. Convert this to megabytes (decimal) and mebibytes (binary).

Solution Steps:

  1. 1Convert 4.7 GB to bytes (decimal): 4.7 × 1,000,000,000 = 4,700,000,000 bytes
  2. 2Convert bytes to MB (decimal): 4,700,000,000 ÷ 1,000,000 = 4,700 MB
  3. 3Convert bytes to MiB (binary): 4,700,000,000 ÷ 1,048,576 = 4,482.42 MiB
  4. 4Verify: 4,700 MB × 1,000,000 = 4,700,000,000 bytes ✓

Result:

4.7 GB = 4,700 MB (decimal) = 4,482.42 MiB (binary). The two MB values differ by about 4.7%, the standard binary/decimal gap at the megabyte scale.

How Many Bits in a 64 GB USB Drive?

Problem:

A USB drive is rated at 64 GB. How many bits does it hold, and what is that in megabits?

Solution Steps:

  1. 1Convert 64 GB to bytes (decimal): 64 × 1,000,000,000 = 64,000,000,000 bytes
  2. 2Convert bytes to bits: 64,000,000,000 × 8 = 512,000,000,000 bits
  3. 3Convert bits to kilobits: 512,000,000,000 ÷ 1,000 = 512,000,000 Kbits
  4. 4Convert kilobits to megabits: 512,000,000 ÷ 1,000 = 512,000 Mbits

Result:

A 64 GB USB drive holds 512,000,000,000 bits, which equals 512,000 Mbits or 512 Gbits. This is the bit-count your ISP would need to transfer at 512 Gbps to fill the drive in one second.

Comparing 1 GiB vs 1 GB: The Exact Difference

Problem:

How many bytes is 1 GiB, and how does it differ from 1 GB?

Solution Steps:

  1. 11 GiB (binary): 1 × 1024³ = 1 × 1,073,741,824 = 1,073,741,824 bytes
  2. 21 GB (decimal): 1 × 1000³ = 1 × 1,000,000,000 = 1,000,000,000 bytes
  3. 3Difference: 1,073,741,824 − 1,000,000,000 = 73,741,824 bytes extra in 1 GiB
  4. 4Percentage: 73,741,824 ÷ 1,000,000,000 × 100 = 7.374% larger

Result:

1 GiB contains 73,741,824 more bytes than 1 GB — about 7.37% more. This gap is why OS-reported storage always appears smaller than the manufacturer's stated capacity.

Tips & Best Practices

  • When purchasing external drives, add ~10% to your target capacity to account for the binary/decimal gap plus filesystem overhead.
  • To estimate how many files fit on a drive, convert both the drive capacity and average file size to bytes first, then divide.
  • Network speeds are in bits per second; divide by 8 to get bytes per second when estimating download times for file sizes shown in bytes.
  • Always confirm whether your OS uses binary (KiB/MiB/GiB) or decimal (KB/MB/GB) labeling before comparing reported sizes to advertised specs.
  • Cloud storage quotas use decimal units — 50 GB means 50,000,000,000 bytes, not 50 × 1,073,741,824 bytes.
  • For database and VM disk provisioning, use binary units to match what hypervisors and OS partition tools report.
  • RAM is always measured and sold in binary units (GiB), even though the label 'GB' is commonly used — a 16 GB RAM kit is 16 × 1,073,741,824 bytes.
  • When scripting storage checks in bash or Python, work in bytes to avoid unit ambiguity entirely, then format for display at the end.

Frequently Asked Questions

This is the binary versus decimal conversion difference, not a defect or missing storage. Hard drive manufacturers measure 1 TB as exactly 1,000,000,000,000 bytes (decimal). Windows divides that raw byte count by 1,073,741,824 (1024³) to get gibibytes, but historically displayed the result with the 'GB' label. The result is 931.32 GiB. All your storage is there — the two counting systems simply use different reference values for the 'giga' prefix. Switching this calculator to binary mode and entering 1 TB will show you exactly 931.32 GiB, matching what Windows reports.
KB (kilobyte) uses the decimal SI prefix, meaning 1 KB = 1,000 bytes exactly. KiB (kibibyte) uses the binary IEC prefix, meaning 1 KiB = 1,024 bytes. The names were standardized by the International Electrotechnical Commission in 1998 to eliminate the ambiguity of using 'kilo' for both 1,000 and 1,024. In practice, many software applications and operating systems still use 'KB' when they mean 1,024 bytes, so context matters. When precision is required — such as in technical documentation, data center specifications, or cross-platform file size comparisons — always specify which standard is in use.
In the decimal standard: multiply GB by 1,000 to get MB. So 2.5 GB = 2,500 MB. In the binary standard: multiply GiB by 1,024 to get MiB. So 2.5 GiB = 2,560 MiB. The reverse (MB to GB) is simply dividing by 1,000 (decimal) or 1,024 (binary). This calculator handles any value and any unit instantly, including cross-standard comparisons where you enter decimal GB and see the binary MiB equivalent in the same view.
Networking speeds are always measured in bits per second, not bytes per second. When your ISP advertises 100 Mbps broadband, that is 100 megabits per second — equivalent to 12.5 megabytes per second (100 ÷ 8 = 12.5). This is why download managers sometimes show MB/s while speed tests show Mbps. The bit-to-byte conversion is simple: divide Mbps by 8 to get MB/s, or multiply MB/s by 8 to get Mbps. This calculator shows bit-based conversions (bits, kilobits, megabits) alongside byte-based storage units so you can bridge both domains without switching tools.
In the decimal standard, 1 petabyte (PB) = 1,000,000,000,000,000 bytes (10¹⁵ bytes, or 1 quadrillion bytes). In binary, 1 pebibyte (PiB) = 1,125,899,906,842,624 bytes. To put it in context, 1 PB could hold approximately 250 million 4K photos at 4 MB each, about 200,000 hours of HD video, or the entire text content of Wikipedia many thousands of times over. Petabyte-scale storage is primarily operated by hyperscale cloud providers, research institutions, and large enterprises managing enormous datasets.
Cloud storage services universally advertise and bill capacity using decimal (SI) units. Google Drive's 15 GB free tier means 15,000,000,000 bytes; iCloud's 50 GB plan means 50,000,000,000 bytes. When you view storage usage on a mobile device or web interface, the values shown are also in decimal GB. However, if you check the same files on a Windows PC, the file sizes may appear slightly smaller in 'GB' because Windows reports binary gibibytes with the GB label. For accurate capacity planning against cloud quotas, always use the decimal standard in this calculator.
The answer depends heavily on resolution, compression, and format. A typical smartphone JPEG photo at 12 megapixels averages 3–5 MB, so 1 GB (1,000 MB) holds roughly 200–330 photos. A RAW photo from a professional DSLR averages 25–45 MB, giving only 22–40 RAW images per GB. For video, 1080p H.264 footage averages 1–2 GB per hour of recording, while 4K H.265 footage averages 4–10 GB per hour. Use this data storage calculator to check how your specific file sizes scale across different storage capacities before purchasing a device or subscription.

Sources & References

Last updated: 2026-06-05

💡

Help us improve!

How would you rate the Data Storage Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.