Data Storage Conversion Calculator

Data Storage Conversion Calculator

Popular AI Skill PRO

Enter Calculation

Formula

Result=Value×base(From−To)\text{Result} = \text{Value} \times \text{base}^{\,\left(\text{From} - \text{To}\right)}

Example

Result=1×1024(1−3)≈0.000001\text{Result} = 1 \times 1024^{\,\left(1 - 3\right)} \approx 0.000001
Usage stats

Advertisement

Results

Converted Value
0.000001
in the selected target unit
Total in bytes 1,024 B

Report an error on this page

What is the Data Storage Converter?

This calculator converts digital information between units of storage — bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB) and petabytes (PB). It supports both the binary system (where 1 KB = 1024 bytes) used by operating systems and RAM, and the decimal system (where 1 KB = 1000 bytes) used by storage manufacturers and networking.

Ladder of data storage units from byte up to petabyte
Data storage units scale up from bytes to petabytes by powers of the base.

How to use it

Enter the value you want to convert, choose the source unit (From) and the target unit (To), then select whether you want the binary (1024) or decimal (1000) interpretation. The result shows the converted figure plus the equivalent total in raw bytes.

The formula explained

Each unit is a power of the base. With unit index n (B=0, KB=1, MB=2, GB=3, TB=4, PB=5), the value is first turned into bytes: \(\text{bytes} = \text{value} \times \text{base}^{n}\). It is then divided by the base raised to the target index m: \(\text{result} = \text{bytes} \div \text{base}^{m}\). The base is 1024 for binary and 1000 for decimal.

$$\text{Result} = \text{Value} \times \text{base}^{\,\left(\text{From} - \text{To}\right)}$$
Advertisement
Comparison of binary 1024 base versus decimal 1000 base
Each step up multiplies by 1024 (binary) or 1000 (decimal).

Worked example

Convert 1 GB to MB in the binary system. GB has index 3 and MB has index 2.

$$\text{bytes} = 1 \times 1024^{3} = 1{,}073{,}741{,}824$$$$\text{result} = 1{,}073{,}741{,}824 \div 1024^{2} = 1{,}073{,}741{,}824 \div 1{,}048{,}576 = 1024 \text{ MB}$$

So 1 GB equals 1024 MB in binary.

Advertisement

Definitions: KB vs KiB, Bit vs Byte

Storage sizes are written in two systems that look alike but differ in size. SI (decimal) prefixes use powers of 1000. IEC (binary) prefixes use powers of 1024. The converter's base option switches between them.

  • Bit (b): the smallest unit of data, a single 0 or 1.
  • Byte (B): a group of 8 bits. It is the basic unit for file and storage sizes.
  • Kilobyte (KB, SI): 1,000 bytes. MB = 1,000,000 B, GB = 109 B, TB = 1012 B, PB = 1015 B.
  • Kibibyte (KiB, IEC): 1,024 bytes (210).
  • Mebibyte (MiB): 1,048,576 bytes (220).
  • Gibibyte (GiB): 1,073,741,824 bytes (230).
  • Tebibyte (TiB): 1,099,511,627,776 bytes (240).
  • Pebibyte (PiB): 1,125,899,906,842,624 bytes (250).

Who uses which system?

Drive and flash makers advertise capacity in decimal units. macOS (since 10.6) also reports sizes in decimal. Windows reports binary values but labels them KB, MB, GB and TB instead of KiB, MiB, GiB and TiB. This is why a drive sold as 1 TB shows up as about 931 GB in Windows. No data is missing. The two sides use different units under similar names.

Mb vs MB

A lowercase b means bit and an uppercase B means byte. So 1 MB (megabyte) = 8 Mb (megabits). Network speeds are usually quoted in megabits per second (Mbps), while file sizes are in megabytes. A 100 Mbps connection therefore moves at most about 100 ÷ 8 = 12.5 MB per second, before overhead.

The conversion rule is \(\text{Result} = \text{Value} \times \text{base}^{\,(\text{from} - \text{to})}\), where the unit index runs 0 = bytes, 1 = KB, 2 = MB, 3 = GB, 4 = TB, 5 = PB.

FAQ

Why does my 1 TB drive show as ~931 GB? Drive makers use decimal (1000), but Windows reports in binary (1024). \(1{,}000{,}000{,}000{,}000 \div 1024^{3} \approx 931\) GiB.

Which system should I pick? Use binary for OS/RAM figures and decimal for advertised drive capacities and network speeds.

What is the difference between a bit and a byte? A byte is 8 bits. This tool works in bytes; multiply bytes by 8 to get bits.

Last updated:

Most popular in Digital Life

View all Digital Life calculators